Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18259 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77497 invoked by uid 1010); 22 Aug 2005 16:45:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77482 invoked from network); 22 Aug 2005 16:45:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2005 16:45:35 -0000 X-Host-Fingerprint: 128.59.39.12 lisbon.cc.columbia.edu Solaris 9 Received: from ([128.59.39.12:49667] helo=lisbon.cc.columbia.edu) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 38/64-33075-F210A034 for ; Mon, 22 Aug 2005 12:45:35 -0400 Received: from lisbon.cc.columbia.edu (localhost [127.0.0.1]) by lisbon.cc.columbia.edu (8.13.0/8.13.0) with ESMTP id j7MGjVKO000403 for ; Mon, 22 Aug 2005 12:45:31 -0400 (EDT) Received: (from selsky@localhost) by lisbon.cc.columbia.edu (8.13.0/8.12.3/Submit) id j7MGjVrZ000402 for internals@lists.php.net; Mon, 22 Aug 2005 12:45:31 -0400 (EDT) Date: Mon, 22 Aug 2005 12:45:31 -0400 To: internals@lists.php.net Message-ID: <20050822164531.GA29659@columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Subject: compile error with imap extension on php5.1-dev From: selsky@columbia.edu (Matt Selsky) I'm building the imap extension as a shared library on Solaris 9 with gcc 2.95.2 and imap-2004e. I'm running configure as follows: $ ./configure --disable-all \ --with-imap=shared,/tmp/imap-2004e \ --with-imap-ssl=/opt/local This works fine with php5.0-dev as of a few minutes ago. However with php5.1-dev (also, as of a few minutes ago) I get errors like this when running make: /bin/sh /tmp/php5-200508221430/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/imap/ -I/tmp/php5-200508221430/ext/imap/ -DPHP_ATOM_INC -I/tmp/php5-200508221430/include -I/tmp/php5-200508221430/main -I/tmp/php5-200508221430 -I/tmp/imap-2004e/c-client -I/opt/local/include -I/tmp/php5-200508221430/TSRM -I/tmp/php5-200508221430/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /tmp/php5-200508221430/ext/imap/php_imap.c -o ext/imap/php_imap.lo /bin/sh /tmp/php5-200508221430/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/tmp/php5-200508221430/include -I/tmp/php5-200508221430/main -I/tmp/php5-200508221430 -I/tmp/imap-2004e/c-client -I/opt/local/include -I/tmp/php5-200508221430/TSRM -I/tmp/php5-200508221430/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -o ext/imap/imap.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/php5-200508221430/modules -L/usr/ucblib -L/opt/gcc2952-28/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 ext/imap/php_imap.lo -R/opt/local/lib -L/opt/local/lib -lssl -lcrypto -R/tmp/imap-2004e/c-client -L/tmp/imap-2004e/c-client -lc-client -lcrypt -lpam Text relocation remains referenced against symbol offset in file 0x2a00 /tmp/imap-2004e/c-client/libc-client.a(osdep.o) 0x2a04 /tmp/imap-2004e/c-client/libc-client.a(osdep.o) ... setgid 0xadcc /tmp/imap-2004e/c-client/libc-client.a(osdep.o) ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make: *** [ext/imap/imap.la] Error 1 For the full output see: http://www.columbia.edu/~selsky/stuff/php5.1-dev-make.txt I reported this as a PHP bug: http://bugs.php.net/bug.php?id=34163 I was told it was not a PHP bug. But something clearly broke between php5.0 CVS and php5.1 CVS, at least on the Solaris platform. If there's other information I can provide, please let me know. I'd be happy to test anything. Thanks for your time, -- Matt