Subject: Building devel/rudiments
To: None <tech-pkg@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-pkg
Date: 09/22/2004 07:45:41
I can't seem to build this package devel/rudiments. It fails with this
error.
g++ -I../ -I../include -c rpcentry.C -fPIC -DPIC -o .libs/rpcentry.n.o
In file included from ../include/rudiments/rpcentry.h:53,
from rpcentry.C:4:
../include/rudiments/private/rpcentry.h:5: error: syntax error before
`*' token
../include/rudiments/private/rpcentry.h:6: error: 'rpcent' is used as a
type,
but is not defined as a type.
In file included from rpcentry.C:6:
../include/rudiments/private/rpcentryinlines.h: In constructor `
rpcentry::rpcentry()':
../include/rudiments/private/rpcentryinlines.h:13: error: `re'
undeclared
(first use this function)
../include/rudiments/private/rpcentryinlines.h:13: error: (Each
undeclared
identifier is reported only once for each function it appears in.)
rpcentry.C: In member function `int rpcentry::initialize(const char*,
int)':
rpcentry.C:53: error: `getrpcbyname' undeclared (first use this
function)
rpcentry.C:54: error: `getrpcbynumber' undeclared (first use this
function)
gmake[1]: *** [rpcentry.n.lo] Error 1
gmake[1]: Leaving directory
`/usr/obj/devel/rudiments/work.i386/rudiments-0.25.1/src'
gmake: *** [all] Error 2
*** Error code 2
I tried manually upgrading the package to version 0.27 but then I just
get a different error.
g++ -O2 -Wall -pipe -D_REENTRANT -I../ -I../include -c filedescriptor.C
-fPIC -DPIC -o .libs/filedescriptor.o
filedescriptor.C: In member function `virtual bool
filedescriptor::passFileDescriptor(int)':
filedescriptor.C:915: error: data member may not have variably modified
type `
char[(((((__cmsg_alignbytes() + 12) & (~__cmsg_alignbytes())) +
((__cmsg_alignbytes() + 4) & (~__cmsg_alignbytes()))) - 1) + 1)]'
filedescriptor.C:917: error: 'union
filedescriptor::passFileDescriptor(int)::<anonymous>' has no member
named '
control'
filedescriptor.C: In member function `virtual bool
filedescriptor::receiveFileDescriptor(int*)':
filedescriptor.C:979: error: data member may not have variably modified
type `
char[(((((__cmsg_alignbytes() + 12) & (~__cmsg_alignbytes())) +
((__cmsg_alignbytes() + 4) & (~__cmsg_alignbytes()))) - 1) + 1)]'
filedescriptor.C:981: error: 'union
filedescriptor::receiveFileDescriptor(int*)::<anonymous>' has no
member
named 'control'
gmake[1]: *** [filedescriptor.lo] Error 1
gmake[1]: Leaving directory
`/usr/obj/devel/rudiments/work.i386/rudiments-0.27/src'
gmake: *** [all] Error 2
*** Error code 2
I am wondering if I should install lang/gcc34 or is my problem that I
need an older version or is it something completely different? Has
anyone got this to build on any version of NetBSD? I tried on -current
as well as 2.0 BETA.
--
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/