[squeak-dev] Problems with CogVM

Bert Freudenberg bert at freudenbergs.de
Thu Nov 29 19:51:37 UTC 2012

On 2012-11-29, at 19:42, Casimiro de Almeida Barreto <casimiro.barreto at gmail.com> wrote:

> On 29-11-2012 16:20, Bert Freudenberg wrote:
>> On 2012-11-29, at 17:24, Casimiro de Almeida Barreto <casimiro.barreto at gmail.com> wrote:
>>> Ok, I ltraced  & guess what: Fedora sometimes just does not have the
>>> /usr/lib/libXX.so but only /usr/lib/libXX.so.1 (or whathever). Fixed,
>>> got things running.
>> Your code should be looking for /usr/lib/libXX.so.1 not /usr/lib/libXX.so on Linux. Adding the symlink is *not* the right way to work around that.
> Clearly not the right way. Every time library is updated things go
> borked :-)
>> This is how the library versioning system was designed. Just do an "ldd" an any executable and you will see they all link to the versioned file names.
> It happens that apparently FFI and NativeBoost have problems with native
> linux versioning system. BTW, in OpenGL there's explicit link to
> libGL.so (libraryName).

Not true:

	^Smalltalk osVersion = 'linux'
		ifTrue: ['libGL.so.1']
		ifFalse: ['GL']

- Bert -

More information about the Squeak-dev mailing list