<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all, Hi Edwin,<div class=""><br class=""><blockquote type="cite" class="">On 07.04.2020, at 17:24, Edwin Ancaer <<a href="mailto:eancaer@gmail.com" class="">eancaer@gmail.com</a>> wrote:<br class=""><br class="">Hello all, <br class=""></blockquote><div class=""><br class=""></div><div class="">I have the cog-vm running (see attached screenshot).</div><div class=""><br class=""></div><div class="">I'll look at the stackvm and the strange ALSA issue now.</div><div class=""><br class=""></div><div class="">Best regards</div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>-Tobias</div><br class=""><blockquote type="cite" class=""><br class="">thanks once more for helping me getting the compilation of the squeak Stack Vm running.<br class="">I will need your help once more. I run into a compilation error: <br class=""><br class="">/home/edwin/Smalltalk5/opensmalltalk-vm/spurstack64src/vm/gcc3x-interp.c:2530:5: error: invalid symbol redefinition<br class="">                                VM_LABEL(pushReceiverVariableBytecode);<br class=""><br class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>bytecodeDispatchDebugHook();<br class=""><br class=""> VM_LABEL(bytecodeDispatch);<br class=""> switch (currentBytecode) {<br class="">   CASE(0)<br class="">     CASE(256) /*0*/<br class="">/* pushReceiverVariableBytecode */<br class="">     {<br class="">sqInt object;<br class=""><br class="">VM_LABEL(pushReceiverVariableBytecode);  <------ line with error<br class="">/* begin fetchNextBytecode */<br class="">currentBytecode = (byteAtPointer(++localIP)) + GIV(bytecodeSetSelector);<br class=""><br class="">I found some indications that this could be due to a difference between gcc (as in the name of the file), and clang, that is the standard compiler of FreeBsd. <br class="">I went tot the mvm-script and changed the line CC=clang to CC=gcc. <br class="">Issue solved. <br class=""><br class="">OK, then I got the libiconv-errors when linking libtool<br class=""> <br class="">libtool: link: gcc -g -O1 -DNDEBUG -DDEBUGVM=0 -msse2 -Wall -pthread -DLSB_FIRST=1 -m64 -Wl,-z -Wl,now -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  -L/usr/local/lib vm/vm.a ADPCMCodecPlugin/ADPCMCodecPlugin.a AioPlugin/AioPlugin.a AsynchFilePlugin/AsynchFilePlugin.a B2DPlugin/B2DPlugin.a BitBltPlugin/BitBltPlugin.a BMPReadWriterPlugin/BMPReadWriterPlugin.a CroquetPlugin/CroquetPlugin.a HostWindowPlugin/HostWindowPlugin.a ZipPlugin/ZipPlugin.a DropPlugin/DropPlugin.a DSAPrims/DSAPrims.a FFTPlugin/FFTPlugin.a FileCopyPlugin/FileCopyPlugin.a FilePlugin/FilePlugin.a FloatArrayPlugin/FloatArrayPlugin.a FloatMathPlugin/FloatMathPlugin.a IA32ABI/IA32ABI.a JoystickTabletPlugin/JoystickTabletPlugin.a JPEGReaderPlugin/JPEGReaderPlugin.a JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.a Klatt/Klatt.a LargeIntegers/LargeIntegers.a Matrix2x3Plugin/Matrix2x3Plugin.a MIDIPlugin/MIDIPlugin.a MiscPrimitivePlugin/MiscPrimitivePlugin.a Mpeg3Plugin/Mpeg3Plugin.a RePlugin/RePlugin.a SecurityPlugin/SecurityPlugin.a SerialPlugin/SerialPlugin.a SocketPlugin/SocketPlugin.a SoundCodecPrims/SoundCodecPrims.a SoundGenerationPlugin/SoundGenerationPlugin.a SoundPlugin/SoundPlugin.a StarSqueakPlugin/StarSqueakPlugin.a SurfacePlugin/SurfacePlugin.a VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.a -luuid -lutil -lpulse-simple /usr/local/lib/libasound.so -lexecinfo -lm vm/vm.a -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib<br class="">/usr/local/bin/ld: vm/vm.a(sqUnixCharConv.o): in function `convertChars':<br class="">/home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm/sqUnixCharConv.c:276: undefined reference to `libiconv_close'<br class="">/usr/local/bin/ld: /home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm/sqUnixCharConv.c:278: undefined reference to `libiconv_open'<br class="">/usr/local/bin/ld: /home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm/sqUnixCharConv.c:290: undefined reference to `libiconv'<br class="">collect2: error: ld returned 1 exit status<br class=""><br class="">Here I cheated, as I had no idea how to add the library libiconv to the linker. I went to the Makefile in the directory ..../opensmaltalk-vm/build.linux64x64/squeak.stack.spur/build an added  iconv to the LIBS-statement: <br class=""><br class="">LIBS=<span class="Apple-tab-span" style="white-space:pre">    </span>-luuid -lutil -lpulse-simple -lasound  -lexecinfo -lm -liconv<br class=""><br class="">Don't know if that was allowed, but the  libiconv-problem was solved. <br class="">But now I am at the end of my wits. I stumbled upon: <br class=""><br class="">ibtool: compile:  gcc -g -O1 -DNDEBUG -DDEBUGVM=0 -msse2 -Wall -pthread -DLSB_FIRST=1 -m64 -Wno-missing-braces -Wno-unknown-pragmas -Wno-u                                                 nused-value -Wno-unused-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -DHAVE_CONFIG_H -I/home/edwin/Smalltal                                                 k5/opensmalltalk-vm/build.linux64x64/squeak.stack.spur/build -I/home/edwin/Smalltalk5/opensmalltalk-vm/build.linux64x64/squeak.stack.spur/b                                                 uild -I/home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm -I/home/edwin/Smalltalk5/opensmalltalk-vm/platforms/Cross/vm -I/home/edwin                                                 /Smalltalk5/opensmalltalk-vm/spurstack64src/vm -I/usr/local/include -m64 -Wno-missing-braces -Wno-unknown-pragmas -Wno-unused-value -Wno-un                                                 used-label -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -c /home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix                                                 /vm-sound-ALSA/sqUnixSoundALSA.c  -fPIC -DPIC -o .libs/sqUnixSoundALSA.o                                                                                                                    <br class="">/home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c:951:13: error: 'devname' redeclared as different kin                                                 d of symbol                                                                                                                                                                             <br class="">  951 | static char devname[MAX_NAME_LEN];                                                                                                                                                  <br class="">      |             ^~~~~~~                                                                                                                                                                 <br class="">In file included from /home/edwin/Smalltalk5/opensmalltalk-vm/platforms/Cross/vm/sq.h:20,                                                                                                   <br class="">                 from /home/edwin/Smalltalk5/opensmalltalk-vm/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c:31:                                                                            <br class="">/usr/include/stdlib.h:277:7: note: previous declaration of 'devname' was here                                                                                                               <br class="">  277 | char *devname(__dev_t, __mode_t);                                                                                                        <br class=""><br class=""><br class="">Does anybody have an idea for a quick cheat to get trough the compilation, besides starting to rewrite parts of the code?<br class=""><br class="">Kind regards,<br class=""><br class="">Edwin Ancaer<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="267DCED0-EFC7-4680-ABE8-262C99F7F6E3" src="cid:A621F782-D733-40A0-BC69-5855FF566C51@fritz.box" class=""></div></div></body></html>