#43874 [Opn->Csd]: PHP5+FREETDS COmpile Error
| From: | jani@php.net | Date: | Sat, 26 Jan 2008 01:15:40 +0000 |
| Subject: | #43874 [Opn->Csd]: PHP5+FREETDS COmpile Error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121566@lists.php.net to get a copy of this message | ||
ID: 43874
Updated by: jani@php.net
Reported By: hkmun at commz dot com dot sg
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Slackware 12.0
PHP Version: 5.2.5
New Comment:
Obviously your problem is this: '--with-pcre-regex=/usr'
Just don't use that and everything will be okay.
Previous Comments:
------------------------------------------------------------------------
[2008-01-17 07:24:39] hkmun at commz dot com dot sg
Description:
------------
I am using Slackware 12, PHP5.2.5, Apache 2.24 and FREETDS 0.64
Without FREETDS, basically everything works fine - apache and php
I need to use freeTDS as I need to connect to a MSSQL 2005 server to
pick up some records from the database there.
I downloaded freetds0.64 and compiled successfully.
I downloaded php 5.2.5 and had compilation error.
Reproduce code:
---------------
'./configure' '--prefix=/usr' '--with-apxs2=/usr/sbin/apxs'
'--prefix=/usr' '--sysconfdir=/etc' '--disable-safe-mode'
--with-mssql=/usr/local/freetds '--disable-magic-quotes'
'--enable-zend-multibyte' '--enable-mbregex'
'--enable-tokenizer=shared'
'--with-config-file-scan-dir=/etc/php'
'--with-config-file-path=/etc/httpd' '--with-layout=PHP'
'--enable-sigchild' '--enable-xml' '--with-libxml-dir=/usr'
'--enable-simplexml' '--enable-spl' '--enable-filter'
'--disable-debug'
'--with-openssl=shared' '--with-pcre-regex=/usr'
'--with-zlib=shared,/usr' '--enable-bcmath=shared'
'--with-bz2=shared,/usr' '--enable-calendar=shared'
'--enable-ctype=shared' '--with-curl=shared' '--with-curlwrappers'
'--enable-dba=shared' '--with-gdbm=/usr' '--with-db4=/usr'
'--enable-dbase=shared' '--enable-exif=shared' '--enable-ftp=shared'
'--with-gd=shared' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-zlib-dir=/usr' '--with-xpm-dir=/usr'
'--with-freetype-dir=/usr'
'--with-t1lib=/usr' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
'--with-gettext=shared,/usr' '--with-gmp=shared,/usr'
'--with-iconv=shared' '--with-imap-ssl=/usr' '--with-ldap=shared'
'--enable-mbstring=shared' '--with-mhash=shared,/usr'
'--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config'
'--enable-pdo=shared' '--with-pdo-mysql=shared,/usr'
'--with-pdo-sqlite=shared' '--with-pspell=shared,/usr'
'--with-mm=/usr'
'--enable-shmop=shared' '--with-snmp=shared,/usr'
'--enable-soap=shared'
'--enable-sockets' '--with-sqlite=shared' '--enable-sqlite-utf8'
'--with-regex=php' '--enable-sysvmsg' '--enable-sysvsem'
'--enable-sysvshm' '--enable-wddx=shared' '--with-xsl=shared,/usr'
'--enable-zip=shared' '--with-tsrm-pthreads' '--enable-shared=yes'
'--enable-static=no' '--with-gnu-ld' '--with-pic'
'--build=i486-slackware-linux'
Expected result:
----------------
It should compiled without errors.
Actual result:
--------------
usr/local/php-5.2.5/ext/pcre/php_pcre.c:693: undefined reference to
`php_pcre_free'
ext/filter/.libs/logical_filters.o: In function
`php_filter_validate_email':
/usr/local/php-5.2.5/ext/filter/logical_filters.c:485: undefined
reference to `php_pcre_exec'
ext/filter/.libs/logical_filters.o: In function
`php_filter_validate_regexp':
/usr/local/php-5.2.5/ext/filter/logical_filters.c:429: undefined
reference to `php_pcre_exec'
ext/spl/.libs/spl_iterators.o: In function
`zim_spl_RegexIterator_accept':
/usr/local/php-5.2.5/ext/spl/spl_iterators.c:1383: undefined reference
to `php_pcre_exec'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43874&edit=1