[Simh] Problems compling SIMH

Johnny Eriksson bygg at cafax.se
Mon May 23 17:29:51 EDT 2011


Vince Mulhollon <vince at mulhollon.com> wrote:

> On Mon, May 23, 2011 at 09:54:17AM -0400, Joe Ambrose wrote:
> > Here's what I get now....
> > 
> > make USE_NETWORK=1 BIN/vax
> > gcc -std=c99 -U__STRICT_ANSI__
> 
> ...
> 
> >     -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 -I VAX -I PDP11 -DUSE_NETWORK -lpcap
> 
> SIMH wants to link in libpcap to do the ethernet emulation thing...
> 
> > sim_ether.c: In function `eth_write':
> > sim_ether.c:1070: warning: implicit declaration of function
> > `pcap_sendpacket'
> > /tmp/ccvBdPeM.o(.text+0x147e): In function `eth_write':
> > /root/simh/sim_ether.c:1070: undefined reference to `pcap_sendpacket'
> > collect2: ld returned 1 exit status
> 
> And ld the linker can't find the pcap to link against.

I say that it does, but the version of libpcap is an old one, which
does not have pcap_sendpacket, this routine is a recent addition to
the library (recent means a few years here).  Note that there are no
complaints about all the other routines from libpcap...

You need to find a new version of libpcap.  www.tcpdump.org might be
a good place to start.

--Johnny


More information about the Simh mailing list