[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Build on FreeBSD (#483)

Jochen Raßler notifications at github.com
Sat Apr 11 10:17:34 UTC 2020


I'm trying to build the squeak.cog.spur vm on FreeBSD 12.1

Steps I took so far:
- build.linux64x64
- squeak.cog.spur
- adding to mvm 
```
case $(uname -s) in
  OpenBSD)
           CFLAGS="$CFLAGS -I/usr/local/include"
           LIBS="$LIBS -lexecinfo"
           LDFLAGS="$LDFLAGS -L/usr/local/lib"
           ;;
   FreeBSD)
	   CFLAGS="$CFLAGS -I/usr/local/include"
	   LIBS="$LIBS -lexecinfo -liconv"
	   LDFLAGS="$LDFLAGS -L/usr/local/lib"
	   ;;
esac
```
  to fix linking issue with libiconv
- changed vm-sound-ALSA/sqUnixSoundALSA.c 
`static char devname[MAX_NAME_LEN]`
to
`static char a_devname[MAX_NAME_LEN]`
and changed all occurences of devname to a_devname to fix a name resoltuion issue with /usr/include/stdlib

Now I'm stuck with plugins/SqueakSSL/sqUnixOpenSSL.inc line 75
```
/oscog/platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.inc:75:18: error: variable has incomplete type 'struct in6_addr'
        struct in6_addr addr = { 0 }; // placeholder, longest of in_addr and in6_addr
```

Compiler is clang 8.
Can you give me a hint how to move on?


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/483
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20200411/6a4f2865/attachment.html>


More information about the Vm-dev mailing list