Compilation error with ocamlnet-2.2.9
Johan Mazel <[email protected]> Tue, 16 Mar 2010 12:17:55 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I have a compilation error when I try to compile Ocamlnet 2.2.9.
"ocamlopt -v" returns me:
The Objective Caml native-code compiler, version 3.11.1
"gcc -v" returns me:
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
My OS is Ubuntu 9.10 64 bits.
The result of ./configure is:
Welcome to Ocamlnet version 2.2.9
Checking for findlib... found
Checking multi-threading support... posix (ok)
Checking for PCRE... found
Checking operating system... Linux
This OS supports passing credentials over Unix domain sockets
Building rpc-auth-local
Checking for POSIX shared memory... found
Effective options:
-disable-gtk
-disable-gtk2
-disable-tcl
-disable-ssl
-disable-apache
-without-nethttpd
-without-rpc-auth-dh
-bindir /usr/bin
-datadir /usr/local/lib/ocaml/3.11.1/netstring
Writing Makefile.conf
Please check Makefile.conf.
You can now compile Ocamlnet by invoking
make all
for the bytecode compiler, and optionally by invoking
make opt
for the native-code compiler (if supported on your architecture).
Finally, a
make install
will install the package(s).
>From my point of view everything seems to be fine, but I may miss something.
The error with make opt is:
if [ "X" = "X" ]; then \
ocamlfind ocamlopt -inline 10 -package "unix pcre" -a -o
rpc_generator.cmxa rtypes.cmx syntax.cmx options.cmx parser.cmx lexer.cmx
rename.cmx generate.cmx; \
else \
ocamlmklib -o rpc_generator rtypes.cmx syntax.cmx options.cmx
parser.cmx lexer.cmx rename.cmx generate.cmx ; \
fi
rm lexer.ml
make[1]: quittant le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc-generator »
make[1]: entrant dans le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc »
make[2]: entrant dans le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc »
../rpc-generator/ocamlrpcgen -aux rpc_portmapper.x
make[2]: ../rpc-generator/ocamlrpcgen : commande introuvable
make[2]: *** [rpc_portmapper_aux.ml] Erreur 127
make[2]: quittant le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc »
make[1]: *** [generate] Erreur 2
make[1]: quittant le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc »
make: *** [opt] Erreur 2
The error with make all is:
ocamlfind ocamlc -g -I ../../src/rpc -package "unix pcre" -c -ccopt -O
rpclocal.c
rpclocal.c: In function ‘unix_get_peer_credentials’:
rpclocal.c:40: error: storage size of ‘credentials’ isn’t known
rpclocal.c:42: error: invalid application of ‘sizeof’ to incomplete type
‘struct ucred’
rpclocal.c:40: warning: unused variable ‘credentials’
rpclocal.c: In function ‘unix_peek_peer_credentials’:
rpclocal.c:91: error: dereferencing pointer to incomplete type
rpclocal.c:129: error: ‘SCM_CREDENTIALS’ undeclared (first use in this
function)
rpclocal.c:129: error: (Each undeclared identifier is reported only once
rpclocal.c:129: error: for each function it appears in.)
rpclocal.c:135: error: dereferencing pointer to incomplete type
rpclocal.c:136: error: dereferencing pointer to incomplete type
rpclocal.c:91: warning: unused variable ‘buf’
make[1]: *** [rpclocal.o] Erreur 2
make[1]: quittant le répertoire «
/PathToOcamlnet/Ocamlnet/ocamlnet-2.2.9/src/rpc-auth-local »
make: *** [all] Erreur 2
I honestly don't see where the problem comes from since the configure script
seems to be working just fine.
Thanks in advance for your time.
Johan Mazel
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel