Subject: php compile problems
To: None <netbsd-users@netbsd.org>
From: Emre Yildirim <emre.yildirim@us.army.mil>
List: netbsd-users
Date: 09/06/2001 03:32:02
Hi list,

I'm trying to compile PHP 4.0.6 on NetBSD, since I couldn't get the 
version in pkgsrc (4.0.5) to work with MySQL.
I'm getting this error (after 'make install'):

Making install in Zend
Making install in main
Making install in ext
Making install in mysql
Making install in libmysql
Making install in pcre
Making install in pcrelib
Making install in posix
Making install in session
Making install in standard
Making install in xml
Making install in expat
Making install in xmltok
Making install in xmlparse
Making install in sapi
Making install in apache
Making install in TSRM
Making install in regex
Making install in .
/bin/sh /stuff/php-4.0.6/libtool --silent --mode=link gcc  -I. 
-I/stuff/php-4.0.6/ -I/stuff/php-4.0.6/main -I/stuff/php-4.0.6 
-I/usr/local/include/httpd -I/stuff/php-4.0.6/Zend 
-I/stuff/php-4.0.6/ext/mysql/libmysql 
-I/stuff/php-4.0.6/ext/xml/expat/xmltok 
-I/stuff/php-4.0.6/ext/xml/expat/xmlparse -I/stuff/php-4.0.6/TSRM  
-DNETBSD -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2   
-o libphp4.la -rpath /stuff/php-4.0.6/libs -avoid-version   stub.lo  
Zend/libZend.la  sapi/apache/libsapi.la  main/libmain.la  
regex/libregex.la  ext/mysql/libmysql.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/session/libsession.la 
ext/standard/libstandard.la ext/xml/libxml.la  TSRM/libtsrm.la -lcrypt 
-lresolv -lm -lresolv

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/usr/bin/ld: unrecognized option `-Wl,--whole-archive'
*** Error code 1

Stop.
make: stopped in /stuff/php-4.0.6
*** Error code 1

Stop.
make: stopped in /stuff/php-4.0.6

Is there a way around this?  Anyone have the same problem?  Any help 
much appreciated.