#45950 [Opn->Bgs]: Running make results in non-writable sections errors
| From: | jani@php.net | Date: | Sat, 30 Aug 2008 16:02:17 +0000 |
| Subject: | #45950 [Opn->Bgs]: Running make results in non-writable sections errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128550@lists.php.net to get a copy of this message | ||
ID: 45950
Updated by: jani@php.net
Reported By: jackcsprat at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Solaris 10
PHP Version: 5.2CVS-2008-08-29 (CVS)
New Comment:
Solaris is braindead. You need to have everything either as shared or
static. Get shared zlib installed and it should work. Not PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2008-08-29 17:52:54] jackcsprat at yahoo dot com
Description:
------------
I am trying to compile php 5.2.5 on a Solaris 10 server. My configure
string mentioned below works fine, however, when I run make, I see a
zillion lines similar to the following:
.urem 0xc88 /usr/local/lib/libz.a(deflate.o)
.urem 0x1398 /usr/local/lib/libz.a(inflate.o)
.urem 0x7c /usr/local/lib/libz.a(adler32.o)
Then the make stops with the following error:
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
Reproduce code:
---------------
Here is my configure string:
./configure --prefix=/usr/local/php5 \
--with-apx2=/var/apps/apache/bin/apxs \
--with-ldap=/usr/local/etc/openldap \
--with-imap-dir=/usr/local/imap-2006e \
--with-imap-ssl \
--with-imap=/usr/local/imap-2006e \
--with-mysql=/var/apps/mysql \
--with-mysqli=/var/apps/mysql/bin/mysql_config \
--with-xsl=/usr/local/include/libxslt \
--with-ncurses \
--enable-xslt \
--with-xslt-sablot \
--with-bz2=/usr \
--with-gd \
--with-gdbm=/usr/local/lib \
--with-openssl \
--with-zlib \
--with-freetype-dir=/usr/local/include/freetype2/freetype/freetype.h \
--with-expat-dir \
--with-tiff-dir \
--with-jpeg-dir=/usr/local/include/jpeglib.h \
--with-png-dir=/usr/include/libpng12/png.h \
--with-mcrypt \
--with-curl \
--with-curlwrappers \
--with-gettext \
--disable-short-tags \
--disable-debug \
--enable-calendar \
--enable-ctype \
--enable-discard-path \
--enable-exif \
--enable-ftp \
--enable-memory-limit \
--enable-sysvem \
--enable-sysvshm \
--enable-gd-native-ttf \
--enable-soap \
--enable-shmop \
--enable-sockets \
--enable-xslt \
--enable-mbstring \
--with-sqlite=shared \
--with-pdo-sqlite=shared \
--with-pdo-mysql=shared,/var/apps/mysql \
--enable-pdo=shared \
--enable-bcmath
Expected result:
----------------
After running make, I expect a successful output so I can then run
"make install" and complete the php build.
Actual result:
--------------
My gcc version info:
-------------------
gcc -v
Reading specs from
/usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
my ld version ( I have also tried with the gnu ld - same issue)
---------------
ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.489
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45950&edit=1