ID: 24130 Comment by: mandreiana at yahoo dot com Reported By: gk at online dot dp dot ua Status: Bogus Bug Type: Compile Failure Operating System: Red Hat Linux 9 PHP Version: 4.3.2 New Comment:
It's already with -lintl here: -lsybtcl -lintl -lcomn -lct -lcs -lcrypt -lpdf -lz -lmcrypt -lz -lz -lresolv -lm -ldl -lnsl -lgcc -lxml2 -lz -lm -lcrypt -lcrypt -o sapi/cli/php ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam': /root/2compile/php-4.3.4/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' /opt/sybase-11.9.2/lib/libintl.so: undefined reference to `__ctype_b' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Previous Comments: ------------------------------------------------------------------------ [2003-06-11 21:31:58] bfoddy at visi dot com If I may jump in here, I think there is more to this, or at least a reasonable workaround is available... I remember seeing this several Linux versions ago, but it took me a while to remember how to get around it. But I thought it could because sqsh (www.sqsh.org) compiles and runs just fine on Linux, so why not PHP? Problem: The libtool is converting the -lintl into /usr/lib/libintl.so in the output stream, you can see this by putting set -x in the start of libtool. If you take the exact gcc command it tries to execute at link time and replace /usr/lib/libintl.so (towards the end of the command) with the original intended -lintl that is given to libtool, php will link and execute correctly. Sybase includes its own libintl.so and making this change seems to allow its inclusion over the that in /usr/lib I'm running this on Mandrake 9.1 (glib 2.3.1 same as RH9) and Sybase Open Client 11.1.1 (the standard 11.9.2 OC). My config was ./configure --with-sybase-ct=/opt/sybase-11.9.2 --with-mysql Hope this helps. ------------------------------------------------------------------------ [2003-06-11 12:26:14] [EMAIL PROTECTED] See bug #23884 ------------------------------------------------------------------------ [2003-06-11 12:17:56] gk at online dot dp dot ua Configure: './configure' \ '--with-apxs=/usr/local/apache/bin/apxs' \ '--with-sybase-ct=/opt/sybase-11.9.2' \ '--enable-track-vars' \ '--with-mysql' After make: /php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp' /opt/sybase-11.9.2/lib/libintl.so: undefined reference to `__ctype_b' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 also this error return with configure --with-sybase= ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24130&edit=1