Subject: Help with zoularis on Linux?
To: None <tech-pkg@netbsd.org>
From: Johnny Lam <jlam@c35.jgrind.org>
List: tech-pkg
Date: 09/08/2001 21:50:31
I'm running Red Hat 6.1 (kernel version 2.2.12-20) on an Athlon machine
with gcc-2.95.2 and I'm trying to setup zoularis.  I fetched
zoularis-20010704.tar.gz and the NetBSD-current tarballs from today.  The
make process fails during the build of libbsdcompat:

gcc -O2   -I/opt/bsd/include -D__EXTENSIONS__ -D_XPG4_2 -DLINUX_2_2_12_20 -I/usr/sources/zoularis/bsd/lib/libbsdcompat -I/usr/sources/zoularis/src/lib/libc/include -I/opt/bsd/include -D__DBINTERFACE_PRIVATE -DOLD_GETCWD -DLINUX_2_2_12_20 -c /usr/sources/zoularis/src/lib/libc/gen/_verr.c
In file included from /opt/bsd/include/sys/types.h:49,
                 from /opt/bsd/include/stdio.h:44,
                 from /usr/sources/zoularis/src/lib/libc/gen/verr.c:50,
                 from /usr/sources/zoularis/src/lib/libc/gen/_verr.c:17:
/opt/bsd/include/machine/types.h:58: redefinition of `register_t'
/opt/bsd/include/native/sys/types.h:179: `register_t' previously declared here
In file included from /opt/bsd/include/stdio.h:44,
                 from /usr/sources/zoularis/src/lib/libc/gen/verr.c:50,
                 from /usr/sources/zoularis/src/lib/libc/gen/_verr.c:17:
/opt/bsd/include/sys/types.h:51: redefinition of `u_int8_t'
/opt/bsd/include/native/sys/types.h:174: `u_int8_t' previously declared here
/opt/bsd/include/sys/types.h:52: redefinition of `u_int16_t'
/opt/bsd/include/native/sys/types.h:175: `u_int16_t' previously declared here
/opt/bsd/include/sys/types.h:53: redefinition of `u_int32_t'
/opt/bsd/include/native/sys/types.h:176: `u_int32_t' previously declared here
/opt/bsd/include/sys/types.h:54: redefinition of `u_int64_t'
/opt/bsd/include/native/sys/types.h:177: `u_int64_t' previously declared here
[more similar errors deleted]

I'm not sure how to edit the headers to make this work as I don't understand
how zoularis is implemented.  Any help here would be greatly appreciated.
Even better would be a pointer to zoularis/NetBSD-sources combo that is known
to work on RH 6.1.

	Thanks,

	-- Johnny Lam <jlam@jgrind.org>