Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 239227

Summary: >=dev-libs/libical-0.27 not linked against libpthread
Product: Gentoo Linux Reporter: Cristian Onet <onet.cristian>
Component: [OLD] LibraryAssignee: Michele Noberasco (RETIRED) <s4t4n>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Cristian Onet 2008-10-01 07:37:24 UTC
+++ This bug was initially created as a clone of Bug #66377 +++

well, summary says it all. Just check with the following simple test program:

#include <ical.h>

int main(void)
{
	struct icaltimetype x;
	icaltime_compare(x, x);
}

`gcc icaltest.c -lical` blows up with:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_getspecific'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_once'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_key_create'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status

It doesn't happen when I build libical with LDFLAGS=-lpthread

As of 0.27 the bug re-emerged:

ld /usr/lib/libical.so
ld: warning: cannot find entry symbol _start; not setting start address
/usr/lib/libical.so: undefined reference to `pthread_key_create'
/usr/lib/libical.so: undefined reference to `pthread_once'
/usr/lib/libical.so: undefined reference to `pthread_getspecific'
/usr/lib/libical.so: undefined reference to `pthread_setspecific'
Comment 1 Michele Noberasco (RETIRED) gentoo-dev 2008-10-01 15:01:05 UTC

*** This bug has been marked as a duplicate of bug 66377 ***