Subject: Troubles getting php 4.0.6 to build with mysql support
To: 'netbsd-help@netbsd.org' <netbsd-help@netbsd.org>
From: mike begley <spam@hell.org>
List: netbsd-help
Date: 10/02/2001 19:24:40
I've been unsuccessful getting php 4.0.6 to build with MySQL support on
NetBSD 1.5.1 (x86).

I am configuring php like so:

./configure --with-mysql=/usr/local
--with-imap=../imap-2001.RELEASE-CANDIDATE.1
--with-apxs=/usr/local/apache/bin/apxs

And make continues until building the library:

/bin/sh /usr/home/spam/porting/php-4.0.6/libtool --silent --mode=link gcc
-I. -
I/usr/home/spam/porting/php-4.0.6/ -I/usr/home/spam/porting/php-4.0.6/main
-I/us
r/home/spam/porting/php-4.0.6 -I/usr/local/apache/include
-I/usr/home/spam/porti
ng/php-4.0.6/Zend
-I/usr/home/spam/porting/imap-2001.RELEASE-CANDIDATE.1/c-clien
t -I/usr/local/include/mysql
-I/usr/home/spam/porting/php-4.0.6/ext/xml/expat/xm
ltok -I/usr/home/spam/porting/php-4.0.6/ext/xml/expat/xmlparse
-I/usr/home/spam/
porting/php-4.0.6/TSRM  -DNETBSD -DUSE_EXPAT -I/usr/pkg/include
-DSUPPORT_UTF8 -
DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
/usr/home/spam/porting/php-4.0.
6/libs -avoid-version
-L/usr/home/spam/porting/imap-2001.RELEASE-CANDIDATE.1/c-c
lient -L/usr/local/lib/mysql  -R
/usr/home/spam/porting/imap-2001.RELEASE-CANDID
ATE.1/c-client -R /usr/local/lib/mysql stub.lo  Zend/libZend.la
sapi/apache/lib
sapi.la  main/libmain.la  regex/libregex.la  ext/imap/libimap.la
ext/mysql/libmy
sql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la
ext/s
tandard/libstandard.la ext/xml/libxml.la  TSRM/libtsrm.la -lc-client
-lmysqlclie
nt -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.
*** Error code 1

Stop.


Any ideas/pointers on getting this package to build?

thanks...

-m