[Simh] Compile error 1 SIMH-V3.7

Vince Mulhollon vlm at mulhollon.com
Mon Jul 9 09:39:19 EDT 2007


On Mon, Jul 09, 2007 at 08:29:58AM -0400, Michael Copini wrote:
> Running a Pentium 4 machine with 1GB of memory with CentOS 4.5.
> I downloaded the libpcap and the simh
> did a ./configure and make + install on libpcap (no errors) unzipped
> simh -a into a SIMH directory created a BIN under SIMH
> 
> The gmake command exits with an Error 1.
> 
> [mcopini at MiDi-Simh SIMH]$ gmake USE_NETWORK=1 BIN/vax gcc -std=c99 -O2
> -U__STRICT_ANSI__ -g -lm -D_GNU_SOURCE -I . VAX/ vax_cpu.c
> VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax
> /tmp/cc3WMZQ6.o(.text+0x58): In function `sim_os_ms_sleep_init':
> /home/mcopini/SIMH/sim_timer.c:299: undefined reference to
> `clock_getres'
> collect2: ld returned 1 exit status
> gmake: *** [BIN/vax] Error 1
> [mcopini at MiDi-Simh SIMH]$
>

Add a -lrt after your -lm

I have no idea how to determine if centos has lib-rt installed by default.
If not, you'll be researching that shortly.

lib-rt provides some hi-res time functions, and probably other stuff.




More information about the Simh mailing list