On Tue, 23 Aug 2005, Thomas Anders wrote:
Subhendu Ghosh wrote:
I am trying to use the "net-snmp-config --libs" on a RedHat EL4 system
for program that uses the net-snmp headers and libs in autoconf.
The above returns "-L/usr/lib -lnetsnmp -lcrypto -lelf -lm"
Including -lelf seems to break all the make proccess...
(I have seen similar results on other RH derived systems)
Known bug? workaround? rtfm?
Have you tried the suggestions from the FAQ?
On RedHat 8.0 or up I get "/usr/bin/ld: cannot find -lelf"?
----------------------------------------------------------
A typical installation of RedHat 8.0 and up doesn't always include
the full set of 'libelf' library links. In order to build Net-SNMP
you may need to install the 'elfutils-devel' RPM.
A alternative quick fix is to add the missing symbolic link, using:
ln -s libelf.so.1 /usr/lib/libelf.so
(or whatever the correct library is on your system).
This is typically only needed when you've configured the agent to
include the Host Resources MIB support ('--with-mib-modules=host').
Thanks - didn't see this one since I was working on manager side code and
following the autoconf includes. I shouldn't have to include libelf ...
--
-sg
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders