ID: 39045 Comment by: goudal at enseirb dot fr Reported By: bnies at bluewin dot ch Status: No Feedback Bug Type: Compile Failure Operating System: SunOS adnpool02 5.9 Generic_1122 PHP Version: 5.2.0 New Comment:
Same problem Solaris10 gcc : when linking with -lc-client With gcc 3.4.6 Tons of such errors : Text relocation remains referenced against symbol offset in file <unknown> 0x3df98 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) <unknown> 0x3dfb0 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) <unknown> 0x3dfc8 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) <unknown> 0x3dfd8 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) <unknown> 0x3dfe8 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) <unknown> 0x3dff0 /net/src/solaris9/imap-2004g//c-client/libc-client.a(utf8.o) < Adding -static -lc-client -dynamic allows the buiding of libphp5.la But... when trying to install install complains about missing libphp5.a Installing PHP SAPI module: apache2handler /opt/http-2.0.59//build/instdso.sh SH_LIBTOOL='/opt/http-2.0.59//build/libtool' libphp5.la /opt/http-2.0.59//modules /opt/http-2.0.59//build/libtool --mode=install cp libphp5.la /opt/http-2.0.59//modules/ cp .libs/libphp5.lai /opt/http-2.0.59//modules/libphp5.la cp .libs/libphp5.a /opt/http-2.0.59//modules/libphp5.a cp: cannot stat `.libs/libphp5.a': No such file or directory apxs:Error: Command failed with rc=65536 . *** Error code 1 The following command caused the error: /a/big/s0/opt10/src/enseirb/php-5.2.0/build/shtool mkdir -p '/opt/http-2.0.59//modules' && /a/big/s0/opt10/src/enseirb/php-5.2.0/build/shtool mkdir -p '/opt/http-2.0.59//conf' && /opt/http-2.0.59/bin/apxs -S LIBEXECDIR='/opt/http-2.0.59//modules' -S SYSCONFDIR='/opt/http-2.0.59//conf' -i -a -n php5 libphp5.la make: Fatal error: Command failed for target `install-sapi' Previous Comments: ------------------------------------------------------------------------ [2007-01-16 23:23:23] phpbug at clez dot net I can confirm the problem on SunOS 5.10 Generic_118833-20 sun4u with gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) c-client and tidy as well lead to linker errors unless I add -static and -dynamic around -lc-client and -ltidy in the generated Makefile. ------------------------------------------------------------------------ [2007-01-08 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-12-31 21:21:26] [EMAIL PROTECTED] -static and -dynamic flags will have no effect. Because c- client is a static lib it'll always be linked statically to PHP. Can you see if the PHP compiles without those two flags? ------------------------------------------------------------------------ [2006-11-16 15:07:24] bnies at bluewin dot ch Because I compiled it according http://ch2.php.net/manual/en/ref.imap.php and the UW-IMAP stuff compiles fine and the symbols are not found due to an improper makefile command. See posting from [17 Oct 10:56am UTC]. When I compile it with -static -lc-client -dynamic then libphp5.la is compiled fine. The makefile is generated by the configure script of your package. Regards, Bernd ------------------------------------------------------------------------ [2006-11-16 14:41:51] [EMAIL PROTECTED] Why do you think that missing symbols in /opt/adnwebmail/lib/libc-client.a is some PHP problem? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/39045 -- Edit this bug report at http://bugs.php.net/?id=39045&edit=1