Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] static linking and ocaml 3.07 beta 1
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-08-06 (12:03)
From: Michal Moskal <malekith@p...>
Subject: Re: [Caml-list] static linking and ocaml 3.07 beta 1
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 :: : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: