Hi, When trying to build libh (from CVS) on a 5.0-DP1 system I get the following error:
===> disk
c++ -pipe -g -I/usr/local/include/tcl8.3 -fpic -DPIC
-I/pub/devel/libh/lib/disk/../../include -Wall -c
/pub/devel/libh/lib/disk/Disk.cc -o Disk.o
In file included from /pub/devel/libh/lib/disk/Disk.cc:39:
/usr/include/sys/disklabel.h:191: `lp' was not declared in this scope
/usr/include/sys/disklabel.h:192: syntax error before `*'
/usr/include/sys/disklabel.h:189: warning: `u_int16_t dkcksum(disklabel
*)' declared `static' but never defined
*** Error code 1
However, looking at the code one can apply the following (trivial)
patch:
flynn@saioa# diff -ruN disklabel.h.old disklabel.h
--- disklabel.h.old Wed Apr 17 19:03:59 2002
+++ disklabel.h Wed Apr 17 19:04:39 2002
@@ -188,8 +188,7 @@
static __inline u_int16_t dkcksum __P((struct disklabel *lp));
static __inline u_int16_t
-dkcksum(lp)
- struct disklabel *lp;
+dkcksum(struct disklabel * lp)
{
u_int16_t *start, *end;
u_int16_t sum = 0;
-----
Has this been fixed in recent -CURRENT includes?
Cheers,
--
Miguel Mendez - [EMAIL PROTECTED]
GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
EnergyHQ :: http://www.energyhq.tk
FreeBSD - The power to serve!
msg37329/pgp00000.pgp
Description: PGP signature
