Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 1998 17:00:58 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Glenn Johnson <gjohnson@nola.srrc.usda.gov>
Cc:        questions@FreeBSD.ORG
Subject:   Re: trouble compiling, fork_ and wait_
Message-ID:  <Pine.BSF.4.03.9810271700370.16538-100000@resnet.uoregon.edu>
In-Reply-To: <199810272215.QAA15379@symbion.srrc.usda.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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