wulf7 / linux-libbsd

Shim library that allows some BSD-specific software to be compiled and run under Linuxolator
BSD 2-Clause "Simplified" License
10 stars 2 forks source link

Can't compile on recent CURRENT #1

Open mateuszkwiatkowski opened 2 years ago

mateuszkwiatkowski commented 2 years ago

Hi, I'm trying to build this on FreeBSD current (d8819d88af52) and it fails with following error:

[...]
cp -f /usr/src/sys/../lib/libc/string/strlcpy.c strlcpy.c
sed -e 's|<sys/sysctl\.h>|"sysctl.h"|'  -e 's|<sys/param\.h>|"param.h"|'  /usr/src/sys/../lib/libc/gen/sysctlbyname.c > sysctlbyname.c
sed -e 's|<sys/sysctl\.h>|"sysctl.h"|'  -e 's|<sys/param\.h>|"param.h"|'  /usr/src/sys/../lib/libc/gen/sysctlnametomib.c > sysctlnametomib.c
Warning: Object directory not changed from original /root/linux-libbsd/lib
/compat/linux/usr/bin/gcc  -O2 -pipe -m32 --sysroot /compat/linux -I/root/linux-libbsd/lib/../include -include bsd.h   -g -MD  -MF.depend.kevent.o -MTkevent.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wno-return-type       -c kevent.c -o kevent.o
/compat/linux/usr/bin/gcc  -O2 -pipe -m32 --sysroot /compat/linux -I/root/linux-libbsd/lib/../include -include bsd.h   -g -MD  -MF.depend.kqueue.o -MTkqueue.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wno-return-type       -c kqueue.c -o kqueue.o
/compat/linux/usr/bin/gcc  -O2 -pipe -m32 --sysroot /compat/linux -I/root/linux-libbsd/lib/../include -include bsd.h   -g -MD  -MF.depend.devname.o -MTdevname.o -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wno-return-type       -c devname.c -o devname.o
In file included from devname.c:37:0:
sysctl.h:1178:24: fatal error: sys/_types.h: No such file or directory
 #include <sys/_types.h>
                        ^
compilation terminated.
*** Error code 1

Stop.
make[1]: stopped in /root/linux-libbsd/lib
*** Error code 1

Stop.
make: stopped in /root/linux-libbsd
wulf7 commented 2 years ago

Hopefully, build on recent 14-CURRENT is fixed now