lex wrote:
> 
> 
> On Thu, 15 Nov 2007, lex wrote:
> 
> > When compiling for pthreads, I get a phtread_exit not found during the
> > link.
> >
> > getconf GNU_LIBPTHREAD_VERSION returns NPTL 2.5, and there is
> > a file /lib/libpthread-2.5.so
> >
> > Am I missing a -L in the makefilefile?
> >
> > All the other pthreads functions sem to have no problem.
> >
> > Lex
> 
> Ooops, I forgot that I had set it to link "-static" to send
> someone a self contained binary.
> 
> Obviously the pthread functions are always in memory, being as how
> they are in the kernel.

Actually - they're not.  They live in libpthread.  They're built on 
lower-level functions that interface with the kernel in ways that I'm not 
familiar with.

Most likely the libpthread functions will always be in memory, but that's 
only because there are other programs using them.   Even so, both the linker 
and the loader will need to resolve the library. 

> 
> Removing -static cured all problems.

It sounds like you might have a different version of the static library laying 
around - you might want to look into that to avert further weirdness. 


=============================================================================
michaelMuller = [EMAIL PROTECTED] | http://www.mindhog.net/~mmuller
-----------------------------------------------------------------------------
you and I are only different in our minds, the universe makes no such
distinction
=============================================================================
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org          
   
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug                           
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium          
                              
  Oct 3 - Security and Privacy
  Nov 7 - Django Python Application Framework

Reply via email to