Hi, here is a third patch: [bld tls 2024-10-19 00:44:02] echo '# ' "compile " powerpc-mkbootimage/mkbootimage.lo [bld tls 2024-10-19 00:44:02] + echo # compile powerpc-mkbootimage/mkbootimage.lo [bld tls 2024-10-19 00:44:02] # compile powerpc-mkbootimage/mkbootimage.lo [bld tls 2024-10-19 00:44:02] cc -O -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/tools-bebox-powerpc/include/compat -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/../../../../lib/libsa -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/external/gpl3/binutils/dist/include -DATTRIBUTE_PACKED= -c -o mkbootimage.lo.o /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/mkbootimage.c [bld tls 2024-10-19 00:44:02] + cc -O -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/tools-bebox-powerpc/include/compat -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/../../../../lib/libsa -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/external/gpl3/binutils/dist/include -DATTRIBUTE_PACKED= -c -o mkbootimage.lo.o /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/mkbootimage.c [bld tls 2024-10-19 00:44:02] /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: In function 'rs6000_build_image': [bld tls 2024-10-19 00:44:02] /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/mkbootimage.c:580:30: error: implicit declaration of function 'htonl' [-Wimplicit-function-declaration] [bld tls 2024-10-19 00:44:02] 580 | swapped[i] = htonl(swapped[i]); [bld tls 2024-10-19 00:44:02] | ^~~~~ [bld tls 2024-10-19 00:44:02] [bld tls 2024-10-19 00:44:02] *** Failed target: mkbootimage.lo [bld tls 2024-10-19 00:44:02] *** Failed command: cc -O -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/tools-bebox-powerpc/include/compat -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/../../../../lib/libsa -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage -I/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/external/gpl3/binutils/dist/include -DATTRIBUTE_PACKED= -c -o mkbootimage.lo.o /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage/../../sys/arch/powerpc/stand/mkbootimage/mkbootimage.c [bld tls 2024-10-19 00:44:02] *** Error code 1 [bld tls 2024-10-19 00:44:02] [bld tls 2024-10-19 00:44:02] Stop. [bld tls 2024-10-19 00:44:02] nbmake[3]: stopped making "realall" in /var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage [bld tls 2024-10-19 00:44:02] [bld tls 2024-10-19 00:44:02] *** Failed target: dependall [bld tls 2024-10-19 00:44:02] *** Failed command: cd "/var/lib/laminar/run/netbsd-bebox-powerpc/58/NetBSD-src/tools/powerpc-mkbootimage"; /var/lib/laminar/run/netbsd-bebox-powerpc/58/tools-bebox-powerpc/bin/nbmake realall [bld tls 2024-10-19 00:44:02] *** Error code 1 [bld tls 2024-10-19 00:44:02] [bld tls 2024-10-19 00:44:02] Stop. diff --git a/sys/arch/powerpc/stand/mkbootimage/mkbootimage.c b/sys/arch/powerpc/stand/mkbootimage/mkbootimage.c index 541c9a4144e6..344b6e8d9782 100644 --- a/sys/arch/powerpc/stand/mkbootimage/mkbootimage.c +++ b/sys/arch/powerpc/stand/mkbootimage/mkbootimage.c @@ -44,6 +44,7 @@ #include <errno.h> #include <zlib.h> #include <err.h> +#include <arpa/inet.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/uio.h> Thanks, Jan-Benedict --
Attachment:
signature.asc
Description: PGP signature