> 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 your link command (and whether you're supposed to > be using `-lpthread`, `-pthread`, or `-pthreads`...), what libraries > your linker command is trying to link against, and whether those > libraries contain the expected definitions. > > -Nathan
I forgot to mention that -lpthread is in the linker command. 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 -Wl,--version-script,Linux2.6_arm_glibc_PTH_DBG.OBJ/softokn.def -o Linux2.6_arm_glibc_PTH_DBG.OBJ/libsoftokn3.so Linux2.6_arm_glibc_PTH_DBG.OBJ/fipsaudt.o Linux2.6_arm_glibc_PTH_DBG.OBJ/fipstest.o Linux2.6_arm_glibc_PTH_DBG.OBJ/fipstokn.o Linux2.6_arm_glibc_PTH_DBG.OBJ/lgglue.o Linux2.6_arm_glibc_PTH_DBG.OBJ/lowkey.o Linux2.6_arm_glibc_PTH_DBG.OBJ/lowpbe.o Linux2.6_arm_glibc_PTH_DBG.OBJ/padbuf.o Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11.o Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11c.o Linux2.6_arm_glibc_PTH_DBG.OBJ/pkcs11u.o Linux2.6_arm_glibc_PTH_DBG.OBJ/sdb.o Linux2.6_arm_glibc_PTH_DBG.OBJ/sftkdb.o Linux2.6_arm_glibc_PTH_DBG.OBJ/sftkhmac.o Linux2.6_arm_glibc_PTH_DBG.OBJ/sftkpars.o Linux2.6_arm_glibc_PTH_DBG.OBJ/sftkpwd.o Linux2.6_arm_glibc_PTH_DBG.OBJ/softkver.o Linux2.6_arm_glibc_PTH_DBG.OBJ/tlsprf.o Linux2.6_arm_glibc_PTH_DBG.OBJ/jpakesftk.o ../../../dist/L inux2.6_arm_glibc_PTH_DBG.OBJ/lib/libfreebl.a -L../../../dist/Linux2.6_arm_glibc_PTH_DBG.OBJ/lib -lsqlite3 -L../../../dist/Linux2.6_arm_glibc_PTH_DBG.OBJ/lib -lnssutil3 -L../../../dist/Linux2.6_arm_glibc_PTH_DBG.OBJ/lib -L/home/wmt/nas-sysroot/usr/include/ -lplc4 -lplds4 -lnspr4 -lpthread -ldl -lc How can I check which library its trying to build with? It could be trying to use the host libraries I guess. Hamish -- dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

