pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/net/nocol



>  > What's the build error?
>
> cc -o etherload -O -DNOCOL 
> -I/home/pkgbulk/c/obj/net/nocol/work/nocol-4.3.1/include bpf.o etherload.o 
> dlpi.o main.o nit.o pfilt.o snoop.o  linux.o util.o nocol_specific.o 
> get_devlist.o -L/home/pkgbulk/c/obj/net/nocol/work/nocol-4.3.1/lib  -lnocol
> etherload.o: In function `etherload':
> etherload.c:(.text+0x14e): undefined reference to `flush_device'
> etherload.c:(.text+0x2cc): undefined reference to `getpkt'
> main.o: In function `main':
> main.c:(.text+0x275): undefined reference to `os_devices'
> main.c:(.text+0x28c): undefined reference to `os_devices'
> main.c:(.text+0x331): undefined reference to `setup_device'
> main.c:(.text+0x39f): undefined reference to `get_devtype'
> *** Error code 1

Hmm, I see these functions in etherload/bpf.c.  However, I also
see that in my case I get -DFREEBSD in OS_CFLAGS, which triggers
USE_BPF in etherload/os.h.

...and the culprit appears to be Configure, which has "support"
for NetBSD 1-4, but not 5 or 6...  I'd say that NetBSD* should be
matched instead of just listing explicit version numbers.

Regards,

- Håvard



Home | Main Index | Thread Index | Old Index