Issues cross compiling NSS for arm undefined reference to pthread_atfork

2019-09-05 Thread Hamish MB
Hello, Firstly, I apologise if I'm sending this to the wrong mailing list. I have recently been attempting to cross compile NSS 3.25.1 for an armv5 system running Linux 2.6.31.8 and glibc 2.8. I know this is an old platform, but I am unable to update it. I'm compiling from an x86_64 host. I

Re: Issues cross compiling NSS for arm undefined reference to pthread_atfork

2019-09-05 Thread Hamish MB
EDIT: I found it in /lib/libpthread-2.8.so, and it does contain a reference to that function: "readelf -Ws libpthread-2.8.so  | grep atfork":    62: 0 FUNC    GLOBAL DEFAULT  UND __register_atfork@GLIBC_2.4 (4)    218: b46c    24 FUNC    GLOBAL DEFAULT   12

Re: Issues cross compiling NSS for arm undefined reference to pthread_atfork

2019-09-05 Thread Hamish MB
I forgot to say that -lpthread is in the linker arguments, and near the end as one would expect. The full linker commandline is: arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot -shared  -Wl,--gc-sections -Wl,-z,defs -Wl,-soname -Wl,libsoftokn3.so 

Re: Issues cross compiling NSS for arm undefined reference to, pthread_atfork

2019-09-06 Thread Hamish MB
I have since figured out how to do this by adding -Wl, --verbose, and it shows the library that is being found is the right one, under /lib. I also have checked that this file contains the required symbols: readelf -Ws libpthread.so  | grep atfork    62: 0 FUNC    GLOBAL DEFAULT