From: php at fiddaman dot net Operating system: Solaris 9 PHP version: 5CVS-2005-11-29 (snap) PHP Bug Type: Compile Failure Bug description: libtool fails to link with static libraries
Description: ------------ When compiling PHP with any extension that requires linking against a static library, libtool is unable to link the libphp5.la object. I can reproduce with the imap extension or mcrypt, both of which require linking against static (.a) libraries. Note that this worked fine with PHP 5.0.5 and if I drop in the libtool from PHP 5.0.5, then the CVS snapshot compiles fine. /opt/c-client contains the UW IMAP toolkit libraries, version 2004g. ./configure \ --prefix=/opt/php5test \ --with-exec-dir=/opt/php5test/bin \ --with-apxs2=/opt/apache/bin/apxs \ --disable-libgcc \ --disable-all \ --with-imap=/opt/c-client \ --with-imap-ssl=/opt/openssl /bin/sh /spool/src/build/php5-200511290730/libtool --silent --preserve-dup-deps --mode=link gcc -g -O2 -rpath /spool/src/build/php5-200511290730/libs -avoid-ve rsion -module -L/usr/ucblib -L/opt/c-client/lib -L/opt/openssl/lib -R /usr/ucbl ib -R /opt/c-client/lib -R /opt/openssl/lib ext/date/php_date.lo ext/date/lib/do w.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/imap/php_imap.lo re gex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/ array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/bro wscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dn s.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/stan dard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/s tandard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail. lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standa rd/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_ print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/st andard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type. lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/st andard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/str natcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/stand ard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_ wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standar d/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1 .lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.l o ext/standard/proc_open.lo ext/standard/sunfuncs.lo ext/standard/streamsfuncs.l o ext/standard/http.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd. lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_ mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.l o main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/st rlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_tic ks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/out put.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/ streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/s treams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/zend_la nguage_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend _ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Z end/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/z end_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Z end/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend _extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend _builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterato rs.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/z end_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_m m.lo Zend/zend_default_classes.lo Zend/zend_reflection_api.lo Zend/zend_execute. lo sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo sapi/apac he2handler/apache_config.lo sapi/apache2handler/php_functions.lo main/internal_f unctions.lo -lc-client -lssl -lcrypto -lpam -lresolv -lm -ldl -lnsl -lsocket -o libphp5.la Text relocation remains referenced against symbol offset in file <unknown> 0x2d50 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d58 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d60 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d68 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d70 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d78 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d80 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d88 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d90 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2d98 /opt/c-client/lib/libc-client.a(osdep.o) <unknown> 0x2da0 /opt/c-client/lib/libc-client.a(osdep.o) [ .. snip .. ] unlink 0xdf8 /opt/c-client/lib/libc-client.a(mx.o) unlink 0xe5c /opt/c-client/lib/libc-client.a(mx.o) unlink 0x1c50 /opt/c-client/lib/libc-client.a(mx.o) unlink 0x24fc /opt/c-client/lib/libc-client.a(mx.o) unlink 0x2fe8 /opt/c-client/lib/libc-client.a(mx.o) unlink 0x264 /opt/c-client/lib/libc-client.a(netmsg.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `libphp5.la' -- Edit bug report at http://bugs.php.net/?id=35475&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35475&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35475&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35475&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35475&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35475&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35475&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35475&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35475&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35475&r=support Expected behavior: http://bugs.php.net/fix.php?id=35475&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35475&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35475&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35475&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35475&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35475&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35475&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35475&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35475&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35475&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35475&r=mysqlcfg