Sybase_ct and tli lib

From: Date: Tue, 12 Nov 2002 22:20:11 +0000
Subject: Sybase_ct and tli lib
Groups: php.dev 
Request: Send a blank email to php-dev+get-90902@lists.php.net to get a copy of this message
The following is not really worthy of reporting an official bug, but still worthy of at least comment and notice. On Solaris 2.8 using Sybase OCS-12, the default build scripts for PHP 4.2.3 will not link in the tli library. Those familiar with Sybase have probably stubbed their toes on this library several times before; I've certainly have. When PHP is built and run using Apache 1.3.2x. When the web server is started as a real root user, everything works fine. However in our environment we don't have production root access, so we have to use sudo or the SUID bit to start the web server as root. I found that without this library linked in, the web server would start (with sudo/suid) but the following error would be reported in the apache error log: Open Client Message: Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131) Message String: ct_init(): network packet layer: internal net library error: Attempt to load protocol driver failed And of course no Sybase connections would work. When I linked in the tli library, everything thing ok. I've attached a simple diff of the sybase_ct/config.m4 that I used to get the tli library included. I will be the first to admit, I really don't know "why" this library (or its absense) causes this behavior, nor do I really fully understand what the lib is supposed to do. If someone can explain it to me, please try. Otherwise, I just try to remember this error message is usually related to the presents/absense of the tli library. Anyway I thought I would post this info in hopes it might lead to a better solution in the future. Thanks, Brian PS: my configure line is: ./configure --with-apxs=/apps/soc/apache/bin/apxs \ --prefix=/apps/soc/apache/php4 --with-sybase-ct=/apps/soc/sybase/OCS-12_0 \ --enable-track-vars --with-config-file-path=/apps/soc/apache/php4 \ --enable-trans-sid --with-ldap

« previous php.dev (#90902) next »