[Bug 504160] [NEW] Compiling ocamlnet on ubuntu karmic, Error with rpclocal.c
ben
ben at lekuin.org
Thu Jan 7 08:53:55 UTC 2010
Public bug reported:
Trying to build ocamlnet-2.2.9 from sources on ubuntu karmic throws the
following
error
------
$ make all
[...]
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
[...]
(Entire log is below)
workaround
---------------
Add the following line on top of rpclocal.c:
$ vim src/rpc-auth-local/rpclocal.c
#define _GNU_SOURCE
reproduction
----------------
wget http://download.camlcity.org/download/ocamlnet-2.2.9.tar.gz
tar xfvz ocamlnet-2.2.9.tar.gz && cd ocamlnet-2.2.9
./configure
make all
specs
--------
### pcre
$ cat /usr/local/lib/ocaml/3.11.1/pcre/META | grep version
version="6.0.1"
### type-conv
$ cat /usr/local/lib/ocaml/3.11.1/type-conv/META | grep version
version = "1.6.10"
### ocaml
$ ocamlc -v
The Objective Caml compiler, version 3.11.1
Standard library directory: /usr/lib/ocaml
### ubuntu
$ lsb_release -d
Description: Ubuntu 9.10
### gcc
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
Entire error log:
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] Error 2
make: *** [all] Error 2
** Affects: ocamlnet (Ubuntu)
Importance: Undecided
Status: New
--
Compiling ocamlnet on ubuntu karmic, Error with rpclocal.c
https://bugs.launchpad.net/bugs/504160
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list