[Simh] Problems compling SIMH
Vince Mulhollon
vince at mulhollon.com
Mon May 23 10:47:09 EDT 2011
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.
Run "man ldconfig"
Then probably as root "ldconfig -p | grep pcap"
I'm guessing you'll see nothing.
You should see something like:
# ldconfig -p | grep pcap
libpcap.so.0.8 (libc6,x86-64) => /usr/lib/libpcap.so.0.8
libpcap.so (libc6,x86-64) => /usr/lib/libpcap.so
#
On Debian, you'd install libpcap like this:
# apt-get install libpcap0.8 libpcap0.8-dev
Of course on Debian I happen to know that debian provides an
excellent simh package (ahem ahem trying to draw attention to
myself ahem) so you'd just:
# apt-get install simh
and you'd be all done in about 10 seconds without having to
compile it yourself...
On your OS, I don't know. I'm guessing google "install libpcap" will
have the answer.
More information about the Simh
mailing list