#34163 [Bgs]: text relocation when building imap extension
| From: | selsky at columbia dot edu | Date: | Wed, 14 Feb 2007 08:09:19 +0000 |
| Subject: | #34163 [Bgs]: text relocation when building imap extension | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108837@lists.php.net to get a copy of this message | ||
ID: 34163
User updated by: selsky at columbia dot edu
Reported By: selsky at columbia dot edu
Status: Bogus
Bug Type: Compile Failure
Operating System: Solaris 9
PHP Version: 5CVS-2005-08-17
New Comment:
I changed EXTRACFLAGS to include "-fPIC" when building UWash
imap and now php links properly. I don't know why this wasn't
required in older php releases.
Previous Comments:
------------------------------------------------------------------------
[2005-08-21 04:10:40] selsky at columbia dot edu
This also worked in php 5.0.4:
/bin/sh /tmp/php-5.0.4/libtool --silent --preserve-dup-
deps --mode=compile gcc -Iext/imap/ -I/tmp/php-5.0.4/
ext/imap/ -DPHP_ATOM_INC -I/tmp/php-5.0.4/include -I/
tmp/php-5.0.4/main -I/tmp/php-5.0.4 -I/src/mail/imap/
imap-2004a/obj/solaris9-sslonly/c-client -I/opt/local/
include -I/tmp/php-5.0.4/TSRM -I/tmp/php-5.0.4/Zend
-D_POSIX_PTHREAD_SEMANTICS -g -O2 -c /tmp/php-5.0.4/
ext/imap/php_imap.c -o ext/imap/php_imap.lo
/bin/sh /tmp/php-5.0.4/libtool --silent --preserve-dup-
deps --mode=link gcc -DPHP_ATOM_INC -I/tmp/php-5.0.4/
include -I/tmp/php-5.0.4/main -I/tmp/php-5.0.4 -I/src/
mail/imap/imap-2004a/obj/solaris9-sslonly/c-client -I/
opt/local/include -I/tmp/php-5.0.4/TSRM -I/tmp/php
-5.0.4/Zend -D_POSIX_PTHREAD_SEMANTICS -g -O2 -o
ext/imap/imap.la -export-dynamic -avoid-version -prefer-
pic -module -rpath /tmp/php-5.0.4/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/src/mail/imap/imap-2004a/
obj/solaris9-sslonly/c-client -L/src/mail/imap/imap
-2004a/obj/solaris9-sslonly/c-client -lc-client -lcrypt
-lpam
/bin/sh /tmp/php-5.0.4/libtool --silent --preserve-dup-
deps --mode=install cp ext/imap/imap.la /tmp/php-5.0.4/
modules
------------------------------------------------------------------------
[2005-08-18 06:58:01] selsky at columbia dot edu
This worked in 4.3.11. Why would it suddenly not work
in php5.1?
------------------------------------------------------------------------
[2005-08-18 02:32:58] sniper@php.net
Apparently you can't build a shared DSO with only static library linked
to it on Solaris. Not PHP bug -> bogus.
------------------------------------------------------------------------
[2005-08-17 21:22:15] selsky at columbia dot edu
Build imap as a shared extension breaks things again:
$ ./configure --disable-all
--with-imap=shared,/src/mail/imap/imap-2004a/obj/solaris9-sslonly
--with-imap-ssl=/opt/local
------------------------------------------------------------------------
[2005-08-17 20:51:51] selsky at columbia dot edu
That worked. I'll try adding each extension back in until it fails
again.
------------------------------------------------------------------------
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/34163
--
Edit this bug report at http://bugs.php.net/?id=34163&edit=1