Subject: | Needs libpthread in linker args |
Expected:
Does not shit the bed when running make test
Actual:
Shits the bed when running make test, dies with:
Error: Can't load '.../K-0.02-kqaKuz/blib/arch/auto/K/K.so' for
module K: .../K-0.02-kqaKuz/blib/arch/auto/K/K.so: undefined symbol:
pthread_mutexattr_settype at
.../perl-5.14.2/lib/5.14.2/x86_64-linux/DynaLoader.pm line 190.
Reproduce:
Run make test on a machine which does not have libpthread in
environment linker flags
Resolve:
Add libpthread to linker args:
LDDLFLAGS = -shared -O2 -L/usr/local/lib -lpthread
Have a nice day.