Re: Cannot build PECL/apd on Solaris 2.8

From: Date: Mon, 18 Nov 2002 22:09:06 +0000
Subject: Re: Cannot build PECL/apd on Solaris 2.8
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10939@lists.php.net to get a copy of this message
On Mon, 2002-11-18 at 23:00, Jesus M. Castagnetto wrote: > First I tried the "pear build package.xml" route, and it seemed like everything > went fine, except that nothing was really built. > > Then, I tried the "phpize; configure; make" route, and I got: > > mode=link gcc -DPHP_ATOM_INC -I/home/jesusmc/devel/php/pear/PECL/apd/include > -I/home/jesusmc/devel/php/pear/PECL/apd/main > -I/home/jesusmc/devel/php/pear/PECL/apd > -I/export/dredox1/devel_server/php/include/php > -I/export/dredox1/devel_server/php/include/php/main > -I/export/dredox1/devel_server/php/include/php/Zend > -I/export/dredox1/devel_server/php/include/php/TSRM -DHAVE_CONFIG_H -o > apd.la -export-dynamic -avoid-version -prefer-pic -module -rpath > /home/jesusmc/devel/php/pear/PECL/apd/modules php_apd.lo apd_lib.lo opcode.lo > apd_stack.lo > gcc: unrecognized option `-prefer-pic' > gcc: unrecognized option `-rpath' > ld: fatal: file /home/jesusmc/devel/php/pear/PECL/apd/modules: unknown file > type > ld: fatal: File processing errors. No output written to apd.la > collect2: ld returned 1 exit status > make: [apd.la] Error 1 (ignored) > mode=install cp ./apd.la /home/jesusmc/devel/php/pear/PECL/apd/modules > cp: cannot access ./apd.la > make: [/home/jesusmc/devel/php/pear/PECL/apd/modules/apd.la] Error 2 (ignored) > > Hmm, seems like my gcc (Solaris 8, version 3.0.2, btw) does not grok those > '-prefer-pic' and '-rpath' options in the Makefile. If I used -fPIC and -R > instead, it does not give the same error but fails while linking. I know I am > missing something trivial, but I cannot think what it is at the moment. > > Ideas? To me, this looks like a problem with libtool on Solaris. Are you able to build other standalone extensions using phpize? - Stig

« previous php.pear.dev (#10939) next »