has anyone managed to compile the latest Linux/Unix VM from the svn
repository?
My system environment:
VMMaker 3.8b2B from SqueakMap, all plugins internal
Image 3.8g 6550
svn trunk snapshot 949
Intel P4, running Fedora Core 1
gcc 3.3.2
It seems that the implementation of 'char* getImageName(void)' is
missing from the Unix sources (only MacOSX and Risc define an
implementation for that):
> vm/vm.a(gnu-interp.o)(.text+0x10dbc): In function `snapshot':
> /usr/local/squeak/src/build/bld/vm/gnu-interp.c:20625: undefined reference to `getImageName'
> vm/vm.a(gnu-interp.o)(.text+0x11f76): In function `writeImageFile':
> /usr/local/squeak/src/build/bld/vm/gnu-interp.c:21800: undefined reference to `getImageName'
> collect2: ld returned 1 exit status
> make: *** [squeak] Error 1
Also, there are some error messages related to undefined members of the
sqMouseEvent structure in platforms/unix/vm/sqUnixEvent.c:
> In file included from /usr/local/squeak/src/build/platforms/unix/vm-display-fbdev/sqUnixFBDev.c:110:
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c: In function `recordMouseEvent':
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c:166: error: structure has no member named `reserved2'
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c: In function `recordKeyboardEvent':
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c:185: error: structure has no member named `reserved3'
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c: In function `recordDragEvent':
> /usr/local/squeak/src/build/platforms/unix/vm/sqUnixEvent.c:212: error: structure has no member named `reserved1'
> make[1]: *** [sqUnixFBDev.lo] Error 1
> make: *** [vm-display-fbdev.la] Error 2
Anyway, I had to apply the attached patch to make it compile. I would be
grateful if someone more intimate with the VM could comment on whether
those changes are necessary, safe, or even correct? (The MacOSX VM seems
to translate the image name according to the locale. Is that necessary
for the Unix VM, too?)
Regards,
- Wolfgang
|