Re: dhcpcd-7.0.5 FTBFS
Roy Marples
Sun Jun 03 11:22:27 2018
Hi Chris
On 03/06/2018 10:13, Chris Clayton wrote:
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.
Should be fixed here:
https://roy.marples.name/git/dhcpcd.git/commit/?id=f7bca87145419a9988db7d4dfd84bd8777ca1f44
Let me know if that fixes it for you and I'll push out a new release.
Roy
Archive administrator: postmaster@marples.name