You beat me to that one! It was breaking MinGW builds as well. Are all of the other places where -ldl is needed indentified, or are we going to have to see if anything breaks?

Andy

Robert Story (Coders) wrote:

Problem
-------
A recent fix in configure.in uncovered a previous problem. A fix to correctly
determine when the dlmod module was configured into the agent suddenly started
working, and a library (-ldl) was added to the link libraries unconditionally.
This library is not available on (at least some versions of) freebsd and
probably other operating systems as well.

Solution
--------
Remove the unconditional addition of the library. Other checks in configure add
-ldl when it is needed for the dlopen fuction.

Patch
-----
Index: configure.in
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/configure.in,v
retrieving revision 5.127
diff -u -r5.127 configure.in
--- configure.in        19 Oct 2004 23:23:22 -0000      5.127
+++ configure.in        25 Oct 2004 23:29:19 -0000
@@ -1280,7 +1280,6 @@
 AC_MSG_CHECKING([whether we have to build PIC code])
 echo "$with_mib_modules" | grep "ucd-snmp/dlmod" >/dev/null
 if test $? -eq 0 ; then
-       DLLIBS="-ldl"
         LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS"
        AC_MSG_RESULT(yes)
 else



-- -------------------------- Andy Smith, MCP [EMAIL PROTECTED] --------------------------



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to