[AC] Popsute (?) pthreads w glibc-2.3.6-10 albo libgadu-1.7.0-1 do poprawki

Łukasz Maśko ed w yen.ipipan.waw.pl
Pon, 15 Sty 2007, 21:08:05 CET


Próbuję sobie zbudować właśnie libgadu-1.7.0-1 na potrzeby nowego kadu. 
Kilka godzin temu zrobiłem to w pracy, gdzie wszystko przeszło bez żadnych 
problemów. A w domu - ZONK. Budowanie libgadu wywraca mi się tak:

checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
configure: error: Your system is not supporting pthreads
błąd: Błędny status wyjścia z /var/tmp/rpm-tmp.62125 (%build)

Powinno się oczywiście budować z -lpthread. W tym przypadku konkretny błąd 
wygląda tak (z ..../kadu-0.5.0/config.log):

configure:21253: checking whether pthreads work with -pthread
configure:21302: i686-pld-linux-gcc -o 
conftest -O2 -march=i686  -Wall -pthread   conftest.c   >&5
conftest.c: In function `main':
conftest.c:31: warning: `th' might be used uninitialized in this function
/tmp/ccqWq8M6.o(.text+0x47): In function `main':
conftest.c: undefined reference to `__pthread_register_cancel'
/tmp/ccqWq8M6.o(.text+0x6c):conftest.c: undefined reference to 
`__pthread_unregister_cancel'
collect2: ld returned 1 exit status
configure:21308: $? = 1

W pierwszym momencie pomyślałem, że winna jest architektura (i686 w domu, 
athlon w pracy), ale po sprawdzeniu okazało się, że winny jest 
glibc-2.3.6-10, który leży sobie w ready - w pracy miałem 2.3.6-9, test 
polegający na update/downgrade potwierdził słuszność tego osądu.

Wnioski: albo libgadu jest do poprawki (wiem, że mogę dodać --without 
pthreads, ale nie o to przecież chodzi), albo w glibcu coś jest popsute. 
Mógłby to ktoś zweryfikować?
-- 
Łukasz Maśko                                           GG:   2441498    _o)
Lukasz.Masko(at)ipipan.waw.pl                         ICQ: 146553537    /\\
Registered Linux User #61028              JID: paranoid w jabberpl.org   _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"


Więcej informacji o liście dyskusyjnej pld-devel-pl