ID:               20345
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: redhat 7.3
 PHP Version:      4.2.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


Previous Comments:
------------------------------------------------------------------------

[2002-11-10 15:15:13] [EMAIL PROTECTED]

When configuring like on my redhat 7.3 box:
./configure \
                --with-apache=../apache_1.3.27
                --with-gd=/usr \
                --with-png-dir=/usr \
                --with-jpeg-dir=/usr \
                --with-zlib-dir=/usr \
                --enable-zlib \
                --enable-track-vars \
                --with-snmp=/usr/local \
                --enable-ucd-snmp-hack \
                --with-curl=/usr/local/curl \
                --with-openssl=/usr/local/ssl \
                --with-mysql=/usr/local/mysql \
                --with-freetype-dir=/usr/local/freetype2

I get a failure and this is the output of debug.log:

CONFIGURE:   './configure' '--with-apache=../apache_1.3.27'
'--with-gd=/usr' '--with-png-dir=/usr' '--with-jpeg-dir=/usr'
'--with-zlib-dir=/usr' '--enable-zlib' '--enable-track-vars'
'--with-snmp=/usr/local/net-snmp' '--enable-ucd-snmp-hack'
'--with-curl=/usr/local/curl' '--with-openssl=/usr/local/ssl'
'--with-mysql=/usr/local/mysql'
'--with-freetype-dir=/usr/local/freetype2'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:   
CXX:        
CXXFLAGS:   
INCLUDES:    -I/root/monitor/apache_1.3.27/src/include
-I/root/monitor/apache_1.3.27/src/os/unix  -I$(top_builddir)/Zend
-I/usr/local/ssl/include -I/usr/include/freetype2/freetype
-I/usr/local/mysql/include/mysql -I/usr/local/net-snmp/include
LDFLAGS:     -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib
-Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql
-Wl,-rpath,/usr/local/net-snmp/lib -L/usr/local/net-snmp/lib
LIBS:       -lsnmp -lmysqlclient -lgd -lfreetype -lpng -lz -ljpeg
-lcurl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv
-lcrypt -lcurl -lssl -lcrypto -ldl
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/local/ssl/lib /usr/local/mysql/lib/mysql
/usr/local/net-snmp/lib
uname -a:   Linux linuxs 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
unknown

gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/ssl/lib
-L/usr/local/ssl/lib -Wl,-rpath,/usr/local/mysql/lib/mysql
-L/usr/local/mysql/lib/mysql -Wl,-rpath,/usr/local/net-snmp/lib
-L/usr/local/net-snmp/lib conftest.c -lsnmp -lmysqlclient -lgd
-lfreetype -lpng -lz -ljpeg -lcurl -lz -lcrypt -lssl -lcrypto -lresolv
-lm -ldl -lnsl  -lresolv -lcrypt -lcurl -lssl -lcrypto -ldl 1>&5
/usr/bin/ld: cannot find -lsnmp
collect2: ld returned 1 exit status

I have tried with the default snmp .. and with ucd-snmp/net-snmp. I
have modified the ld.so.conf to include the libs for net-snmp. I have
also configured snmp with shared libraries .. I have tried a install to
/usr/local/net-snmp and had the configure point to that dir. ie
./configure --with-snmp /usr/local/net-snmp etc...
I cant figure out what its looking for. Can someone help ?

Thanks,
rod

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20345&edit=1

Reply via email to