Hi Hamish,

> I've been trying to cross-compile NSS for the NAS box

There are probably more enjoyable hobbies.  :-)

> A particular file tries to link against pthread_atfork, but fails.
> I've checked that the linker is finding the correct libpthread.so, and
> that the symbol is present (can be seen in "readelf -Ws
> libpthread.so"), but it still fails.

pthread_atfork(3) has a long history of being special, and different
arrangements of how it works over time between platforms confuses things
more.  I suspect you're falling foul of the linker only plucking
interesting symbols it knows it needs so far from each object or archive
as it process them all once in the order they are stated.  This is why
two archives that have a circular reference need to have one of them
duplicated, e.g. ‘-lfoo -lbar -lfoo’.

http://ryanarn.blogspot.com/2011/07/curious-case-of-pthreadatfork-on.html
explains more.  If you don't grasp the initial bit of first reading,
don't worry.  He moves on to the explanation and solution.

If that's not it then knowing the command that's run and the output
surrounding the error would help.

-- 
Cheers, Ralph.

-- 
  Next meeting: BEC, Bournemouth, Tuesday, 2019-10-01 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to