All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] dhcpcd build fails
@ 2017-01-04  6:55 Prasant J
  2017-01-04 13:32 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Prasant J @ 2017-01-04  6:55 UTC (permalink / raw)
  To: buildroot

Hi,



I'm trying to build my rootfs from buildroot for my Analog Devices board.
"dhcpcd" package fails to build. Below are the details:



>>> dhcpcd 6.6.7 Building
PATH="/WORK/build-repo/sc58x-dev/buildroot/output/host/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/sbin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/analog/cces-linux-add-in/1.1.0/ARM/arm-linux-gnueabi/bin:/opt/analog/cces/2.3.0/ARM/arm-none-eabi/bin"
/usr/bin/make -j1 -C
/WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7 all
make[1]: Entering directory
`/WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7'
/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin/arm-linux-gnueabi-gcc
 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
-std=c99  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_XOPEN_SOURCE=700
-D_DEFAULT_SOURCE -DINET -DINET6 -I./crypt -c dhcpcd.c -o dhcpcd.o
In file included from
/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/sys/socket.h:38:0,
                 from dhcpcd.c:33:
ipv6.h:154:41: error: invalid application of ?sizeof? to incomplete
type ?struct in6_pktinfo?
  unsigned char sndbuf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
                                         ^
ipv6.h:146:38: error: invalid application of ?sizeof? to incomplete
type ?struct in6_pktinfo?
 #define IP6BUFLEN (CMSG_SPACE(sizeof(struct in6_pktinfo)) + \
                                      ^
ipv6.h:157:23: note: in expansion of macro ?IP6BUFLEN?
  unsigned char rcvbuf[IP6BUFLEN];
                       ^
make[1]: *** [dhcpcd.o] Error 1
make[1]: Leaving directory
`/WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7'



struct in6_pktinfo is defined in linux/ipv6.h
(output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/linux/ipv6.h)
and that seems to be included in ipv6.h if "-D__linux__ &&
-D__GLIBC__" are used. I tried including both in config.mk but the
error persists.



Any inputs on how to fix this?



Regards, Pj

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dhcpcd build fails
  2017-01-04  6:55 [Buildroot] dhcpcd build fails Prasant J
@ 2017-01-04 13:32 ` Peter Korsgaard
  2017-01-05  6:18   ` Prasant J
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2017-01-04 13:32 UTC (permalink / raw)
  To: buildroot

>>>>> "Prasant" == Prasant J <pj0585@gmail.com> writes:

 > Hi,
 > I'm trying to build my rootfs from buildroot for my Analog Devices board.
 > "dhcpcd" package fails to build. Below are the details:



 >>>> dhcpcd 6.6.7 Building
 > PATH="/WORK/build-repo/sc58x-dev/buildroot/output/host/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/sbin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/analog/cces-linux-add-in/1.1.0/ARM/arm-linux-gnueabi/bin:/opt/analog/cces/2.3.0/ARM/arm-none-eabi/bin"
 > /usr/bin/make -j1 -C
 > /WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7 all
 > make[1]: Entering directory
 > `/WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7'
 > /WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin/arm-linux-gnueabi-gcc
 >  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
 > -std=c99  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 > -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_XOPEN_SOURCE=700
 > -D_DEFAULT_SOURCE -DINET -DINET6 -I./crypt -c dhcpcd.c -o dhcpcd.o
 > In file included from
 > /WORK/build-repo/sc58x-dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/sys/socket.h:38:0,
 >                  from dhcpcd.c:33:
 > ipv6.h:154:41: error: invalid application of ?sizeof? to incomplete
 > type ?struct in6_pktinfo?

It sounds like your toolchain doesn't have IPv6 support. Please provide
more details. What Buildroot version are you using and what is your
.config?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dhcpcd build fails
  2017-01-04 13:32 ` Peter Korsgaard
@ 2017-01-05  6:18   ` Prasant J
  2017-01-05  7:45     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Prasant J @ 2017-01-05  6:18 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 4, 2017 at 7:02 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "Prasant" == Prasant J <pj0585@gmail.com> writes:
>
>  > Hi,
>  > I'm trying to build my rootfs from buildroot for my Analog Devices board.
>  > "dhcpcd" package fails to build. Below are the details:
>
>
>
>  >>>> dhcpcd 6.6.7 Building
>  > PATH="/WORK/build-repo/sc58x-dev/buildroot/output/host/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/sbin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin:/WORK/build-repo/sc58x-dev/buildroot/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/analog/cces-linux-add-in/1.1.0/ARM/arm-linux-gnueabi/bin:/opt/analog/cces/2.3.0/ARM/arm-none-eabi/bin"
>  > /usr/bin/make -j1 -C
>  > /WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7 all
>  > make[1]: Entering directory
>  > `/WORK/build-repo/sc58x-dev/buildroot/output/build/dhcpcd-6.6.7'
>  > /WORK/build-repo/sc58x-dev/buildroot/output/host/usr/bin/arm-linux-gnueabi-gcc
>  >  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
>  > -std=c99  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>  > -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_XOPEN_SOURCE=700
>  > -D_DEFAULT_SOURCE -DINET -DINET6 -I./crypt -c dhcpcd.c -o dhcpcd.o
>  > In file included from
>  > /WORK/build-repo/sc58x-dev/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/sys/socket.h:38:0,
>  >                  from dhcpcd.c:33:
>  > ipv6.h:154:41: error: invalid application of ?sizeof? to incomplete
>  > type ?struct in6_pktinfo?
>
> It sounds like your toolchain doesn't have IPv6 support. Please provide
> more details. What Buildroot version are you using and what is your
> .config?
>
> --
> Bye, Peter Korsgaard


Hi Peter,

Thanks for your response.

I'm using Buildroot 2015.02 (This is released by Analog Devices)

This patch has fixed the issue:
https://patchwork.ozlabs.org/patch/465743/



Regards, Pj

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dhcpcd build fails
  2017-01-05  6:18   ` Prasant J
@ 2017-01-05  7:45     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-01-05  7:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Prasant" == Prasant J <pj0585@gmail.com> writes:

Hi,

 >> It sounds like your toolchain doesn't have IPv6 support. Please provide
 >> more details. What Buildroot version are you using and what is your
 >> .config?

 > Hi Peter,

 > Thanks for your response.

 > I'm using Buildroot 2015.02 (This is released by Analog Devices)

 > This patch has fixed the issue:
 > https://patchwork.ozlabs.org/patch/465743/

Yes, we have fixed a LOT of issues during the last two years. Please try
to get Analog Devices to update their Buildroot version - Or if they
haven't made a lot of changes, consider moving to mainline 2016.11.1
Buildroot.

If you cannot do that and have other issues, please check the git
history of the failed package to see if the issue has already been fixed
in git before asking on the list.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-05  7:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04  6:55 [Buildroot] dhcpcd build fails Prasant J
2017-01-04 13:32 ` Peter Korsgaard
2017-01-05  6:18   ` Prasant J
2017-01-05  7:45     ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.