From owner-freebsd-questions Tue Oct 27 17:01:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25720 for freebsd-questions-outgoing; Tue, 27 Oct 1998 17:01:45 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA25713 for ; Tue, 27 Oct 1998 17:01:41 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id RAA25290; Tue, 27 Oct 1998 17:00:59 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Tue, 27 Oct 1998 17:00:58 -0800 (PST) From: Doug White To: Glenn Johnson cc: questions@FreeBSD.ORG Subject: Re: trouble compiling, fork_ and wait_ In-Reply-To: <199810272215.QAA15379@symbion.srrc.usda.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 27 Oct 1998, Glenn Johnson wrote: > Can somebody help with this? I am trying to port some software to FreeBSD > and I am getting the following error: > > util.a(mdfork.o): In function `mdfork_': > mdfork.o(.text+0x4): undefined reference to `fork_' > util.a(mdjoin.o): In function `mdjoin_': > mdjoin.o(.text+0x28): undefined reference to `wait_' > collect2: ld returned 1 exit status > > The code is actually calling fork() and wait(). Does anyone have a clue > as to how to reconcile this? Try building with the -elf option. The underscores are reminiscient of the old aout format. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message