[Simh] Problems compiling SIMH under RH V3.7-2
Thomas Pfau
pfau at nbpfaus.net
Tue Aug 28 18:51:06 EDT 2007
joeambrose at optonline.net wrote:
> I'm following the instructions on how to run VMS under SIMH on RH
> Linux....
> I get the following error when i try to compile the simulator....
>
> /tmp/ccH1W5tU.o(.text+0x59): In function `sim_os_ms_sleep_init':
> /usr/simh/sim_timer.c:302: undefined reference to `clock_getres'
> collect2: ld returned 1 exit status
> make: *** [BIN/vax] Error 1
>
> any ideas?
>
Edit the makefile. You'll see a section that looks like this:
ifeq ($(OSTYPE),macos)
CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm -lrt $(OS_CCDEFS) -I .
else
CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
endif
Remove everything except the second line.
On my system, I also have to change the line:
NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include
/usr/local/lib/libpcap.a
to:
NETWORK_OPT = -DUSE_NETWORK -lpcap
More information about the Simh
mailing list