Ok, I have done this a million times...
I am adding odbc and sybase support to my existing setup.
Here is a shell script I have used a million times:
#!/bin/sh
This tells the compiler where to find the iODBC driver manager.
#LD_LIBRARY_PATH=/usr/local/src/odbcsdk
export LD_LIBRARY_PATH=/usr/local/src/odbcsdk/lib
#MS SQL CONFIG HELPER
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sybase/lib
CONFIGURE LINE
LDFLAGS=lpthreads
./configure --prefix=/usr/local/apache --with-apxs=/usr/local/apache/bin/apxs --with-mod_charset --enable-force-cgi-redirect --enable-discard-path --with-config-file-path=/usr/local/apache/conf --enable-safe-mode --with-openssl --enable-bcmath --with-bz2 --enable-calendar --enable-ctype --with-gdbm --enable-dbase --enable-ftp --enable-gd-imgstrttf --with-gmp --with-mysql --with-xml=shared --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --enable-shared --with-zlib --with-sybase-ct=/usr/local/freetds --with-odbc=/usr/local/src/odbcsdk
#DISABLED
#--with-ldap
#--enable-yp
#--with-xml=shared
INSTALL LINE(S)
make
#make install
echo "DONE";
NOW FOR THE PROBLEM,
It gets almost completly through the make and stops giving me:
make[1]: Entering directory /root/php-4.2.3'
/bin/sh /root/php-4.2.3/libtool --silent --mode=link gcc -I. -I/root/php-4.2.3/ -I/root/php-4.2.3/main -I/root/php-4.2.3 -I/usr/local/apache/include -I/root/php-4.2.3/Zend -I/root/php-4.2.3/ext/mysql/libmysql -I/usr/local/freetds/include -I/root/php-4.2.3/ext/xml/expat -DLINUX=22 -DUSE_HSREGEX -I/root/php-4.2.3/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath /root/php-4.2.3/libs -avoid-version -L/usr/local/freetds/lib -R /usr/local/freetds/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la /root/php-4.2.3/ext/zlib/libzlib.la /root/php-4.2.3/ext/bcmath/libbcmath.la /root/php-4.2.3/ext/bz2/libbz2.la /root/php-4.2.3/ext/calendar/libcalendar.la /root/php-4.2.3/ext/ctype/libctype.la /root/php-4.2.3/ext/dba/libdba.la /root/php-4.2.3/ext/dbase/libdbase.la /root/php-4.2.3/ext/ftp/libftp.la /root/php-4.2.3/ext/gmp/libgmp.la /root/php-4.2.3/ext/mysql/libmysql.la /root/php-4.2.3/ext/openssl/libopenssl.la /root/php-4.2.3/ext/pcre/libpcre.la /root/php-4.2.3/ext/posix/libposix.la /root/php-4.2.3/ext/session/libsession.la /root/php-4.2.3/ext/shmop/libshmop.la /root/php-4.2.3/ext/sockets/libsockets.la /root/php-4.2.3/ext/standard/libstandard.la /root/php-4.2.3/ext/sybase_ct/libsybase_ct.la /root/php-4.2.3/ext/sysvsem/libsysvsem.la /root/php-4.2.3/ext/sysvshm/libsysvshm.la /root/php-4.2.3/ext/xml/libxml.la /root/php-4.2.3/ext/yp/libyp.la TSRM/libtsrm.la -lpam -lct -lgmp -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt -ldl
/usr/bin/ld: cannot find -lct
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory/root/php-4.2.3'
make: *** [all-recursive] Error 1
WHAT IS WRONG HERE! PLEASE SOMEONE HELP!