#20430 [Opn->Fbk]: Missing libs for Solaris sybase-ct compile
| From: | iliaa@php.net | Date: | Sat, 07 Dec 2002 22:04:34 +0000 |
| Subject: | #20430 [Opn->Fbk]: Missing libs for Solaris sybase-ct compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27004@lists.php.net to get a copy of this message | ||
ID: 20430
Updated by: iliaa@php.net
Reported By: scampbel@jamedia.com
-Status: Open
+Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Operating System: SunOS 5.8
PHP Version: 4.3.0-pre2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-14 11:20:04] scampbel@jamedia.com
In my post, I wrote that I configured php-4.2.3.
I have in fact tried php-4.2.3, and php4-STABLE-2002111416
with the same results.
------------------------------------------------------------------------
[2002-11-14 11:17:35] scampbel@jamedia.com
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 this bug report at http://bugs.php.net/?id=20430&edit=1