Subject: elf_exec.h -> elf.h error
To: None <tech-userlevel@netbsd.org>
From: Bruno Clermont <pooh@gnome.ca>
List: tech-userlevel
Date: 09/11/2001 17:58:33
Hi,

I compile NetBSD 1.5.1 from sources taken from the ftp.

After fixes couple of vm -> uvm errors and missing include files from
the official tarballs I manage to compile csu, libc and ld.elf_so.

Once that is done I tried to compile src/bin/ca and get this error :

14:12:27 root@dagon:/build/src/bin/cat # make
cc   -o cat -nostdlib -Wl,-rpath-link,/build/destdir/usr/lib
/build/destdir/usr/lib/crt0.o /build/destdir/usr/lib/crtbegin.o cat.o
-L/build/destdir/usr/lib -lgcc -lc -lgcc /build/destdir/usr/lib/crtend.o
/build/destdir/usr/lib/crtbegin.o(.note.netbsd.ident+0x8): undefined
reference to `ELF_NOTE_NETBSD_TYPE_OSVERSION'
/build/destdir/usr/lib/crtbegin.o(.note.netbsd.ident+0x20): undefined
reference to `ELF_NOTE_NETBSD_TYPE_EMULNAME'
collect2: ld returned 1 exit status
*** Error code 1

Stop

I added #include <elf.h> to crtbegin.c and still get this error.

Someone can explain to me what I'm doing wrong?

thanks