Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 1998 21:40:07 -0800 (PST)
From:      "Jason K. Fritcher" <fritcher@calweb.com>
To:        John Birrell <jb@cimlogic.com.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: pthread question
Message-ID:  <Pine.BSF.3.95q.980401213540.28784D-100000@web2.calweb.com>
In-Reply-To: <199804020531.PAA12611@cimlogic.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2 Apr 1998, John Birrell wrote:
> Jason K. Fritcher wrote:
> > [jkf@sys1:~/src/thread]$ gcc -g -D_THREAD_SAFE -lc_r -static -o blah blah.c
> > blah.c:22: Undefined symbol `_pthread_join' referenced from text segment
> > blah.c:23: Undefined symbol `_pthread_join' referenced from text segment
> 
> Try putting the -lc_r after the -o blah. Is it possible that the linker
> thinks that it has already searched libc_r before it gets to blah.o
> so it doesn't go back to resolve references it finds in blah.o?

Tried it, but it didn't make any difference. If it was the problem, it
should have given me errors about _pthread_create being unreferenced also.
It is really puzzling why it is finding the _pthread_create function, but
not the one above.

--------------------------------------------------------------------------
Jason K. Fritcher                                    Sr. Technical Support
fritcher@calweb.com                               Calweb Internet Services
http://www.calweb.com/                                        916-641-9320
--------------------------------------------------------------------------
   Bits/KeyID    Date        Fingerprint
   2048/C6663B59 1997/07/11  D3678FFC53D4EA7E  19329F41812F0F58


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980401213540.28784D-100000>