Bug 2026

Summary: busybox build failed after enable CONFIG_TCPSVD
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Zhenhua Luo <zhenhua.luo>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: VERIFIED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, jessica.zhang, josh, msm-oss, poky.bs.watcher, poky.watcher, sgw
Version: 1.1.2   
Target Milestone: 1.1.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Full build logs
none
busybox config to show error
none
busybox-fix-the-build-error-when-enable-CONFIG_TCPSVD.patch
none
recipes of busybox none

Description Zhenhua Luo 2012-02-23 23:36:39 UTC
Created attachment 337 [details]
Full build logs

busybox build failed after enable CONFIG_TCPSVD.

Logs:
  ccache powerpc-fsl-linux-gcc  -m32 -mhard-float  -mcpu=e500mc --sysroot=/local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/sysroots/p4080ds -Wp,-MD,networking/.tcpudp.o.d   -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.18.5)" -DBB_BT=AUTOCONF_TIMESTAMP  -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types   -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(tcpudp)"  -D"KBUILD_MODNAME=KBUILD_STR(tcpudp)" -c -o networking/tcpudp.o networking/tcpudp.c
In file included from /local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/sysroots/p4080ds/usr/include/linux/sysctl.h:25:0,
                 from /local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/sysroots/p4080ds/usr/include/linux/netfilter.h:6,
                 from /local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/sysroots/p4080ds/usr/include/linux/netfilter_ipv4.h:8,
                 from networking/tcpudp.c:37:
/local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/sysroots/p4080ds/usr/include/linux/kernel.h:12:8: error: redefinition of 'struct sysinfo'
include/libbb.h:105:8: note: originally defined here
make[1]: *** [networking/tcpudp.o] Error 1
make[1]: Leaving directory `/local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/work/ppce500mc-fsl-linux/busybox-1.18.5-r2/busybox-1.18.5'
make: *** [networking] Error 2
ERROR: oe_runmake failed
ERROR: Function 'do_compile' failed (see /local/home/b19537/workspace/sdk-devel/build_p4080ds_release/tmp/work/ppce500mc-fsl-linux/busybox-1.18.5-r2/temp/log.do_compile.10540 for further information)
Comment 1 Matthew McClintock 2012-02-24 07:57:48 UTC
Zhenhua, please reference the upstream packages that fixed this.

-M
Comment 2 Matthew McClintock 2012-02-24 08:01:29 UTC
(In reply to comment #1)
> Zhenhua, please reference the upstream packages that fixed this.
> 
> -M

Not upstream packages but rather upstream patches...
Comment 3 Matthew McClintock 2012-03-06 18:52:25 UTC
changed to 1.1.2 since this is fixed upstream and fixed in 1.2 release already
Comment 4 Joshua Lock - Disabled 2012-05-08 20:49:44 UTC
I'm guessing this patch: http://git.busybox.net/busybox/commit/?id=67905e2d7c6ee273b753af22fb22de0ebec918c1 ?
Comment 5 Joshua Lock - Disabled 2012-05-08 21:34:40 UTC
I can't reproduce this building busybox with CONFIG_TCPSVD=y in my busybox recipe when building for either qemuppc or the mpc8315e-rdb.conf, both of which use the 3.0 variant of the linux-yocto kernel.

Can you provide some reproducer steps for this?
Comment 6 Matthew McClintock 2012-05-16 20:42:35 UTC
Created attachment 515 [details]
busybox config to show error

If something will show it this will be it...
Comment 7 Joshua Lock - Disabled 2012-05-17 23:00:30 UTC
With that defconfig I get a failure at do_install, which I would expect from changing the defconfig, but not the compilation failure noted.

Is this using a different virtual/kernel and linux-libc-headers than we use in the poky distro config?

It'd be useful to get target MACHINE, any extra layers, etc for reproduction.
Comment 8 Matthew McClintock 2012-05-24 02:32:12 UTC
(In reply to comment #7)
> With that defconfig I get a failure at do_install, which I would expect from
> changing the defconfig, but not the compilation failure noted.
> 
> Is this using a different virtual/kernel and linux-libc-headers than we use
> in the poky distro config?
> 
> It'd be useful to get target MACHINE, any extra layers, etc for reproduction.

We are using our own kernel... our own layer... perhaps we should have Zhenhua supply the information we initially requested... which patch fixes this and why?

-M
Comment 9 Zhenhua Luo 2012-05-24 02:47:03 UTC
Created attachment 528 [details]
busybox-fix-the-build-error-when-enable-CONFIG_TCPSVD.patch
Comment 10 Zhenhua Luo 2012-05-24 02:48:06 UTC
Created attachment 529 [details]
recipes of busybox
Comment 11 Zhenhua Luo 2012-05-24 02:48:31 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > With that defconfig I get a failure at do_install, which I would expect from
> > changing the defconfig, but not the compilation failure noted.
> > 
> > Is this using a different virtual/kernel and linux-libc-headers than we use
> > in the poky distro config?
> > 
> > It'd be useful to get target MACHINE, any extra layers, etc for reproduction.
> 
> We are using our own kernel... our own layer... perhaps we should have
> Zhenhua supply the information we initially requested... which patch fixes
> this and why?
> 
> -M

Following is some information for the issue:
1. Version of busybox: busybox_1.18.5
2. Issue: busybox build failed after enabling CONFIG_TCPSVD

The original recipes(busybox.tar.gz) and fix patch(busybox-fix-the-build-error-when-enable-CONFIG_TCPSVD.patch) are attached. 

Hope this is helpful.
Comment 12 Alexandru Georgescu 2012-08-16 11:23:00 UTC
Hi Joshua,
Are there any updates regarding this issue?

Thanks,
Alex.
Comment 13 Matthew McClintock 2012-08-16 15:43:16 UTC
(In reply to comment #12)
> Hi Joshua,
> Are there any updates regarding this issue?
> 
> Thanks,
> Alex.

It's seems like this was never applied to the edison release.

-M
Comment 14 Jessica 2013-03-07 16:11:28 UTC
This is against an old release that we no longer support, please open new bugs against latest releases if the issue still exist
Comment 15 Alexandru Georgescu 2013-03-07 16:52:03 UTC
Verified as per Jessica's last comment