From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 3AD3EBB91 for ; Wed, 12 Jan 2005 08:29:30 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0C7TTpV014394 for ; Wed, 12 Jan 2005 08:29:30 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA08507 for ; Wed, 12 Jan 2005 08:29:29 +0100 (MET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0C7TSBo014391 for ; Wed, 12 Jan 2005 08:29:29 +0100 Received: by rproxy.gmail.com with SMTP id y7so15234rne for ; Tue, 11 Jan 2005 23:29:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=kkb/FO/ARF/H1bSVQps8p0zFXY5bvTs0Si4x1n+7iZnkchP+SwlAsGujlZpWK51FMKTV7myhyXdyJiTuyVlOmYSA0V2rbHWtW7TM2PM1/RumzoPsJsLuhByIjgnh2VnHmqsiZAxhZ92RjSv+WLofc+0kJN4SGG2sTwwWFWWZDwA= Received: by 10.38.11.60 with SMTP id 60mr653839rnk; Tue, 11 Jan 2005 23:29:28 -0800 (PST) Received: by 10.38.65.58 with HTTP; Tue, 11 Jan 2005 23:29:28 -0800 (PST) Message-ID: <7f8e92aa05011123291c3edfad@mail.gmail.com> Date: Wed, 12 Jan 2005 09:29:28 +0200 From: Radu Grigore Reply-To: Radu Grigore To: caml-list Subject: glibc and ocaml/libasmrun.a Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 41E4D1D9.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41E4D1D8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 libasmrun:01 lib:01 libc:01 statically:01 ocamlopt:01 -static:01 usr:01 lib:01 ocaml:01 libasmrun:01 statically:01 runtime:01 awake:98 unix:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: Hello, I have trouble distributing a self contained executable. Two users reported "collect_events: /lib/i686/libc.so.6: version `GLIBC_2.3' not found". I do not have any control over their system, so I tried to link statically against glibc by using: ocamlopt -ccopt -static collect_events.ml I get: /usr/local/lib/ocaml/libasmrun.a(unix.o)(.text+0x241): In function `caml_dlopen': warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking At first I thought that my program uses a library function whose implementation explicitly tries to load dynamically. But the same warning is obtained if collect_events.ml is an empty file. It looks like the interpreter itself wants to link dynamically against glibc. Is this a correct diagnostic? Is there a way around it? Other info: ocaml version 3.08.1 my system: Fedora Core 1 user system: (probably[0]) RedHat 7 -- thanks, radu http://rgrig.idilis.ro/ [0] they are not awake yet :)