다음 명령을 사용하여 Debian 64비트 GNU/Linux 6.0.4(squeeze)에서 glib 2.24.2를 컴파일하려고 합니다:
gcc 4.0.3
glibc 2.3.6
구성 명령:
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
오류가 발생합니다.
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.
구성 단계를 통과하기 위해 posix 스레딩 라이브러리를 어떻게 가리키거나 찾나요?
--disable-threads를 포함한다고 가정해 보겠습니다. 이제 구성을 완료할 수 있지만 make는 오류로 종료됩니다.
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
답변1
libc6-dev
패키지를 분실했을 수도 있습니다 .
도망쳤나요 apt-get install build-essential
?