Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: David MENTRE <dmentre@linux-france.org>
To: caml-list@inria.fr
Subject: [Caml-list] Warnings while compiling a static OCaml program
Date: Sat, 28 Feb 2004 14:20:44 +0100	[thread overview]
Message-ID: <873c8vpcgj.fsf@linux-france.org> (raw)

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


                 reply	other threads:[~2004-02-28 13:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873c8vpcgj.fsf@linux-france.org \
    --to=dmentre@linux-france.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox