Cannot build PECL/apd on Solaris 2.8
| From: | Jesus M. Castagnetto | Date: | Mon, 18 Nov 2002 22:00:54 +0000 |
| Subject: | Cannot build PECL/apd on Solaris 2.8 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10938@lists.php.net to get a copy of this message | ||
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?
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
Research:
http://metallo.scripps.edu/
Personal: http://www.castagnetto.org/
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com