Subject: Re: __LIBC12_SOURCE__
To: None <bouyer@antioche.lip6.fr>
From: Kostas Magoutis <magoutis@eecs.harvard.edu>
List: netbsd-help
Date: 03/22/2000 18:03:00
   Date: Tue, 21 Mar 2000 09:59:34 +0100
   From: Manuel Bouyer <bouyer@antioche.lip6.fr>
   Cc: giles@nemeton.com.au, netbsd-help@netbsd.org
   Content-Type: text/plain; charset=us-ascii

   On Mon, Mar 20, 2000 at 06:24:31PM -0500, Kostas Magoutis wrote:
   > The following code, call it test.c,
   > 
   > #include <unistd.h>
   > 
   > main()
   > {
   >         int p;
   > 
   >         p = vfork();
   > }
   > 
   > compiled using gcc -D__ELF__ test.c results in
   > 
   > Undefined symbol `__vfork14' referenced from text segment
   > 
   > Compiling without the __ELF__ links okay.

   But why are you compiling with -D__ELF__ on a 1.4.x system ?
   1.4.x/i386 is a.out only.

I was trying to make cross-build tools for an ELF target system.  It
may turn out that I don't need the __ELF__ flag as I'm almost sure is
the case.

Thanks for your help!

-- 
Kostas Magoutis

Computer Science Dept.
Division of Engineering and Applied Sciences
Harvard University, Cambridge MA 02138