Kevin Glynn wrote:

Excellent news.  Although you have reminded me that we already offer
something like this. If you look at
  http://www.mozart-oz.org/download/view.cgi?action=tar&version=1.3.2

There is a generic linux i386 tarball which is statically linked to
its libraries.

You should be able to run this by
 linux32 ./mozart/bin/oz

For 1.3.2 this does not work, I get:

/home/keving/Downloads/mozart/platform/linux-i486/emulator.exe: 
/lib32/libc.so.6: version `GLIBC_2.4' not found (required by 
/home/keving/Downloads/mozart/platform/linux-i486/lib/libgcc_s.so.1)

However, it does work for the 1.3.1 tarball:

  http://www.mozart-oz.org/download/view.cgi?action=tar&version=1.3.1

Or, at least I can run {Browse hello}!

Yves,  can you investigate this?
This bug is easy to solve (based on my experience on 32-bits platforms only), just remove the files in

/home/keving/Downloads/mozart/platform/linux-i486/lib/

My explanation goes like this (but I'm no GCC/C/C++/ELF guru):

Historic Mozart developers wanted the static builds to be as static as 
possible. So they bundled the (mostly) static executable with the (few) 
libraries it dynamically linked to. These libraries are the GCC and C++ runtime 
libraries. This is done by the last part of misc/make-mozart.sh (in the source 
tree.)

Nowadays these libraries are themselves dynamically linked to other libraries. 
Here we see that the GCC runtime links dynamically to the C library.

Although Oz itself can run with quite old versions of the C library, the 
provided GCC library demand a very recent one. This is probably due to the 
1.3.2 release being prepared on a fresh install of Fedora Core 5 which is quite 
a recent distribution.


On the other hand, I don't see why we continue to provide these two libraries. 
These libraries should be part of a standard Linux installation.

Yves

cheers
k




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to