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 OAA26755; Sat, 28 Feb 2004 14:20:48 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 OAA26300 for ; Sat, 28 Feb 2004 14:20:46 +0100 (MET) Received: from mwinf0602.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i1SDKpIq003504 for ; Sat, 28 Feb 2004 14:20:52 +0100 Received: from morgana (ARennes-303-1-6-136.w80-13.abo.wanadoo.fr [80.13.129.136]) by mwinf0602.wanadoo.fr (SMTP Server) with ESMTP id 92C745401142 for ; Sat, 28 Feb 2004 14:20:45 +0100 (CET) Received: from david by morgana with local (Exim 4.30) id 1Ax4Oa-0000YH-AJ for caml-list@inria.fr; Sat, 28 Feb 2004 14:20:44 +0100 To: caml-list@inria.fr Subject: [Caml-list] Warnings while compiling a static OCaml program From: David MENTRE Organization: none Date: Sat, 28 Feb 2004 14:20:44 +0100 Message-ID: <873c8vpcgj.fsf@linux-france.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; dmentre:01 ocamlopt:01 -static:01 lablgtk:01 -thread:01 threads:01 cmx:01 cmx:01 bitv:01 usr:01 3.07:01 libasmrun:01 statically:01 runtime:01 usr:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I obtain following warnings when I compile my OCaml program in static, native code: ocamlopt.opt -ccopt -static -I srv -I bitv-0.5 -I xdr/src/rpc -I net -I xdr/src/generator -I raw-clnt -I lablgtk-clnt -I +lablgtk -thread -o srv/demexp-server \ unix.cmxa threads.cmxa xdr/src/rpc/rpc_general.cmx xdr/src/rpc/rpc_common.cmx xdr/src/rpc/rtypes.cmx xdr/src/rpc/xdr.cmx xdr/src/rpc/rpc.cmx xdr/src/rpc/rpc_transport.cmx net/messages_aux.cmx config.cmx net/network.cmx bitv-0.5/bitv.cmx srv/srvflags.cmx srv/dbitv.cmx srv/participants.cmx srv/classification.cmx srv/delegation.cmx srv/voting.cmx srv/posbase.cmx srv/rwmutex.cmx srv/basesctrl.cmx srv/work.cmx srv/binio.cmx srv/demexp-server.cmx /usr/lib/ocaml/3.07/libasmrun.a(unix.o)(.text+0x27a): In function `caml_dlopen': : warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getgr.o)(.text+0x115): In function `unix_getgrgid': : warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getgr.o)(.text+0xdc): In function `unix_getgrnam': : warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getpw.o)(.text+0x128): In function `unix_getpwnam': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getpw.o)(.text+0x161): In function `unix_getpwuid': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(gethost.o)(.text+0x1a7): In function `unix_gethostbyaddr': : warning: Using 'gethostbyaddr_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(gethost.o)(.text+0x255): In function `unix_gethostbyname': : warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getproto.o)(.text+0xf4): In function `unix_getprotobynumber': : warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getproto.o)(.text+0xbb): In function `unix_getprotobyname': : warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getserv.o)(.text+0xef): In function `unix_getservbyname': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/ocaml/3.07/libunix.a(getserv.o)(.text+0x139): In function `unix_getservbyport': : warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking I've googled and look into glibc and gcc info pages but found nothing. Could somebody more informed explain to me where those warnings are coming from and how I might solve the possible issue? Many thanks in advance for any help, Yours, d. -- David Mentré ------------------- 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