Alexander Hansen wrote:
[]
> I was able to duplicate your issue after I removed
> net-snmp15-unified-shlibs.  Presumably somehow the prior build didn't
> suffer from this mis-linkage.
> 
> I'll cc the maintainer.
> 
> My system's a PowerPC running OS 10.4.11, and using Xcode2.5 .  A copy
> of my build log is posted here:
> 
> http://akhmac.blogdns.net:8080/~hansen/finklogs/fink-build-log_net-snmp-unified_5.4.1-2_2007.12.23-08.43.44

I put a modified net-snmp-unified.patch into my exp directory (in 
costabel/finkinfo/) which fixes this for me on Tiger. I see on cvs that 
the RR had tried a related fix recently, but retracted it soon 
afterwards. I am not sure if this was simply because that fix did not 
fix the problem or if there are other issues that I am not aware of.

As far as I understand what it going on (I am not 100% sure), there are 
  at least two issues interacting here:

The first is that -L/sw/lib comes early on the linker line, so that an 
existing /sw/lib/libnetsnmpmibs.dylib is found, which hides the problem 
for some builds.

The second, true, problem is that due to a strange behavior (I would say 
bug) of the Tiger linker, an undefined symbol error is reported, 
although this symbol is only referenced in a dylib on the linker line, 
not in the other object files, and although the flag -undefined 
dynamic_lookup is present. This problem is made to disappear by my patch 
simply by adding the dylib containing the undefined symbol on the linker 
line. That dylib is then found, either in /sw/lib if present, or in the 
build tree if it is not present in /sw/lib.

On Leopard, the problem does not show up, either because the linker does 
not have that bug or, more likely because the linker has another bug 
(the one that leads to the libGL reexport cycles) that helps in this 
case, because the linker finds libnetsnmpmibs.15.dylib in the build 
tree, although it searches for /sw/lib/libnetsnmpmibs.15.dylib.

-- 
Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to