PHP 5 with FREETDS
Hi,
I have search the forum on compilation error PHP5 and freeTDS but found none similar to mine.
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.
I used this configuration which had no error.
The extra parameter I added was --with-mssql=/usr/local/freetds
Current phpinfo() shows only mysql support. I need both mysql and mssql support on this PHP5.
Any help would be greatly appreciated. I hope I have given enough information for some kind souls to shed some lights here. Otherwise, do let me know, I will provide the extra information needed.
No Error while run this
************************
'./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'
Error during make
*****************
ext/pcre/.libs/php_pcre.o: In function `zm_info_pcre':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:123: undefined reference to `php_pcre_version'
ext/pcre/.libs/php_pcre.o: In function `zm_startup_pcre':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:148: undefined reference to `php_pcre_version'
ext/pcre/.libs/php_pcre.o: In function `pcre_get_compiled_regex_cache':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:209: undefined reference to `php_pcre_info'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:326: undefined reference to `php_pcre_compile'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:322: undefined reference to `php_pcre_maketables'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:344: undefined reference to `php_pcre_study'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_replace_impl':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:990: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1009: undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_grep_impl':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1690: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1710: undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_split_impl':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1428: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1445: undefined reference to `php_pcre_exec'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:1508: undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_match_impl':
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:535: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:556: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:566: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:567: undefined reference to `php_pcre_fullinfo'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:606: undefined reference to `php_pcre_exec'
/usr/local/php-5.2.5/ext/pcre/php_pcre.c:623: undefined reference to `php_pcre_get_substring_list'
/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
|