PHP 4.0 Bug #5520 Updated: cybase-ct failure at apache make

From: Date: Fri, 14 Jul 2000 20:14:56 +0000
Subject: PHP 4.0 Bug #5520 Updated: cybase-ct failure at apache make
Groups: php.dev 
Request: Send a blank email to php-dev+get-24482@lists.php.net to get a copy of this message
ID: 5520 User Update by: alex@quad.com.ar Status: Feedback Bug Type: Sybase-ct (ctlib) related Description: cybase-ct failure at apache make ok here's the nm /src/web/sybase/lib/libcomn.* | grep comn_loc_copy result of the ctlib I've been using (ctlib-linux-elf.tar.gz): 000002c0 T comn_loc_copy Then I downloaded the ctlib you mention (ctlib-linux-elf-dynamic.tar.gz) and tried that same command.. the results are: 000002c0 T comn_loc_copy 0001ef90 T comn_loc_copy at this new ctlib package I've noticed there's a .so.10 for each .a file, while the old one only had .a files on it (no .so.* at all) so I rm -rf the whole apache, php & sybase dirs to start all over from scratches but using this new lib instead. notice that I'm allways using the same ./configure arguments I mention on my first post. the resuts: apache make gives out 'undefined references' errors, here are some: gcc -DLINUX=2 -I/src/web/php-4.0.1pl2 -I/src/web/php-4.0.1pl2/main -I/src/web/php-4.0.1pl2/main -I/src/web/php-4.0.1pl2/Zend -I/src/web/php-4.0.1pl2/Zend -I/src/web/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/src/web/gd1.5 -Wl,-rpath,/src/imap-4.7c/c-client -Wl,-rpath,/src/web/flash -Wl,-rpath,/src/web/sybase/lib -rdynamic -L/src/web/gd1.5 -L/src/imap-4.7c/c-client -L/src/web/flash -L/src/web/sybase/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldb -lc-client -ldl -linsck -lsybtcl -lintl -lcomn -lct -lcs -lswf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt /src/web/sybase/lib/libct.a(ctbind.o): In function `ct__api_get_conv_func': ctbind.o(.text+0x367): undefined reference to `com_conv_func' /src/web/sybase/lib/libct.a(ctconall.o): In function `ct__api_conprop_init': ctconall.o(.text+0x163): undefined reference to `comn_loc_alloc' /src/web/sybase/lib/libct.a(ctconall.o): In function `ct__api_con_external_init': ctconall.o(.text+0x3b2): undefined reference to `com_async_alloc' I've been trying lots of different ways to get this working, and finally found some way out: I downloaded the sybase package from linux.sybase.com called: sybase-common-11.9.2-1.i386.rpm and copied its lib/*.so to my /src/sybase/lib/ (where I had the sybase-ct dynamic libs) I again try --with-sybase-ct=/src/sybase and this compiles ok at php and apache. but this is not the end of the story. It looks like this sybase-ct thing won't connect to MS SQL 7.0 servers I sniffed the connection and see it connects to the right port and ip and the NT server replies the packets. but connection can't be made. I read people have the same problem and uses --with-sybase instead (mentioned at the anotated manual of mssql_connect()) so that's what I try now I've downloaded all packages from linux.sybase.com, installed them, compiled php --with-sybase=/opt/sybase-xxx/ this compiles ok but no connection is being made to the server. how did I check? stopped apache, launched a sniffer, launched apache with strace -f -o debug.log ./httpd -X and then I launch my browser to the script that uses mssql_connect(), the sniffer doesnt sees any package sent or received from/to the SQL server, the debug.log doesnt stat or open the interface file (defined at php.ini). the function returns FALSE and no error is shown...(I did use error_reporting(15) to it) no log files errors no trace at all of what went wrong. please any help on how to make php4 to work with ms sql 7? I just refuse to go the easy ASP way or use ODBC. thanks for your time and support! Regards, Alex Full Bug description available at: http://bugs.php.net/?id=5520

« previous php.dev (#24482) next »