Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] BeOS and Unix library problems
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sébastien_Pierre <kaze@m...>
Subject: [Caml-list] BeOS and Unix library problems
Hi!

I was quite happy to see the new distribution of OCaml 3 on the website 
yesterday, as I was unable to get a CVS accesss from my university 
(thanks to the firewall).
So I tried to compile it on my BeOS workstation and it worked...until I 
tried to compile 'findlib'.
Here is the error I get:
   
  ocamlc -custom -o ocamlfind findlib.cma unix.cma frontend.ml -cclib -
lunix
   /boot/home/config/lib/ocaml/libunix.a(chroot.o): In function 
`unix_chroot':
   chroot.o(.text+0x16): undefined reference to `chroot'
   /boot/home/config/lib/ocaml/libunix.a(nice.o): In function 
`unix_nice':
   nice.o(.text+0x24): undefined reference to `nice'
   collect2: ld returned 1 exit status      

Looking at the sources, the "nice.c" and "chroot.c" source files both 
use calls to functions called "nice" and "chroot" which I can't find 
(and obviously the linker has the same problem ;)... Does anyone has 
any idea on how to solve this?

The dirty hack I found is to comment these fonctions and make them 
return -1!

Cheers,
Seb.
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr