From: hkmun at commz dot com dot sg Operating system: Slackware 12.0 PHP version: 5.2.5 PHP Bug Type: Compile Failure Bug description: PHP5+FREETDS COmpile Error
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 bug report at http://bugs.php.net/?id=43874&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43874&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43874&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43874&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43874&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43874&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43874&r=support Expected behavior: http://bugs.php.net/fix.php?id=43874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43874&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43874&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43874&r=mysqlcfg