dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

compilation fails on Hurd i386

Open perkelix opened this issue 3 years ago • 6 comments

Version: 9.4.1

Makefile:55: warning: ignoring prerequisites on suffix rule definition cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -Wdate-time -D_FORTIFY_SOURCE=2 -I/include -DHAVE_CONFIG_H -DNDEBUG -DINET -DARP -DARPING -DIPV4LL -DINET6 -DDHCP6 -DAUTH -DPRIVSEP -I.. -I../src -I./crypt -c common.c -o common.o In file included from ../config.h:24, from dhcpcd.h:37, from common.c:40: ../compat/rbtree.h:50:10: fatal error: sys/endian.h: No such file or directory 50 | #include <sys/endian.h> | ^~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:55: common.o] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/src' make[1]: *** [Makefile:24: all] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j1 returned exit code 2 make: *** [debian/rules:6: binary-arch] Error 255

https://buildd.debian.org/status/fetch.php?pkg=dhcpcd5&arch=hurd-i386&ver=9.4.1-3&stamp=1656658504&raw=0

perkelix avatar Jul 01 '22 08:07 perkelix

Having asked Hurd developers, configure would need to check for <endian.h> instead of <sys/endian.h> on that architecture.

perkelix avatar Jul 08 '22 08:07 perkelix

Hurd is not a supported OS. At a minimum it would need an equivalent of if-bsd.c being ported.

rsmarples avatar Jul 29 '22 06:07 rsmarples

Noted. Forwarded the info to Debian's Hurd porters.

perkelix avatar Jul 29 '22 07:07 perkelix

Hurd porters replied:

The Hurd has a very BSD-ish interface, so starting from if-bsd.c is probably a good idea.

Whole thread: https://lists.debian.org/debian-hurd/2022/07/msg00000.html

perkelix avatar Jul 22 '23 15:07 perkelix