>>>>> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes:
TA> Wes Hardaker wrote: >> I refuse to release code that may work in some cases and not others >> and there is no clear way to know or warn a user in advance. To that >> effect I've now put the as-needed support under a >> must-turn-on-to-get-it flag (--enable-as-needed). TA> None of the areas touched with this flag (SENSORLIBS, LIBCRYPTO) have TA> ever caused any problems for me, so I think you've turned something off TA> for no good reason. I believe they did as reported by someone on something I now forget. I wish my brain had better cohesion. TA> What's causing problems are our *own* library dependencies (linking with TA> libnetsnmphelpers in particular). Here's an example build error on HP-UX TA> 11.23/IA64 for current CVS MAIN: TA> /bin/sh ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6 -g TA> -Dhpux11=hpux11 -o snmpd snmpd.lo -L/my/libopenssl097/lib TA> libnetsnmpmibs.la libnetsnmpagent.la helpers/libnetsnmphelpers.la TA> ../snmplib/libnetsnmp.la -ldl -lcrypto -lm -lnm -Wl,-E -Wl,-B,deferred TA> -L/usr/lib/hpux32 TA> /opt/perl/lib/5.8.2/IA64.ARCHREV_0-thread-multi/auto/DynaLoader/DynaLoader.a TA> -L/opt/perl/lib/5.8.2/IA64.ARCHREV_0-thread-multi/CORE -lperl -lnsl -lnm TA> -ldl -ldld -lm -lsec -lpthread -lc TA> cc -DNETSNMP_ENABLE_IPV6 -g -Dhpux11=hpux11 -o .libs/snmpd .libs/snmpd.o TA> -Wl,-E -Wl,-B -Wl,deferred -L/my/libopenssl097/lib TA> ./.libs/libnetsnmpmibs.so ./.libs/libnetsnmpagent.so TA> /home/anders/build/5.4cvs/azuma/agent/helpers/.libs/libnetsnmphelpers.so TA> helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so TA> -lcrypto -L/usr/lib/hpux32 TA> /opt/perl/lib/5.8.2/IA64.ARCHREV_0-thread-multi/auto/DynaLoader/DynaLoader.a TA> -L/opt/perl/lib/5.8.2/IA64.ARCHREV_0-thread-multi/CORE -lperl -lnsl -lnm TA> -ldl -ldld -lm -lsec -lpthread -lc -Wl,+b -Wl,/usr/lib TA> ld: Can't find dependent library "libnetsnmphelpers.so.15" TA> Fatal error. TA> gmake[1]: *** [snmpd] Error 1 TA> gmake[1]: Leaving directory `/home/anders/build/5.4cvs/hpux1123/agent' TA> gmake: *** [subdirs] Error 1 TA> hpux1123% Questions: 1) did this fail with 5.3.1 too? 2) does linking statically fix this? I vaguely recall actually having a similar discussion back in the day that libhelpers was created and I wanted it rolled into libagent because of the dependencies but I lost the battle. Or, I have it wrong and the current situation is my fault and I won the battle. Because I'm not sure I refuse to look back in time to figure out if I was potentially wrong. A possible and easy solution is to put the helper code into libagent instead and leave a libhelpers around with about nothing in it (but a bogus function). I don't believe that this would ever cause anyone any trouble since I strongly doubt anyone would ever use *just* libhelpers without libagent. If they did they're doing something truly unusual. It would be trivial to fix this problem this way. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
