From owner-freebsd-hackers Wed Apr 1 21:31:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23171 for freebsd-hackers-outgoing; Wed, 1 Apr 1998 21:31:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cimlogic.com.au ([203.36.2.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA23153 for ; Wed, 1 Apr 1998 21:31:30 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.8.5/8.8.7) id PAA12611; Thu, 2 Apr 1998 15:31:03 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199804020531.PAA12611@cimlogic.com.au> Subject: Re: pthread question In-Reply-To: from "Jason K. Fritcher" at "Apr 1, 98 08:12:11 pm" To: fritcher@calweb.com Date: Thu, 2 Apr 1998 15:31:03 +1000 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message