Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] problem compiling 3.07 on RH7.3
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Gushee <mgushee@h...>
Subject: Re: [Caml-list] problem compiling 3.07 on RH7.3
On Tue, Nov 25, 2003 at 05:36:34PM -0500, Mary F. Fernandez wrote:
> I am trying to compile the 3.07 source on:
> 
>   Red Hat Linux release 7.3 (Valhalla)
>   Kernel 2.4.18-10smp on a 2-processor i686
> 
> Configured as follows:
> 
> ./configure -prefix /home/mff/ocaml-3.07-rh -no-tk
> 
> Eventually, I get an error that libgcc_s.so.1 cannot be found:

  ....

> Error on dynamically loaded library: libgcc_s.so.1: cannot open shared 
> object file: No such file or directory

> This is not my machine nor do I have root access so I'm flying blind.
> Does this error message indicate some problem with the RH 7.3 installation
> on this machine, i.e., does ocaml depend upon libgcc_s.so.1?

It looks like the system is missing a GCC support package. On my Debian
system, libgcc_s.so.1 is provided by the 'libgcc1' package, whose
description reads:

  .... a library of internal subroutines that GCC uses to overcome
  shortcomings of particular machines, or special needs for some
  languages.

It's been a few years since I used RedHat, but I remember there being an
equivalent package ... it might have been called 'gcc-lib'. In any case,
I'm pretty sure that package *should* be installed on any development
box. Is it absolutely necessary? That I don't know, but I just grepped
the OCaml source tree for 'gcc_s', and that string doesn't occur, so it
looks like GCC or some associated program decides when that library is
needed.

Maybe somebody with better knowledge of GCC internals can give you a
more definite answer.

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners