php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20345 /usr/bin/ld: cannot find -lsnmp
Submitted: 2002-11-10 15:15 UTC Modified: 2002-11-10 17:34 UTC
From: rodrioux at shaw dot ca Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.3 OS: redhat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rodrioux at shaw dot ca
New email:
PHP Version: OS:

 

 [2002-11-10 15:15 UTC] rodrioux at shaw dot ca
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-10 17:34 UTC] sniper@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 05:01:30 2024 UTC