On Thu, Oct 6, 2011 at 2:50 PM, Jan Safranek <jsafr...@redhat.com> wrote:

> Well, libtool 2.2.6 worked well in V5-5-patches without any makefile
> changes. (Nearly) the same makefiles don't work with libtool 2.4, that's
> why I was asking if there is a guru around.
>

How about the patch below ?

[PATCH] CHANGES: snmplib: Set the rpath to libperl.so in libnetsnmpmibs.so
such that the dynamic linker can find libperl.so without requiring the user
to modify any dynamic linker settings.

This change in agent/Makefile.in is necessary on the 5.5 branch
and later but not on the 5.4 branch since the 5.4 branch uses an
older version of libtool that propagates the rpath of dependent
libraries. This is called inter-library dependency tracking in
the libtool manual. This functionality is present in libtool
version 1 but not in libtool version 2. For more background
information about dynamic libraries and rpaths, see also the
document with the title "RpathIssue" on the Debian wiki
(http://wiki.debian.org/RpathIssue).

diff --git a/agent/Makefile.in b/agent/Makefile.in
index 2baab7f..59cf4ef 100644
--- a/agent/Makefile.in
+++ b/agent/Makefile.in
@@ -300,7 +300,7 @@ libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION):
${LLIBAGENTOBJS} $(USELIBS)
     $(RANLIB) $(AGENTLIB)

 libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION): ${LMIBOBJS} $(AGENTLIB)
$(USELIBS)
-    $(LIB_LD_CMD) $(MIBLIB) ${LMIBOBJS} $(AGENTLIB) $(USELIBS)
@LD_NO_UNDEFINED@ $(LDFLAGS) ${LMIBLIBS} $(LIB_LD_LIBS) @AGENTLIBS@
+    $(LIB_LD_CMD) $(MIBLIB) ${LMIBOBJS} $(AGENTLIB) $(USELIBS)
@LD_NO_UNDEFINED@ $(LDFLAGS) ${LMIBLIBS} $(PERLLDOPTS_FOR_LIBS)
$(LIB_LD_LIBS) @AGENTLIBS@
     $(RANLIB) $(MIBLIB)

 agentlib: $(AGENTLIB)
diff --git a/net-snmp-config.in b/net-snmp-config.in
index 303cdda..3ba60e3 100644
--- a/net-snmp-config.in
+++ b/net-snmp-config.in
@@ -194,7 +194,7 @@ else
       echo $NSC_LIBDIR $NSC_BASE_SNMP_LIBS
       ;;
     --external-libs)
-      echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS
+      echo $NSC_LDFLAGS $NSC_LNETSNMPLIBS $NSC_LIBS @PERLLDOPTS_FOR_APPS@
       ;;
     #################################################### agent lib
     --base-agent-libs)
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to