Subject: Problem compiling PHP 4.0.5
To: None <netbsd-help@netbsd.org>
From: Wouter Vijvers <woutje@chello.nl>
List: netbsd-help
Date: 05/16/2001 02:09:32
This is a multi-part message in MIME format.

------=_NextPart_000_002F_01C0DDAD.3F506D10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
I'm trying to compile a new PHP DSO for Apache in order to have
MySQL-support. Apache is 1.3.14 from the pkgsrc. PHP is already working
correctly as a module. I took the configure command from <?phpinfo()> and
looked in "configure --help" if all was still ok (offcourse I put in MySQL
support). I checked the paths in the configure command, they're ok. I also
deleted the config.cache file before building. Below is the script I used (I
made the script for easy recompiling.):
-------------------------------
#!/bin/sh

./configure --without-gd \
--with-mysql \
--with-gdbm=/usr/pkg \
--with-yp \
--without-zlib \
--with-config-file-path=/usr/pkg/etc \
--with-exec-dir=/usr/pkg/libexec/php4 \
--with-system-regex \
--enable-track-vars \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-memory-limit \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-dbase \
--with-filepro \
--with-apxs=/usr/pkg/sbin/apxs \
--host=i386--netbsd \
--with-gnu-ld \
--prefix=/usr/pkg
------------------------------------------------

Attached is output from make. It exits with:

*** 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.

What am I doing wrong or what is going on? Has the warning anything to do
with the error? I also saw a warning that I needed bison to recompile Zend,
could that be the cause? Is it a good idea to configure with only the
essential options (host, prefix, MySQL and apxs)?

Thanks a lot, best regards,
Wouter

------=_NextPart_000_002F_01C0DDAD.3F506D10
Content-Type: text/plain;
	name="make.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="make.txt"

node184a# make
Making all in Zend
Making all in main
/bin/sh /home/wouter/download/php-4.0.5/libtool --silent =
--mode=3Dcompile gcc  -I. -I/home/wouter/download/php-4.0.5/main =
-I/home/wouter/download/php-4.0.5/main -I/home/wouter/download/php-4.0.5 =
-I/usr/pkg/include/httpd -I/home/wouter/download/php-4.0.5/Zend =
-I/usr/pkg/include -I/home/wouter/download/php-4.0.5/ext/mysql/libmysql =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmltok =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmlparse =
-I/home/wouter/download/php-4.0.5/TSRM  -DNETBSD -DEAPI -DUSE_EXPAT =
-I/usr/pkg/include -DSUPPORT_UTF8 -DXML_BYTE_ORDER=3D12 -g -O2  -c =
internal_functions.c
/bin/sh /home/wouter/download/php-4.0.5/libtool --silent --mode=3Dlink =
gcc  -I. -I/home/wouter/download/php-4.0.5/main =
-I/home/wouter/download/php-4.0.5/main -I/home/wouter/download/php-4.0.5 =
-I/usr/pkg/include/httpd -I/home/wouter/download/php-4.0.5/Zend =
-I/usr/pkg/include -I/home/wouter/download/php-4.0.5/ext/mysql/libmysql =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmltok =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmlparse =
-I/home/wouter/download/php-4.0.5/TSRM  -DNETBSD -DEAPI -DUSE_EXPAT =
-I/usr/pkg/include -DSUPPORT_UTF8 -DXML_BYTE_ORDER=3D12 -g -O2   -o =
libmain.la  main.lo internal_functions.lo snprintf.lo php_sprintf.lo =
safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo =
php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo reentrancy.lo =
php_variables.lo php_ticks.lo network.lo php_open_temporary_file.lo =
php_logos.lo =20
Making all in ext
Making all in dba
Making all in dbase
Making all in filepro
Making all in mysql
Making all in libmysql
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in sysvsem
Making all in sysvshm
Making all in wddx
Making all in xml
Making all in expat
Making all in xmltok
Making all in xmlparse
Making all in sapi
Making all in apache
Making all in TSRM
Making all in .
/bin/sh /home/wouter/download/php-4.0.5/libtool --silent --mode=3Dlink =
gcc  -I. -I/home/wouter/download/php-4.0.5/ =
-I/home/wouter/download/php-4.0.5/main -I/home/wouter/download/php-4.0.5 =
-I/usr/pkg/include/httpd -I/home/wouter/download/php-4.0.5/Zend =
-I/usr/pkg/include -I/home/wouter/download/php-4.0.5/ext/mysql/libmysql =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmltok =
-I/home/wouter/download/php-4.0.5/ext/xml/expat/xmlparse =
-I/home/wouter/download/php-4.0.5/TSRM  -DNETBSD -DEAPI -DUSE_EXPAT =
-I/usr/pkg/include -DSUPPORT_UTF8 -DXML_BYTE_ORDER=3D12 -g -O2   -o =
libphp4.la -rpath /home/wouter/download/php-4.0.5/libs -avoid-version =
-L/usr/pkg/lib  -R /usr/pkg/lib stub.lo  Zend/libZend.la  =
sapi/apache/libsapi.la  main/libmain.la    ext/dba/libdba.la =
ext/dbase/libdbase.la ext/filepro/libfilepro.la ext/mysql/libmysql.la =
ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la =
ext/standard/libstandard.la ext/sysvsem/libsysvsem.la =
ext/sysvshm/libsysvshm.la ext/wddx/libwddx.la ext/xml/libxml.la  =
TSRM/libtsrm.la -lgdbm -lresolv -lm -lcrypt -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.
node184a# 
------=_NextPart_000_002F_01C0DDAD.3F506D10--