dhcpcd-7.0.5 FTBFS
Chris Clayton
Sun Jun 03 09:13:05 2018
Hi,
If the --disable-inet6 option is passed to ./configure, the build fails with the following errors:
cc -O2 -g -std=c99 -I/usr/include -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DINET -DARP -DARPING -DIPV4LL -DAUTH -DPLUGIN_DEV -I.. -I../src -I./crypt -c dhcpcd.c -o dhcpcd.o
dhcpcd.c: In function 'warn_iaid_conflict':
dhcpcd.c:788:10: error: 'struct if_ia' has no member named 'ia_type'
if (ia->ia_type == ia_type &&
^~
dhcpcd.c: In function 'dhcpcd_startinterface':
dhcpcd.c:856:22: error: 'struct if_ia' has no member named 'ia_type'
ifp->name, ia->ia_type,
^~
dhcpcd.c:859:31: error: 'struct if_ia' has no member named 'ia_type'
warn_iaid_conflict(ifp, ia->ia_type, ia->iaid);
^~
In src/if-options.h some of the fields of struct if_ia are guarded by #ifdef INET6. I've dropped the configure option
from my build script (actually an rpm .spec file), but I thought you'd want to know about this anyway.
Happy to test any proposed code fix.
Regards,
Chris
Archive administrator: postmaster@marples.name