[Vm-dev] Latest OpenSmalltalkVM on Solaris 10

stes@PANDORA.BE stes at telenet.be
Mon Sep 14 11:47:28 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


As an experiment, I compiled the latest OpenSmalltalk VM on Solaris 10.

The good news is OpenSmalltalk VM still works on Solaris 10.

Note that there is one issue with "new experimental code" in sqUnixSocket.c

"/stes/src/opensmalltalk/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c", line 95: cannot find include file: <ifaddrs.h>
"/stes/src/opensmalltalk/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c", line 1517: warning: implicit function declaration: getifaddrs

Apparently Solaris 10 has no /usr/include/ifaddrs.h.

Also the Squeak-4 sources do not use this include.

It can be seen in platforms/unix/plugins/sqUnixSocket.c that there is

#if 0
/* old code */
{       sqInt localaddr = nameToAddr(localHostName);
        if (!localaddr)
                localaddr = nameToAddr("localhost");
        return localaddr;
}
#else
/* experimental new code */
{
    struct ifaddrs *ifaddr, *ifa;

so on Solaris 10 I enabled the "old code" again, and that compiles.

The "experimental new code" is in there already for quite a few years, I guess.

Ideally the configure script could have something 

  HAVE_IFADDRS

and #ifdef HAVE_IFADDRS

 #include <ifaddrs.h>

So then it could use the 'old code' on Solaris 10 and the new code 
on Solaris 11.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfX1f0AAoJEAwpOKXMq1MauLwH/irBtTt/vhzRPW3LfbLyInB8
Oq33iL/OulBBq9e9e42zuDKPS5mlpZs/Rc15sqw1jl+4TLq6PHtHq8jC2Z+H69K7
CCxBZXiypnrwWwx2MPl+e2LB3vTEjWXB8ZVoUMi3utSyAcRL3XU8R+lhsa/E+1OC
trP8z5RW7jFHLgP8ZcOiaUIJ+geBq/ybo0V0daGZZGFpLb9fYiC6wdPHhDzVaw2S
KY9hHaRvlqx1WER4NwHC8zW1tfS9gUzv4eNFnPcNy3Iy1OP2dl/pj+WFB27Yeu/w
El+MOG5lJPqbScyUuRIHOt737apra6bDvQJite3zV9BXEZ9OX9TYg0lQK3tJnWM=
=euxC
-----END PGP SIGNATURE-----


More information about the Vm-dev mailing list