From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA20836; Wed, 6 Aug 2003 14:03:14 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA19720 for ; Wed, 6 Aug 2003 14:03:13 +0200 (MET DST) Received: from ep09.kernel.pl (ep09.kernel.pl [212.87.11.162]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h76C3Bf28845 for ; Wed, 6 Aug 2003 14:03:11 +0200 (MET DST) Received: (qmail 13395 invoked by uid 566); 6 Aug 2003 12:03:04 -0000 Date: Wed, 6 Aug 2003 14:02:47 +0200 From: Michal Moskal To: Alan Schmitt Cc: caml-list@inria.fr Subject: Re: [Caml-list] static linking and ocaml 3.07 beta 1 Message-ID: <20030806120247.GB2333@roke.freak> Mail-Followup-To: Alan Schmitt , caml-list@inria.fr References: <20030804142916.GV3049@alan-schm1p> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030804142916.GV3049@alan-schm1p> User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; michal:01 moskal:01 malekith:01 pld-linux:01 caml-list:01 3.07:01 0400,:01 ocamlopt:01 -static:01 sysconf:01 cmx:01 abort:01 usr:01 libunix:01 statically:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Aug 04, 2003 at 10:29:16AM -0400, Alan Schmitt wrote: > I have had the following strange message when doing a static link: > > ocamlopt unix.cmxa str.cmxa -ccopt -static sysconf.cmx abort.cmx debug.cmx timeout.cmx bufrw.cmx ftp.cmx config.cmx utils.cmx crypt.cmx future.cmx timed_events.cmx dns.cmx http.cmx commands.cmx event.cmx maingrenouille.cmx -o camlgrenouille.static > /usr/local/lib/ocaml/libunix.a(getgr.o)(.text+0x10c): In function `unix_getgrgid': > : Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking You might be better off linking statically everything *except* glibc. Executables linked dynamically against given version of glibc will mostly run with later versions (but not the other way around). [...] > Does someone else has this problem ? Everybody using glibc 2.2+? :-) (or even older) -- : Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv : When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h ------------------- 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