In the subversion sources of "Squeakvm" classic
platforms/unix/vm/config.cmake
there is a line
SET (VM_BUILD_STRING ""Unix built on "__DATE__ " "__TIME__" Compiler: "__VERSION__")
Now on Solaris 11.4 or 11.3 with SunPRO C compiler there is an issue with __VERSION__
the following sample program:
bash-4.4$ cat x.c
#include <stdio.h>
int main(int argc,char *argv[]) { printf("%s\n",__DATE__); printf("%s\n",__TIME__); printf("%s\n",__VERSION__); }
when compiled with GCC 9.2 on Solaris I get:
$ gcc x.c $ ./a.out Mar 29 2020 15:43:33 9.2.0
when compiling with SunPRO C 12.6 on Solaris the result is :
$ cc x.c "x.c", line 8: undefined symbol: __VERSION__ cc: acomp failed for x.c
I could be using GCC 9.2 to build the squeakvm of course but because I tried with the SunPRO C, this only defines __DATE__ and __TIME__ but not __VERSION__ (as far as I know).
So perhaps the best level to fix this (minor and only) issue with the compile of the squeakvm with the SunPRO C would be at the
platforms/unix/vm/config.cmake
level
-- Sent from: http://forum.world.st/Squeak-VM-f104410.html