[Mondo-devel] mindi-busybox 1.21.1 build failure

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] mindi-busybox 1.21.1 build failure

brent s.
Pardon if I'm late to the game here- mindi-busybox is still being
maintained/supported, correct?

If so, I'm doing this:

  cd "${srcdir}/${pkgname}-${pkgver}"
  make oldconfig || return 1
  make busybox || return 1
  make CONFIG_PREFIX=${pkgdir}/usr/lib/mindi/rootfs install

As part of a package for Arch Linux (I maintain the AUR package[0]). The
variables map as follows (in my particular build instance) after
expansion to their real values:

srcdir = /opt/dev/arch/mindi-busybox/src
pkgname = mindi-busybox
pkgver = 1.21.1
pkgdir = /opt/dev/arch/mindi-busybox/src/mindi-busybox



It seems to get relatively far into the build. However, it then dies
with the following:

.....
  CC      networking/udhcp/arpping.o
  CC      networking/udhcp/common.o
  CC      networking/udhcp/dhcpc.o
In file included from /usr/include/sys/socket.h:38:0,
                 from /usr/include/netinet/in.h:23,
                 from /usr/include/netdb.h:27,
                 from include/libbb.h:20,
                 from networking/udhcp/common.h:11,
                 from networking/udhcp/dhcpc.c:24:
networking/udhcp/dhcpc.c: In function ‘udhcp_recv_raw_packet’:
networking/udhcp/dhcpc.c:846:40: error: invalid application of ‘sizeof’
to incomplete type ‘struct tpacket_auxdata’
  unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))];
                                        ^
networking/udhcp/dhcpc.c:928:11: error: dereferencing pointer to
incomplete type ‘struct tpacket_auxdata’
    if (aux->tp_status & TP_STATUS_CSUMNOTREADY)
           ^~
networking/udhcp/dhcpc.c:928:25: error: ‘TP_STATUS_CSUMNOTREADY’
undeclared (first use in this function)
    if (aux->tp_status & TP_STATUS_CSUMNOTREADY)
                         ^~~~~~~~~~~~~~~~~~~~~~
networking/udhcp/dhcpc.c:928:25: note: each undeclared identifier is
reported only once for each function it appears in
networking/udhcp/dhcpc.c:846:16: warning: unused variable ‘cmsgbuf’
[-Wunused-variable]
  unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))];
                ^~~~~~~
make[1]: *** [scripts/Makefile.build:198: networking/udhcp/dhcpc.o] Error 1
make: *** [Makefile:741: networking/udhcp] Error 2



Is this a known issue? Is there any fix if so?

[bts@cylon mindi-busybox]$ gcc --version
gcc (GCC) 6.2.1 20160830

[bts@cylon mindi-busybox]$ uname -a
Linux cylon 4.8.8-1-ARCH #1 SMP PREEMPT Tue Nov 15 08:25:24 CET 2016
x86_64 GNU/Linux

glibc version 2.42

Let me know if you need any other information.
(I should note that Arch uses a full systemd stack- I doubt it's
relevant, but I figure every little bit of detail helps.)


[0] https://aur.archlinux.org/packages/mindi-busybox/

--
brent saner
https://www.square-r00t.net


------------------------------------------------------------------------------

_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

signature.asc (883 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] mindi-busybox 1.21.1 build failure

Bruno Cornec-4
Hello brent,

brent s. said on Mon, Nov 21, 2016 at 03:19:45AM -0500:
>Pardon if I'm late to the game here- mindi-busybox is still being
>maintained/supported, correct?

Yes. When time permits !

>It seems to get relatively far into the build. However, it then dies
>with the following:
>
>  unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))];
>                                        ^
>Is this a known issue? Is there any fix if so?

Yes. I have the same issue on latest fedora and ubuntu e.g. Working on it. May require to move to a new vesion.

>[0] https://aur.archlinux.org/packages/mindi-busybox/

Note that you'd also need some additional perl deps to have the full stack working (ProjectBuilder and MondoRescue perl modules)

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

signature.asc (180 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] mindi-busybox 1.21.1 build failure

brent s.
On 12/20/2016 06:48 AM, Bruno Cornec wrote:
>> It seems to get relatively far into the build. However, it then dies
>> with the following:
>>
>>  unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))];
>>                                        ^
>> Is this a known issue? Is there any fix if so?
>
> Yes. I have the same issue on latest fedora and ubuntu e.g. Working on
> it. May require to move to a new vesion.

Ah, thank you very much. I'll keep watch on the list to see if there's
any updates!

>
>> [0] https://aur.archlinux.org/packages/mindi-busybox/
>
> Note that you'd also need some additional perl deps to have the full
> stack working (ProjectBuilder and MondoRescue perl modules)
>
> Bruno.
>

Oooh, thank you so much! I'll add those in.

--
brent saner
https://www.square-r00t.net


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

signature.asc (915 bytes) Download Attachment
Loading...