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 QAA23903; Mon, 4 Aug 2003 16:31:13 +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 QAA22684 for ; Mon, 4 Aug 2003 16:31:12 +0200 (MET DST) Received: from jamlikhet.polytechnique.org (b.mx.polytechnique.org [129.104.30.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h74EVBf12303 for ; Mon, 4 Aug 2003 16:31:11 +0200 (MET DST) Received: from alan-schm1p.inria.fr (DHCP12-12.CIS.UPENN.EDU [158.130.13.42]) by ssl.polytechnique.org (Postfix) with ESMTP id DB225C4BD for ; Mon, 4 Aug 2003 16:31:09 +0200 (CEST) Received: by alan-schm1p.inria.fr (Postfix, from userid 501) id 753C740F5; Mon, 4 Aug 2003 10:29:16 -0400 (EDT) Date: Mon, 4 Aug 2003 10:29:16 -0400 From: Alan Schmitt To: caml-list@inria.fr Subject: [Caml-list] static linking and ocaml 3.07 beta 1 Message-ID: <20030804142916.GV3049@alan-schm1p> Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: Vim http://vim.sf.net/ X-Info: http://pauillac.inria.fr/~aschmitt/ X-Operating-System: Linux/2.4.21-6mdk (i686) X-Uptime: 10:23:45 up 16:07, 12 users, load average: 0.21, 0.22, 0.27 User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; 3.07:01 ocamlopt:01 -static:01 sysconf:01 cmx:01 abort:01 usr:01 libunix:01 statically:01 runtime:01 schmitta:01 gcc:01 gcc-:01 linked:01 compiler:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 /usr/local/lib/ocaml/libunix.a(getgr.o)(.text+0xd1): In function `unix_getgrnam': : Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getpw.o)(.text+0x11d): In function `unix_getpwnam': : Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getpw.o)(.text+0x158): In function `unix_getpwuid': : Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(gethost.o)(.text+0x16e): In function `unix_gethostbyaddr': : Using 'gethostbyaddr_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(gethost.o)(.text+0x213): In function `unix_gethostbyname': : Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getproto.o)(.text+0xeb): In function `unix_getprotobynumber': : Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getproto.o)(.text+0xb0): In function `unix_getprotobyname': : Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getserv.o)(.text+0xe3): In function `unix_getservbyname': : Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/local/lib/ocaml/libunix.a(getserv.o)(.text+0x12a): In function `unix_getservbyport': : Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for link The program seems to run fine, but according to the messages, there will be no point in having the static link. Here is some additional info: schmitta@alan-schm1p:~/devel/camlgrenouille/camlgrenouille> ocamlopt -v The Objective Caml native-code compiler, version 3.07+beta 1 Standard library directory: /usr/local/lib/ocaml schmitta@alan-schm1p:~/devel/camlgrenouille/camlgrenouille> rpm -q glibc glibc-2.3.2-10mdk schmitta@alan-schm1p:~/devel/camlgrenouille/camlgrenouille> rpm -q gcc gcc-3.3.1-0.7mdk Does someone else has this problem ? Alan -- The hacker: someone who figured things out and made something cool happen. ------------------- 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