Version française
Home     About     Download     Resources     Contact us    
Browse thread
cvs ocaml build failing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] cvs ocaml build failing
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