08/05/14 18:50:11
Solaris 10(x86) で PHP5.2のコンパイルしようとしていますが、エラーが出て困っています。
$ wget URLリンク(museum.php.net)
$ gzip -dc php-5.2.4.tar.gz | tar xvf -
$ cd php-5.2.4
$ ./configure \
--with-apxs2=/usr/apache2/bin/apxs \
--with-config-file-path=/etc/apache2/php \
--with-pgsql \
--enable-mbstring \
--with-zlib-dir=/usr/local/lib \
--enable-sockets \
--with-iconv-dir=/usr/local/lib
$ make
・・・
errno 0x1c8a /usr/local/lib/libz.a(gzio.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
コンパイル前にldを変えておくとエラーが出なくなるようですが・・・。
# mv /usr/ccs/bin/ld /usr/ccs/bin/ld.org
# ln -s /usr/sfw/bin/gld /usr/ccs/bin/ld
他の回避策はないでしょうか?