[kaffe] undefined reference to `pthread_...

Ito Kazumitsu kaz at maczuka.gcd.org
Mon Feb 7 08:14:57 PST 2005


Hi,

Make on FreeBSD 5.3-RELEASE failed today:

../kaffevm/.libs/libkaffevm.so: undefined reference to `pthread_attr_getstacksize'
../kaffevm/.libs/libkaffevm.so: undefined reference to `pthread_create'

and so on.

FreeBSD's pthread requires the gcc flag -pthread for linking.

Seeing the output from make, I found -pthread set for gcc compiling
indivisual C programs, but not for the gcc -o .libs/kaffe-bin.




More information about the kaffe mailing list