php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7177 The configure script tries to use a non-existant library
Submitted: 2000-10-13 05:00 UTC Modified: 2000-10-31 21:51 UTC
From: pietro dot pizzo at usa dot net Assigned:
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 4.0.3 OS: Solaris 2.6
Private report: No CVE-ID: None
 [2000-10-13 05:00 UTC] pietro dot pizzo at usa dot net
In the Sybase section, the configure script adds to the $LIBS variable the library "sybtcl" which does not exists in my system. I take a look in the Sybase directory and I found only the "tcl" library. When configuring the other extensions (eg. zlib), the scritp fails because it tries to use the non-existant sybtcl library while compiling the test programs "conftest".

Moreover the tcl library in /usr/local/lib (owned by the tcl/tk package)  takes the precedence on the Sybase tcl library located in my Sybase directory.

My configure line is:

./configure --with-apache=../apache \
               --with-config-file-path=/usr/local/apache/etc \
               --with-sybase-ct=/sybase \
               --with-oci8 --with-oracle \
               --with-gdbm --with-gd --with-pdflib --with-zlib \
               --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local \
               --enable-calendar --enable-dbase --enable-yp \
               --enable-versioning --enable-track-vars \
               --enable-ftp --enable-trans-sid \
               --enable-sysvsem --enable-sysvshm

This is the tail of the generated config.log file:

configure:41154: checking whether to include zlib support
configure:41343: checking for gzgets in -lz
configure:41362: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -L/usr/loc
al/lib  -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib -R/export/home/oracle/lib -L
/export/home/oracle/lib -R/sybase/lib -L/sybase/lib conftest.c -lz  -lsybtcl -lintl -lcomn -lct -l
cs -lz -ljpeg -lpng -ltiff -lpdf -lclntsh -ldl -lgen -lsocket -lnsl -lclntsh -ldl -lgen -lsocket -
lnsl -lttf -ljpeg -lz -lpng -lgd -lgdbm -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket  -lsocke
t -L/usr/local/lib -ljpeg 1>&5
ld: fatal: library -lsybtcl: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 41351 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gzgets();

int main() {
gzgets()
; return 0; }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 21:17 UTC] sniper@php.net
reclassified
 [2000-10-31 21:51 UTC] joey@php.net
This is a problem with the way Sybase has named their
libraries in the past. The easiest solution is to go
to $SYBASE/libs and ln -s tcl.so sybtcl.so. The better
solution is to upgrade your CT-Lib to a newer version, which should have the proper name.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC