pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/hal build fails on -current?

I've been consistently failing to build "sysutils/hal" on my 7.99.59
amd64 and i386 systems.  Yet, no such failure is reported in the bulk
build logs for -current.

The fatal error is:

devinfo_mass.c: In function 'devinfo_mass_disklabel_add':
devinfo_mass.c:309:14: error: storage size of 'st' isn't known
  struct stat st;

It seems that "${WRKSRC}hald/netbsd/devinfo_mass.c" is missing

  #include <sys/stat.h>

which the other "devinfo_*.c" files in that directory have.  Adding
it with the following patch:

+--- hald/netbsd/devinfo_mass.c.orig	2017-02-14 16:53:42.848606319 -0600
++++ hald/netbsd/devinfo_mass.c	2017-02-14 16:55:02.178497912 -0600
+@@ -34,6 +34,7 @@
+ #include <sys/bootblock.h>
+ #include <sys/ioctl.h>
+ #include <sys/scsiio.h>
++#include <sys/stat.h>
+ #include <dev/scsipi/scsipi_all.h>
+ #include <ctype.h>
+ #include <errno.h>

allows it to build.

NetBSD-7 does not have this problem.  Perhaps <sys/stat.h> was nested
in some other header in netbsd-7 which is no-longer true in current?

But it still doesn't explain why I see the failure but the bulk build

|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Home | Main Index | Thread Index | Old Index