English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Warnings while compiling a static OCaml program
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-28 (13:20)
From: David MENTRE <dmentre@l...>
Subject: [Caml-list] Warnings while compiling a static OCaml program
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é <dmentre@linux-france.org>

-------------------
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