caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Stéphane Glondu" <steph@glondu.net>
To: Joel Reymont <joelr1@gmail.com>
Cc: O'Caml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] cvs ocaml build failing
Date: Thu, 16 Apr 2009 18:16:08 +0200	[thread overview]
Message-ID: <49E759C8.2020701@glondu.net> (raw)
In-Reply-To: <B69F57FD-8EB7-40AE-B7A5-873CE856CA3A@gmail.com>

Joel Reymont a écrit :
> ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix
> ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx
> ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o
> ocamlbuild/ocamlbuild.native
> Undefined symbols:
>   "_unix_setgroups", referenced from:
>       _camlUnix__215 in unix.a(unix.o)
>       _unix_setgroups$non_lazy_ptr in unix.a(unix.o)
>   "_unix_initgroups", referenced from:
>       _camlUnix__215 in unix.a(unix.o)
>       _unix_initgroups$non_lazy_ptr in unix.a(unix.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking
> Exit code 2 while executing this command:
>   ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix
> ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx
> ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o
> ocamlbuild/ocamlbuild.native

Are you using the ocamlbuild-based build system?

That would be my fault (I guess). See PR#3047. I haven't tested the
patch with the ocamlbuild-based build system, but I guess "initgroups.o"
and "setgroups.o" are missing from otherlibs/unix/libunix.clib... Could
you check that updating libunix.clib solves your build failure?


Cheers,

-- 
Stéphane


  reply	other threads:[~2009-04-16 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 13:04 Joel Reymont
2009-04-16 16:16 ` Stéphane Glondu [this message]
     [not found]   ` <be68c3dc0904160930g106490b6r44b2dbff8e551daf@mail.gmail.com>
2009-04-16 16:50     ` [Caml-list] " Stéphane Glondu
2009-04-16 17:14       ` Joel Reymont

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=49E759C8.2020701@glondu.net \
    --to=steph@glondu.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=joelr1@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).