Problems compiling VM from trunk

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems compiling VM from trunk

CdAB63
 
1st problem: UUID in Fedora 13.
    Include statement for this case must be: #include <uuid/uuid.h> and not only #include <uuid.h>

2nd problem: UUID in Fedora 13
    libuuid.so... must be explicitly set

Error:
gcc -O3 -m32 -march=core2 -mtune=core2 -fomit-frame-pointer -DLSB_FIRST=1 -Wl,--hash-style=sysv -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a ADPCMCodecPlugin/ADPCMCodecPlugin.a AsynchFilePlugin/AsynchFilePlugin.a BMPReadWriterPlugin/BMPReadWriterPlugin.a B2DPlugin/B2DPlugin.a BitBltPlugin/BitBltPlugin.a CroquetPlugin/CroquetPlugin.a DSAPrims/DSAPrims.a ZipPlugin/ZipPlugin.a DropPlugin/DropPlugin.a FFTPlugin/FFTPlugin.a FilePlugin/FilePlugin.a FloatArrayPlugin/FloatArrayPlugin.a FloatMathPlugin/FloatMathPlugin.a GeniePlugin/GeniePlugin.a JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.a JPEGReaderPlugin/JPEGReaderPlugin.a JoystickTabletPlugin/JoystickTabletPlugin.a Klatt/Klatt.a LargeIntegers/LargeIntegers.a LocalePlugin/LocalePlugin.a Matrix2x3Plugin/Matrix2x3Plugin.a MiscPrimitivePlugin/MiscPrimitivePlugin.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 UUIDPlugin/UUIDPlugin.a -lutil -ldl -lm -lnsl vm/vm.a -Wl,--rpath -Wl,/usr/local/lib
vm/vm.a(sqVirtualMachine.o): In function `sqGetInterpreterProxy':
...
a bunch of errors
...
UUIDPlugin/UUIDPlugin.a(sqUnixUUID.o): In function `MakeUUID':
sqUnixUUID.c:(.text+0x30): undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make: ** [squeak] Erro 1
That is fixed when -luuid is added to command line

3rd problem: unresolved symbols (something is not being compiled):
gcc -O3 -m32 -march=core2 -mtune=core2 -fomit-frame-pointer -DLSB_FIRST=1 -Wl,--hash-style=sysv -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a ADPCMCodecPlugin/ADPCMCodecPlugin.a AsynchFilePlugin/AsynchFilePlugin.a BMPReadWriterPlugin/BMPReadWriterPlugin.a B2DPlugin/B2DPlugin.a BitBltPlugin/BitBltPlugin.a CroquetPlugin/CroquetPlugin.a DSAPrims/DSAPrims.a ZipPlugin/ZipPlugin.a DropPlugin/DropPlugin.a FFTPlugin/FFTPlugin.a FilePlugin/FilePlugin.a FloatArrayPlugin/FloatArrayPlugin.a FloatMathPlugin/FloatMathPlugin.a GeniePlugin/GeniePlugin.a JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.a JPEGReaderPlugin/JPEGReaderPlugin.a JoystickTabletPlugin/JoystickTabletPlugin.a Klatt/Klatt.a LargeIntegers/LargeIntegers.a LocalePlugin/LocalePlugin.a Matrix2x3Plugin/Matrix2x3Plugin.a MiscPrimitivePlugin/MiscPrimitivePlugin.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 UUIDPlugin/UUIDPlugin.a -lutil -ldl -lm -lnsl vm/vm.a -Wl,--rpath -Wl,/usr/local/lib
vm/vm.a(sqVirtualMachine.o): In function `sqGetInterpreterProxy':
sqVirtualMachine.c:(.text+0x47c): undefined reference to `internalIsImmutable'
sqVirtualMachine.c:(.text+0x486): undefined reference to `internalIsMutable'
sqVirtualMachine.c:(.text+0x490): undefined reference to `primitiveFailFor'
sqVirtualMachine.c:(.text+0x49a): undefined reference to `classAlien'
sqVirtualMachine.c:(.text+0x4a4): undefined reference to `getStackPointer'
sqVirtualMachine.c:(.text+0x4ae): undefined reference to `sendInvokeCallbackStackRegistersJmpbuf'
sqVirtualMachine.c:(.text+0x4b8): undefined reference to `reestablishContextPriorToCallback'
sqVirtualMachine.c:(.text+0x4c2): undefined reference to `classUnsafeAlien'

UUIDPlugin/UUIDPlugin.a(sqUnixUUID.o): In function `MakeUUID':
sqUnixUUID.c:(.text+0x30): undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make: ** [squeak] Erro 1
This 3rd problem I couldn't solve without handling code that I'm not maintainer.

Best regards,

CdAB

signature.asc (269 bytes) Download Attachment