[Home]

Summary:ASTERISK-06454: [patch] Res_snmp/libnetsnmp collides with unload_module
Reporter:Olle Johansson (oej)Labels:
Date Opened:2006-03-02 08:24:31.000-0600Date Closed:2008-01-15 17:15:02.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20060302__bug6628.diff.txt
Description:gcc -dynamic -bundle -undefined suppress -force_flat_namespace  -o res_snmp.so  res_snmp.o snmp/agent.o  -L/usr/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -ldl -lkvm -lcrypto -lz -lm -lwrap
/usr/bin/ld: multiple definitions of symbol _unload_module
res_snmp.o definition of _unload_module in section (__TEXT,__text)
/usr/lib/libnetsnmp.dylib(libnetsnmp.5.2.1.dylib-master.o) definition of _unload_module
collect2: ld returned 1 exit status
make[1]: *** [res_snmp.so] Error 1
make: *** [subdirs] Error 1

****** ADDITIONAL INFORMATION ******

This happens on my FreeBSD and my OS/X box. Very irritating.
Comments:By: Tilghman Lesher (tilghman) 2006-03-02 11:53:36.000-0600

Possible temporary fix (until rizzo's loader changes are all committed).

By: Russell Bryant (russell) 2006-03-02 13:09:49.000-0600

This would only provide a temporary fix for OSX, not FreeBSD, right?

By: Tilghman Lesher (tilghman) 2006-03-02 13:34:06.000-0600

No, it should work for FreeBSD, too.

By: Olle Johansson (oej) 2006-03-06 05:10:52.000-0600

Committed to svn trunk while waiting for the final solution... :-)

By: Digium Subversion (svnbot) 2008-01-15 17:15:02.000-0600

Repository: asterisk
Revision: 12011

U   trunk/res/Makefile

------------------------------------------------------------------------
r12011 | oej | 2008-01-15 17:15:02 -0600 (Tue, 15 Jan 2008) | 3 lines

Issue ASTERISK-6454 - Disable res_snmp on incompatible platforms until
we have a resolution for the conflict. (Corydon's patch)

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

http://svn.digium.com/view/asterisk?view=rev&revision=12011