NSS 3.25.1 undefined reference to `pthread_atfork'

2019-09-06 Thread hamishmb
Hello, I'm trying to cross-compile NSS for armv5, glibc 2.8, and Linux 2.6. I know this is an old platform, but it seems like it's almost working. I've had to modify the coreconf/Linux.mk and coreconf/arch.mk files to specify the target architecture and kernel version, and use a special build

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

2019-09-06 Thread Hamish McIntyre-Bhatty
> The error is not about whether you have definitions in your header > files; the error is about the linker being unable to find a definition > for `pthread_atfork` in whatever libraries you're linking against. > I'd check whether your LDFLAGS specified to `make` are actually > getting through to

NSS 3.25.1 undefined reference to `pthread_atfork'

2019-09-06 Thread Hamish McIntyre-Bhatty
Hello, I've been having issues cross compiling NSS 3.25.1 for an armv5 system that uses glibc 2.8 and Linux 2.6.31.8. An old platform, I know, but it seems to nearly be working. I've modified the coreconf/Linux.mk and coreconf/arch.mk files to use the target system's architecture and kernel

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