[Simh] Problems compling SIMH
Vince Mulhollon
vince at mulhollon.com
Mon May 23 11:34:08 EDT 2011
On Mon, May 23, 2011 at 05:29:51PM +0000, Johnny Eriksson wrote:
> 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.
Sounds believable
original poster needs to run:
vlm at server:~$ nm /usr/lib/libpcap.a | grep pcap_sendpacket
00000000000003b0 T pcap_sendpacket
vlm at server:~$ ls -al /usr/lib/libpcap.a
Thats what I get on my Debian-Stable-relese machine.
If grep on his machine finds nothing, then thats the problem...
More information about the Simh
mailing list