[Simh] Unable to build on NetBSD

Rico Pajarola rp at servium.ch
Tue Apr 28 09:59:53 EDT 2015


it's in librt, ie you need to add -lrt

On Tue, Apr 28, 2015 at 3:20 PM, Clem Cole <clemc at ccc.com> wrote:

> Cory,
>
> Hmm, the PWD 3.0/System V later Posix shm(2) functions I would have
> expected NetBSD to have picked up by now I agree.  But no matter, I believe
> you can use the mmap(2) mechanism if you want  shared memory in BSD post
> 4.4.  I wrote some code for a book chapter using it a long time ago.  Get a
> copy of Rago's update to Steven's APUE and I believe you find an example if
> not just google for mmap(2) examples.
>
> Clem
>
> Clem
>
> On Mon, Apr 27, 2015 at 6:56 PM, Cory Smelosky <b4 at gewt.net> wrote:
>
>> csmelosky at green:~/simh gmake vax CFLAGS="-lrt"
>> lib paths are: /usr/lib /usr/pkg/lib
>> include paths are: /usr/include /usr/pkg/include
>> using libm: /usr/lib/libm.so
>> using librt: /usr/lib/librt.so
>> using libpthread: /usr/lib/libpthread.so /usr/include/pthread.h
>> using regex: /usr/include/regex.h
>> using libdl: /usr/include/dlfcn.h
>> *** Info ***
>> *** Info *** The simulator you are building could provide more
>> *** Info *** functionality if video support were available on your system.
>> *** Info *** Install the development components of libSDL packaged by your
>> *** Info *** operating system distribution and rebuild your simulator to
>> *** Info *** enable this extra functionality.
>> *** Info ***
>> using libpcap: /usr/include/pcap.h
>> ***
>> *** vax Simulator being built with:
>> *** - compiler optimizations and no debugging support. GCC Version: 4.5.3.
>> *** - dynamic networking support using NetBSD provided libpcap components.
>> *** - Local LAN packet transports: PCAP TAP
>> ***
>> *** git commit id is 041c866d67c4fa4a44f637b6372cb91aa7b15d86.
>> ***
>> gcc -std=c99 -U__STRICT_ANSI__  -O2 -finline-functions
>> -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone
>> -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result
>> -DSIM_GIT_COMMIT_ID=041c866d67c4fa4a44f637b6372cb91aa7b15d86
>> -DSIM_COMPILER="GCC Version: 4.5.3" -I . -D_GNU_SOURCE -I/usr/pkg/include
>> -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H -DHAVE_DLOPEN=so
>> -DHAVE_GLOB  sim_BuildROMs.c -o BIN/BuildROMs
>> BIN/BuildROMs
>> rm -f BIN/BuildROMs
>> gcc -std=c99 -U__STRICT_ANSI__  -O2 -finline-functions
>> -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone
>> -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result
>> -DSIM_GIT_COMMIT_ID=041c866d67c4fa4a44f637b6372cb91aa7b15d86
>> -DSIM_COMPILER="GCC Version: 4.5.3" -I . -D_GNU_SOURCE -I/usr/pkg/include
>> -DUSE_READER_THREAD -DSIM_ASYNCH_IO  -DHAVE_REGEX_H -DHAVE_DLOPEN=so
>> -DHAVE_GLOB  VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_io.c
>> VAX/vax_cis.c VAX/vax_octa.c  VAX/vax_cmode.c VAX/vax_mmu.c
>> VAX/vax_stddev.c VAX/vax_sysdev.c VAX/vax_sys.c  VAX/vax_syscm.c
>> VAX/vax_syslist.c VAX/vax_vc.c VAX/vax_lk.c VAX/vax_vs.c VAX/vax_2681.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_xq.c PDP11/pdp11_vh.c
>> PDP11/pdp11_cr.c PDP11/pdp11_io_lib.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 -DVM_VAX -DUSE_INT64 -DUSE_ADDR64
>> -DUSE_SIM_VIDEO -I VAX -I PDP11 -DHAVE_PCAP_NETWORK -I/usr/include/
>> -DBPF_CONST_STRING -DUSE_SHARED -DHAVE_TAP_NETWORK -DHAVE_BSDTUNTAP   -o
>> BIN/microvax3900 -L/usr/pkg/lib -R/usr/pkg/lib -lm -lrt -lpthread
>> sim_fio.c: In function 'sim_shmem_open':
>> sim_fio.c:470:1: warning: implicit declaration of function 'shm_open'
>> /var/tmp//cca0Q6I4.o: In function `sim_shmem_open':
>> sim_fio.c:(.text+0x5c0): undefined reference to `shm_open'
>> sim_fio.c:(.text+0x64e): undefined reference to `shm_open'
>>
>> This is a bit of a problem.
>>
>> --
>> Cory Smelosky
>> http://gewt.net Personal stuff
>> http://gimme-sympathy.org Projects
>> _______________________________________________
>> Simh mailing list
>> Simh at trailing-edge.com
>> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
>
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20150428/621e01ed/attachment-0001.html>


More information about the Simh mailing list