Martin Costabel wrote:
> 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.
>
Sounds like a pacth to ld is the best option, rather than requiring a 
library that is not actually used by the application.
Anyone know if there is an update to ld or how to get it?
Do the normal Apple software updates include updates to the development 
toolchain too (xcode?) ???

Is it possible to install gcc/binutils using fink and use them ???  I am 
assuming not, but just wondered :)

So how do I get/install your patch to try out (I'm still new to fink, 
and OS X for that matter) ?
Can I just do a "fink update net-snmp-unified" or is it something more 
manual ???

Thanks, Brendan.



-------------------------------------------------------------------------
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