Clean 1.3.1 on RedHat Linux 6.0

Jose Romildo Malaquias romildo@urano.iceb.ufop.br
Wed, 2 Jun 1999 15:06:33 -0300


On Wed, Jun 02, 1999 at 09:00:15PM +0400, Nickolay Kolchin wrote:
> óÒÄ, 02 éÀÎ 1999, Jose Romildo Malaquias wrote
> > I had been happily using the Clean compiler on my
> > RedHat Linux 5.2 system. After upgrading to the new
> > version of the system I was not able to compile my
> > programs anymore.
> > 
> > For example, when trying to compile the pascal.icl
> > example from the distro I got the error messages:
> > 
> > [1257] romildo@urano /var/tmp $ clm pascal
> > Compiling pascal
> > Warning [pascal.icl,49,AddRows]: function may fail
> > Generating code for pascal
> > Linking pascal
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o: In function `realpath':
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o(.text+0x2bfc): the `getwd' function is dangerous and should not be used.
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o: In function `get_file_number_and_device_number':
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o(.text+0x69): undefined reference to `_xstat'
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o: In function `realpath':
> > /opt/clean/lib/stdenv/Clean System Files/_startup.o(.text+0x2e03): undefined reference to `_lxstat'
> > collect2: ld returned 1 exit status
> > 
> > Any help?
> >
> 
> This is GLIBC2.1 problem. Try to install glibc2.0 (glibc-compat*.rpm ???) and
> link against them.

compat-glibc-5.2-2.0.7.1 (and all other compat-*.rpm from the distribution)
is already installed on my system.

How can I instruct clm to link against it explicitly?

Thanks.