From owner-freebsd-hackers Wed Apr 1 21:40:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA24762 for freebsd-hackers-outgoing; Wed, 1 Apr 1998 21:40:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.calweb.com (mail.calweb.com [208.131.56.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA24753 for ; Wed, 1 Apr 1998 21:40:27 -0800 (PST) (envelope-from fritcher@calweb.com) Received: by mail.calweb.com (8.8.6/8.8.6) with SMTP id VAA14607; Wed, 1 Apr 1998 21:40:07 -0800 (PST) X-SMTP: helo web2.calweb.com from fritcher@calweb.com server fritcher@web2.calweb.com ip 208.131.56.52 Date: Wed, 1 Apr 1998 21:40:07 -0800 (PST) From: "Jason K. Fritcher" To: John Birrell cc: hackers@FreeBSD.ORG Subject: Re: pthread question In-Reply-To: <199804020531.PAA12611@cimlogic.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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