Hi All,
I am new to the PHP and I've just downloaded the PHP 4.0.2 and try to compile on my Mandrake 7.1 box. The problem I've now is when using ./configure, it complaint about the file conftest can't not found.
Does anybody has any idea what's wrong with it?
Here's the parameters I use with configure:
/configure --prefix=/home/apache \
--exec-prefix=/usr/bin \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
--with-apxs \
--enable-track-vars \
--with-idobc=/usr/local/bin \
--with-pgsql=shared \
--with-xml
and the debug.log has the following message:
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -DEAPI=1
CXX:
CXXFLAGS:
INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I$(top_srcdir) -I/home/sources/php-4.0.2/ext/mysql/libmysql
LDFLAGS:
LIBS: -l -lresolv -lm -ldl -lcrypt -lnsl -lresolv
DLIBS:
SAPI: apache
PHP_RPATHS:
uname -a: Linux inspmliang2.inspinc.ad 2.2.14-15mdk #1 Tue Jan 4 22:24:20 CET 2000 i686 unknown
gcc -o conftest -g -O2 -DEAPI=1 conftest.c -l -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
/usr/bin/ld: cannot find -l--library=resolv
collect2: ld returned 1 exit status