php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37198 Compilation fatal error: library -lsybtcl: not found
Submitted: 2006-04-25 14:48 UTC Modified: 2006-04-26 09:41 UTC
From: vincent dot castagnet at sgcib dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5CVS-2006-04-25 (snap) OS: SOLARIS 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vincent dot castagnet at sgcib dot com
New email:
PHP Version: OS:

 

 [2006-04-25 14:48 UTC] vincent dot castagnet at sgcib dot com
Description:
------------
When compiling with latest snapshot, fatal error when trying to write libphp5.so

I searched in the Bug database and also on the net, but couldn't find anything really close enough to my problem, or no solution have been provided :(




Reproduce code:
---------------
Configure:

./configure \
  --prefix=/usr/local/php \
  --with-sybase-ct=$SYBASE/$SYBASE_OCS \
  --enable-static=sybase-ct \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-gd \
  --with-zlib-dir=/usr/local \
  --enable-sysvmsg \
  --enable-sysvsem \
  --enable-sysvshm

make

ld: fatal: library -lsybtcl: not found
ld: fatal: File processing errors. No output written to .libs/libphp5.so
*** Error code 1
make: Fatal error: Command failed for target `libphp5.la'

Expected result:
----------------
Expecting compilation success.

Actual result:
--------------
Error at the end (it seems) of the "make"

main/internal_functions.lo -lsybtcl -lintl -lcomn -lct -lcs -lrt -lpng -lz -lz -lresolv -lm -ldl -lnsl -lsocket -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl  -o libphp5.la
ld: fatal: library -lsybtcl: not found
ld: fatal: File processing errors. No output written to .libs/libphp5.so
*** Error code 1
make: Fatal error: Command failed for target `libphp5.la'



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-26 07:44 UTC] tony2001@php.net
Are you sure you have this library installed?
 [2006-04-26 07:48 UTC] vincent dot castagnet at sgcib dot com
Yes, I have it. But it seems there is something wrong in the "configure" file. We changed lsybtcl by ltcl, and then launched a make again, but hen we are stopped by a Sqlite error... we continue investigating.
 [2006-04-26 07:55 UTC] tony2001@php.net
From what I can see in ext/sybase/config.m4 first it looks for libtcl and only then tries to use sybtcl.
So I'd say you need to check out why symbol netg_errstr() not found in libtcl.

>but then we are stopped by a Sqlite error..
Which exactly? I don't remember any problems on Solaris, except for its slowness..
 [2006-04-26 09:41 UTC] vincent dot castagnet at sgcib dot com
Ok, we went through that error by compiling with PHP 5.0.4 from sunfreeware and with the following configure command:

./configure' '--prefix=/usr/local/php' '--with-sybase-ct=/opt/sybase' '--enable-static=sybase-ct' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gd' '--with-zlib-dir=/usr/local' '--without-sqlite' '--without-pdo-sqlite' '--without-pear' 

Build went OK.
Then for the apache to work we had to do the little trick as explained here by "sean dot healey at bayernlb dot co dot uk":
http://us2.php.net/sybase

Now php works with apache, but we have Sybase connection problems. I hope it's not coming from the build :( .
But that's another problem and this bug is closed.

Thanks for your help !! :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 21 13:00:01 2025 UTC