This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++.so: undefined reference to `pthread_create'
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 22:54:24 -0500
- Subject: libstdc++.so: undefined reference to `pthread_create'
- References: <200311150013.hAF0Dj9a023558@hiauly1.hia.nrc.ca>
John David Anglin writes:
> The following error occured today with the cvs source for 3.4
> building hppa-unknown-linux-gnu:
>
> /home/dave/gnu/gcc-3.4/objdir/gcc/g++ -shared-libgcc -B/home/dave/gnu/gcc-3.4/objdir/gcc/ -nostdinc++ -B/home/dave/opt/gnu/hppa-linux/bin/ -B/home/dave/opt/gnu/hppa-linux/lib/ -isystem /home/dave/opt/gnu/hppa-linux/include -isystem /home/dave/opt/gnu/hppa-linux/sys-include -include bits/stdc++.h -g -O2 -D_GNU_SOURCE -o abi_check abi_check.o -L/home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src -L/home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs -lm
> /home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs/libstdc++.so: un defined reference to `pthread_create'
> /home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_getspecific'
> /home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_once'
> /home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_key_create'
> /home/dave/gnu/gcc-3.4/objdir/hppa-linux/libstdc++-v3/src/.libs/libstdc++.so: undefined reference to `pthread_setspecific'
> collect2: ld returned 1 exit status
>
> Any ideas?
-lpthread?
Or is that implied on hp linux?
Jerry Quinn