opensmalltalk-vm icon indicating copy to clipboard operation
opensmalltalk-vm copied to clipboard

Build on FreeBSD

Open koshamo opened this issue 5 years ago • 4 comments

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?

koshamo avatar Apr 11 '20 10:04 koshamo

#481 Takes care of most things here. Can you please check? If it works, please close, if not, please make a new issue.

krono avatar Apr 22 '20 08:04 krono

@koshamo Still interested?

krono avatar Sep 10 '20 18:09 krono

If you folks build it, i will use it. Client of mine runs it and running squeak nativelly on it instead of in a virtual box thingy will be very welcome.

Also appreciate the work on open solaris too. Gotta jeep the sys admins interested ...

---- On Thu, 10 Sep 2020 14:32:19 -0400 [email protected] wrote ----

@koshamo Still interested?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

OpenSmalltalk-Bot avatar Sep 10 '20 22:09 OpenSmalltalk-Bot

Understood. I would need a voluteer to see if things are ok already since we hat quite a bit of improvement since this PR. I need to see whether everything is fine already or what to cherry-pick from here.

krono avatar Sep 11 '20 06:09 krono