LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2008, 02:52 AM   #1
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
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
 
Old 01-14-2008, 05:58 AM   #2
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Original Poster
Rep: Reputation: 15
Anyone have any ideas?

Is there any other way for me to access MSSQL database table from a linux box?

Appreciate your reply and input. Thanks.
 
Old 01-14-2008, 06:15 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
You could try asking at the programming section.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeTDS nerver gives libtdsodbc.so crimsontide Linux - Software 3 05-31-2023 07:28 PM
RHEL v5 + FreeTDS + PHP & Sybase TEXT Fields Bladez Red Hat 0 10-17-2007 01:54 PM
FreeTDS akurtis Linux - Networking 0 08-01-2006 10:51 AM
issue with unixodbc + freetds + php sugar2 *BSD 1 07-03-2006 07:45 PM
question before moving from windows2003 to Linux+apache+php+iodbc+FreeTDS sugar2 Linux - Newbie 6 06-30-2006 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration