Date: Wed, 17 Apr 2002 19:09:17 +0200 From: Miguel Mendez <flynn@energyhq.homeip.net> To: current@freebsd.org Subject: problem building libh Message-ID: <20020417190917.A23026@energyhq.homeip.net>
next in thread | raw e-mail | index | archive | help
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
When trying to build libh (from CVS) on a 5.0-DP1 system I get the
following error:
=3D=3D=3D> 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 @@
=20
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 =3D 0;
-----
Has this been fixed in recent -CURRENT includes?
Cheers,
--=20
Miguel Mendez - flynn@energyhq.homeip.net
GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
EnergyHQ :: http://www.energyhq.tk
FreeBSD - The power to serve!
--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8vaw8nLctrNyFFPERAjBKAJwI3aotlmvPO+GI4Nq/6se2AhEFUQCglHuf
jPCbCW1rjVKGIvePfzhFHOA=
=fpD4
-----END PGP SIGNATURE-----
--n8g4imXOkfNTN/H1--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020417190917.A23026>
