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
*** ext/sybase_ct/config.m4 Fri Nov 30 22:12:31 2001 *************** *** 34,41 **** PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD) PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD) PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD) ! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl" PHP_CHECK_LIBRARY(tcl, netg_errstr, [ PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD) --- 34,42 ---- PHP_ADD_LIBRARY(ct,, SYBASE_CT_SHARED_LIBADD) PHP_ADD_LIBRARY(comn,, SYBASE_CT_SHARED_LIBADD) PHP_ADD_LIBRARY(intl,, SYBASE_CT_SHARED_LIBADD) + PHP_ADD_LIBRARY(tli,, SYBASE_CT_SHARED_LIBADD) ! SYBASE_CT_LIBS="-L$SYBASE_CT_LIBDIR -lcs -lct -lcomn -lintl -ltli" PHP_CHECK_LIBRARY(tcl, netg_errstr, [ PHP_ADD_LIBRARY(tcl,,SYBASE_CT_SHARED_LIBADD)
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php