<div dir="ltr">I'm getting an error  - undeclared type off64_t when I try and compile the vax780 emulator from a clone of the git repository made today. If I edit sim_fio.c and change off64_t to __off64_t I then get implicit declaration warnings for fopen64, fseeko64 and ftello64 and the Hardware Core Test EVKAA core dumps.<div><br></div><div>Thanks in advance, Mark.<br><div><br></div><div>msw@hpm:~/tmp/simh/github/simh$ <b>make vax780 CC="gcc -O2 -g -lm -I." </b></div><div>lib paths are: /lib/ /lib/x86_64-linux-gnu/ /usr/lib/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/libfakeroot/ /usr/local/lib/<br>include paths are:  /usr/lib/gcc/x86_64-linux-gnu/7/include /raid/local/include /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed /usr/include/x86_64-linux-gnu /usr/include<br>using libm: /usr/lib/x86_64-linux-gnu/libm.so<br>using librt: /usr/lib/x86_64-linux-gnu/librt.so<br>using libpthread: /usr/lib/x86_64-linux-gnu/libpthread.so /usr/include/pthread.h<br>using semaphore: /usr/include/semaphore.h<br>using libdl: /usr/lib/x86_64-linux-gnu/libdl.so /usr/include/dlfcn.h<br>using libpng: /usr/local/lib/libpng.so /raid/local/include/png.h<br>using zlib: /usr/lib/x86_64-linux-gnu/libz.so /usr/include/zlib.h<br>using mman: /usr/include/x86_64-linux-gnu/sys/mman.h<br>using libpcap: /raid/local/include/pcap.h<br>*** Info ***<br>*** Info *** vax780 Simulator is being built with<br>*** Info *** minimal libpcap networking support<br>*** Info ***<br>*** Info ***<br>*** Info *** Simulators on your Linux platform can also be built with<br>*** Info *** extended LAN Ethernet networking support by using VDE Ethernet.<br>*** Info ***<br>*** Info *** To build simulator(s) with extended networking support you<br>*** Info *** should install the vde2 package to provide this<br>*** Info *** functionality for your Linux system:<br>*** Info ***        $ sudo apt-get install libvdeplug-dev<br>*** Info ***<br>***<br>*** vax780 Simulator being built with:<br>*** - compiler optimizations and no debugging support. GCC Version: 7.5.0.<br>*** - dynamic networking support using Linux provided libpcap components.<br>*** - Local LAN packet transports: PCAP TAP NAT(SLiRP)<br>*** - Per simulator tests will be run.<br>***<br>*** git commit id is 918f7704dac11a2a4fe557664d347e72cd9d3059.<br>*** git commit time is 2020-05-07T12:44:08-0700.<br>***<br>gcc -O2 -g -lm -I. ./VAX/vax_cpu.c ./VAX/vax_cpu1.c ./VAX/vax_fpa.c ./VAX/vax_cis.c ./VAX/vax_octa.c  ./VAX/vax_cmode.c ./VAX/vax_mmu.c ./VAX/vax_sys.c  ./VAX/vax_syscm.c ./VAX/vax780_stddev.c ./VAX/vax780_sbi.c ./VAX/vax780_mem.c ./VAX/vax780_uba.c ./VAX/vax7x0_mba.c ./VAX/vax780_fload.c ./VAX/vax780_syslist.c ./PDP11/pdp11_rl.c ./PDP11/pdp11_rq.c ./PDP11/pdp11_ts.c ./PDP11/pdp11_dz.c ./PDP11/pdp11_lp.c ./PDP11/pdp11_tq.c ./PDP11/pdp11_xu.c ./PDP11/pdp11_ry.c ./PDP11/pdp11_cr.c ./PDP11/pdp11_rp.c ./PDP11/pdp11_tu.c ./PDP11/pdp11_hk.c ./PDP11/pdp11_vh.c ./PDP11/pdp11_dmc.c ./PDP11/pdp11_dup.c ./PDP11/pdp11_td.c ./PDP11/pdp11_tc.c ./PDP11/pdp11_rk.c ./PDP11/pdp11_io_lib.c ./PDP11/pdp11_ch.c ./scp.c ./sim_console.c ./sim_fio.c ./sim_timer.c ./sim_sock.c ./sim_tmxr.c ./sim_ether.c ./sim_tape.c ./sim_disk.c ./sim_serial.c ./sim_video.c ./sim_imd.c ./sim_card.c -DVM_VAX -DVAX_780 -DUSE_INT64 -DUSE_ADDR64 -I VAX -I ./PDP11 -DHAVE_PCAP_NETWORK -I/raid/local/include/ -DBPF_CONST_STRING -DUSE_SHARED -DHAVE_TAP_NETWORK -Islirp -Islirp_glue -Islirp_glue/qemu -DHAVE_SLIRP_NETWORK -DUSE_SIMH_SLIRP_DEBUG slirp/*.c slirp_glue/*.c -o BIN/vax780 -lm -lrt -lpthread -ldl -lpng -lz<br>./sim_fio.c: In function ‘sim_fopen’:<br>./sim_fio.c:248:8: warning: implicit declaration of function ‘fopen64’; did you mean ‘fopen’? [-Wimplicit-function-declaration]<br> return fopen64 (file, mode);<br>        ^~~~~~~<br>        fopen<br>./sim_fio.c:248:8: warning: return makes pointer from integer without a cast [-Wint-conversion]<br> return fopen64 (file, mode);<br>        ^~~~~~~~~~~~~~~~~~~~<br>./sim_fio.c: In function ‘sim_fseeko’:<br>./sim_fio.c:312:8: warning: implicit declaration of function ‘fseeko64’; did you mean ‘fseeko’? [-Wimplicit-function-declaration]<br> return fseeko64 (st, (off64_t)xpos, origin);<br>        ^~~~~~~~<br>        fseeko<br>./sim_fio.c:312:23: error: ‘off64_t’ undeclared (first use in this function); did you mean ‘off_t’?<br> return fseeko64 (st, (off64_t)xpos, origin);<br>                       ^~~~~~~<br>                       off_t<br>./sim_fio.c:312:23: note: each undeclared identifier is reported only once for each function it appears in<br>./sim_fio.c:312:31: error: expected ‘)’ before ‘xpos’<br> return fseeko64 (st, (off64_t)xpos, origin);<br>                               ^~~~<br>./sim_fio.c: In function ‘sim_ftell’:<br>./sim_fio.c:317:19: warning: implicit declaration of function ‘ftello64’; did you mean ‘ftello’? [-Wimplicit-function-declaration]<br> return (t_offset)(ftello64 (st));<br>                   ^~~~~~~~<br>                   ftello<br>makefile:2382: recipe for target 'BIN/vax780' failed<br>make: *** [BIN/vax780] Error 1<br></div></div></div>