<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>66377</bug_id>
          
          <creation_ts>2004-10-04 19:31 0000</creation_ts>
          <short_desc>libical needs to be linked with libpthread</short_desc>
          <delta_ts>2008-10-03 09:07:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>genone@gentoo.org</reporter>
          <assigned_to>s4t4n@gentoo.org</assigned_to>
          <cc>onet.cristian@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>genone@gentoo.org</who>
            <bug_when>2004-10-04 19:31:38 0000</bug_when>
            <thetext>well, summary says it all. Just check with the following simple test program:

#include &lt;ical.h&gt;

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&apos;
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_once&apos;
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_key_create&apos;
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../libical.so: undefined reference to `pthread_setspecific&apos;
collect2: ld returned 1 exit status

It doesn&apos;t happen when I build libical with LDFLAGS=-lpthread</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2004-10-15 16:44:38 0000</bug_when>
            <thetext>OK, fix is in Portage. Thank you for the submission!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>onet.cristian@gmail.com</who>
            <bug_when>2008-09-30 17:12:29 0000</bug_when>
            <thetext>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&apos;
/usr/lib/libical.so: undefined reference to `pthread_once&apos;
/usr/lib/libical.so: undefined reference to `pthread_getspecific&apos;
/usr/lib/libical.so: undefined reference to `pthread_setspecific&apos;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2008-10-01 15:00:41 0000</bug_when>
            <thetext>Reopening old bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2008-10-01 15:01:05 0000</bug_when>
            <thetext>*** Bug 239227 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2008-10-01 15:13:11 0000</bug_when>
            <thetext>I committed version 0.33-r1 with the same fixes as in version 0.26.7.
Could you test if the fix is still working for you?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>onet.cristian@gmail.com</who>
            <bug_when>2008-10-01 17:14:40 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; I committed version 0.33-r1 with the same fixes as in version 0.26.7.
&gt; Could you test if the fix is still working for you?
&gt; 

Version 0.33-r1 is OK but 0.27 is stable in portage and that version still has the bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2008-10-02 08:00:19 0000</bug_when>
            <thetext>(In reply to comment #6)
I know that: I wanted the fix to be tested before spreading it to all versions...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>s4t4n@gentoo.org</who>
            <bug_when>2008-10-03 09:07:56 0000</bug_when>
            <thetext>All the ebuilds in Portage have been fixed.
Thanks for the heads up!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>