Well, almost:
sim_ether.c:819:24: error: libvdeplug.h: No such file or directory
sim_ether.c: In function '_eth_reader':
sim_ether.c:1472: warning: implicit declaration of function 'vde_recv'
sim_ether.c:1472: error: 'VDECONN' undeclared (first use in this
function)
sim_ether.c:1472: error: (Each undeclared identifier is reported only
once
sim_ether.c:1472: error: for each function it appears in.)
sim_ether.c:1472: error: expected expression before ')' token
sim_ether.c: In function 'eth_open':
sim_ether.c:1703: error: storage size of 'voa' isn't known
sim_ether.c:1712: warning: implicit declaration of function 'vde_open'
sim_ether.c:1716: warning: implicit declaration of function 'vde_datafd'
sim_ether.c:1716: error: 'VDECONN' undeclared (first use in this
function)
sim_ether.c:1716: error: expected expression before ')' token
sim_ether.c: In function 'eth_close':
sim_ether.c:1853: warning: implicit declaration of function 'vde_close'
sim_ether.c:1853: error: 'VDECONN' undeclared (first use in this
function)
sim_ether.c:1853: error: expected expression before ')' token
sim_ether.c: In function '_eth_write':
sim_ether.c:2044: warning: implicit declaration of function 'vde_send'
sim_ether.c:2044: error: 'VDECONN' undeclared (first use in this
function)
sim_ether.c:2044: error: expected expression before ')' token
gmake: *** [BIN/pdp11] Error 1
On Mon, May 20, 2013 at 08:21:30PM +0200, Jordi Guillaumes i Pons wrote:
El 20/05/2013, a les 19:35, Brian Hechinger <wonko at 4amlunch.net> va escriure:
I just fetched simh from the git repo and same thing. It's just not
picking up that VDE exists on this machine. Any tips, Mark? :)
-brian
Not Mark here :)
You need to force the makefile to look for /usr/local/lib and /usr/local/include. If you
check the makefile you'll find a series of checks based on $(OSTYPE). If I understand
the logic, the last one checked refers to the BSDs. I'm not quite sure what happens
here, but it seems like it uses the output of ldconfig to set up things for NetBSD, but
does nothing for FreeBSD (other than spitting out a warning).
What I would try is to duplicate these lines:
ifeq (usrpkglib,$(shell if $(TEST) -d /usr/pkg/lib; then echo
usrpkglib; fi))
LIBPATH += /usr/pkg/lib
OS_LDFLAGS += -L/usr/pkg/lib -R/usr/pkg/lib
endif
As:
ifeq (usrlocallib,$(shell if $(TEST) -d /usr/local/lib; then echo
usrlocallib; fi))
LIBPATH += /usr/local/lib
INCPATH += /usr/local/include
OS_LDFLAGS += -L/usr/local/lib -R/usr/local/lib
endif
Eventually if this works Mark should put it in the distribution makefile.
Jordi Guillaumes i Pons
jg at jordi.guillaumes.name
HECnet: BITXOV::JGUILLAUMES
Show replies by date