I am trying to compile glib 2.24.2 under Debian 64bit GNU/Linux 6.0.4 (squeeze) using:
gcc 4.0.3
glibc 2.3.6
Configure command:
CPP="/home/swarkentin/externalBins/bin/cpp" \
CC="/home/swarkentin/externalBins/bin/gcc" \
CXX="/home/swarkentin/externalBins/bin/g++" \
LDFLAGS="-L/home/swarkentin/externalBins/lib64 -L/home/swarkentin/externalBins/lib" \
CFLAGS="-I /home/swarkentin/externalBins/include -O2 -fno-strict-aliasing -fno-omit-frame-pointer" \
./configure --prefix=/home/swarkentin/target \
--enable-static --disable-shared
I am getting an error:
checking thread related cflags... -D_REENTRANT
checking for pthread_create/pthread_join... no
checking for pthread_create/pthread_join in -lpthread... no
checking for pthread_create/pthread_join in -lpthread32... no
checking for pthread_create/pthread_join in -lpthreads... no
checking for pthread_create/pthread_join in -lthread... no
checking for pthread_create/pthread_join in -ldce... no
configure: error: I can't find the libraries for the thread implementation
posix. Please choose another thread implementation or
provide information on your thread implementation.
You can also run 'configure --disable-threads'
to compile without thread support.
How can I point/find posix thread libraries to make it past configure step?
Let's say, I include --disable-threads. Now I can finish configure, but make ends with an error:
gcancellable.c: In function 'IA__g_cancellable_reset':
gcancellable.c:372: error: 'g__cancellable_lock' undeclared (first use in this function)
gcancellable.c:372: error: (Each undeclared identifier is reported only once
gcancellable.c:372: error: for each function it appears in.)
gcancellable.c: In function 'IA__g_cancellable_disconnect':
gcancellable.c:764: error: 'g__cancellable_lock' undeclared (first use in this function)
make[5]: *** [gcancellable.lo] Error 1
debuild
ordebuild binary
. If you want to adjust what you use to compile it with, you can do that indebian/rules
.