php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43874 PHP5+FREETDS COmpile Error
Submitted: 2008-01-17 07:24 UTC Modified: 2008-01-26 01:15 UTC
From: hkmun at commz dot com dot sg Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.2.5 OS: Slackware 12.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hkmun at commz dot com dot sg
New email:
PHP Version: OS:

 

 [2008-01-17 07:24 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-26 01:15 UTC] jani@php.net
Obviously your problem is this: '--with-pcre-regex=/usr' 
Just don't use that and everything will be okay. 

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 22 20:00:03 2025 UTC