DragonFly users List (threaded) for 2008-05
DragonFly BSD
DragonFly users List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Strange linking problem


From: Hasso Tepper <hasso@xxxxxxxxx>
Date: Thu, 29 May 2008 09:04:08 +0300

Hasso Tepper wrote:
> Simon 'corecode' Schubert wrote:
> > Could you check what libtool is doing to the arguments?  I suspect it
> > reorders them and places DynaLoader.a *before* libnetsnmpagent.so.
> > Ld's default is only to include those objects of an archive, which
> > are needed up to that point.  If libnetsnmpagent.so is specified
> > later, it won't be able to make use of the contained DynaLoader.a. 
> > There is a flag to change this behavior, I think.  The alternative is
> > to reorder the arguments or to add DynaLoader.a at the end again.
>
> No, DynaLoader.a is after libnetsnmpagent.so.

But seems that it's pkgrsc libtool wrapper which reorders libraries so 
that DynaLoader.a will be after libnetsnmpagent.so :(.

To make things even stranger - at least one user testing the patch doesn't 
have the linking problem. Does anyone else see it? The patch is available 
at http://leaf.dragonflybsd.org/~hasso/pkgsrc-net-net-snmp.patch.


-- 
Hasso Tepper



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]