NSS 3.25.1 undefined reference to `pthread_atfork'
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 command: make CROSS_COMPILE=1 BUILD_OPT=1 NSPR_INCLUDE_DIR=/home/wmt/nas-sysroot/usr/local/include/nspr/ USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz CC="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" CXX="arm-unknown-linux-gnueabi-g++ --sysroot=/home/wmt/nas-sysroot" LD="arm-unknown-linux-gnueabi-ld --sysroot=/home/wmt/nas-sysroot" DEFAULT_COMPILER="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" It seems like this very nearly works, but it fails with: Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11.o: In function `nsc_CommonInitialize': /home/wmt/Downloads/nss-3.25.1/nss/lib/softoken/pkcs11.c:3022: undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status I'm wondering if there is a better way to cross compile. I've had difficulty finding instructions, but this is definitely a hacky way to achieve it. I would appreciate any advice anyone has to offer with this - I'm pretty stumped at the moment. Hamish -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto
NSS 3.25.1 undefined reference to `pthread_atfork'
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 version. I keep encountering a problem during the build phase where I get this message: Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11.o: In function `nsc_CommonInitialize': /home/wmt/Downloads/nss-3.25.1/nss/lib/softoken/pkcs11.c:3022: undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status My build command is as follows: make CROSS_COMPILE=1 BUILD_OPT=1 NSPR_INCLUDE_DIR=/home/wmt/nas-sysroot/usr/local/include/nspr/ USE_SYSTEM_ZLIB=1 ZLIB_LIBS=-lz CC="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" CXX="arm-unknown-linux-gnueabi-g++ --sysroot=/home/wmt/nas-sysroot" LD="arm-unknown-linux-gnueabi-ld --sysroot=/home/wmt/nas-sysroot" DEFAULT_COMPILER="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" Does anyone have any ideas why this is happening? I have checked pthread.h and it does contain a definition for this function. Hamish -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto