From: [EMAIL PROTECTED] Operating system: SunOS 5.8 PHP version: 4.3.0-pre2 PHP Bug Type: *Configuration Issues Bug description: Missing libs for Solaris sybase-ct compile
When PHP is configured for Sybase-CT support, it configures correctly except that it doesn't include libtli.so, which is necessary for Solaris. For details, check: http://www.sybase.com/detail/1,6904,1011596,00.html If I edit Makefile and change -linsck to -ltli the configuration works fine. If I don't, sybase-ct will come back with an error saying it doesn't have network transport layer to its $DSQUERY host. All other networking configurations have been done on this box. In fact the Sybase ASE dataserver is on the same box... General environment summary: uname -a output: SunOS thoddb001 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-60 using gcc-2.95.3 to build php-4.2.3-RELEASE configuration flags for php & sybase-ct support env LDFLAGS=" -R $SYBASE/$SYBASE_OCS/lib -R /usr/local/lib " ./configure --prefix=/local/php-4.2.3 --with-apxs2=/local/apache_2_0_43/bin/apxs --with-config-file-path=/local/php4/lib --without-pear --without-mysql --with-pdflib=/usr/local --with-sybase-ct=$SYBASE/$SYBASE_OCS The configuration has been tried without the /usr/local/lib path and PDF support disabled. PHP code which demonstrates the problem: $query = "BEGIN "; $query .= "declare @return_status INTEGER "; $query .= " execute @return_status = spGetSession "; $query .= " @pUser_ID = '$USER_ID, ', "; $query .= " @pSEQ_ID = '$SEQ_ID, ', "; $query .= " @pFunction_ID = $FUNCID "; $query .= " select @return_status as return_status "; $query .= " END "; $jnamedia_conn = sybase_pconnect($JNAMEDIA, $DATABASE_USER_ID, $DATABASE_PASSWORD) or die("Connect to $JNAMEDIA error."); $result = sybase_query($query, $jnamedia_conn) or die("Check_session error. Query was $query"); $row = sybase_fetch_array($result); $ret_val = $row["return_status"]; -- Edit bug report at http://bugs.php.net/?id=20430&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20430&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20430&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20430&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20430&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20430&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20430&r=support Expected behavior: http://bugs.php.net/fix.php?id=20430&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20430&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20430&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20430&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20430&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20430&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20430&r=isapi