* busybox-static linking failed
@ 2009-10-28 11:54 Steffen Sledz
2009-10-29 12:07 ` [PATCH 2/2] busybox-1.11.3: undefined reference __cpu_to_be16 fixed for busybox-static Steffen Sledz
2009-10-29 22:29 ` busybox-static linking failed Khem Raj
0 siblings, 2 replies; 5+ messages in thread
From: Steffen Sledz @ 2009-10-28 11:54 UTC (permalink / raw)
To: openembedded-devel; +Cc: mlauer
After a long time i tried to build an initramfs image containing
busybox-static which fails to link (besides some warnings) with these
errors:
/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:189:
undefined reference to `__cpu_to_be16'
/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:190:
undefined reference to `__cpu_to_be16'
/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:202:
undefined reference to `__cpu_to_be16'
/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:214:
undefined reference to `__cpu_to_be16'
/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:224:
undefined reference to `__cpu_to_be16'
networking/libiproute/lib.a(iptunnel.o):/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:225:
more undefined references to `__cpu_to_be16' follow
This is really obscure for me because i can't identify the code lines
responsible for them. :(
Steffen
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] busybox-1.11.3: undefined reference __cpu_to_be16 fixed for busybox-static
2009-10-28 11:54 busybox-static linking failed Steffen Sledz
@ 2009-10-29 12:07 ` Steffen Sledz
2009-10-29 22:29 ` busybox-static linking failed Khem Raj
1 sibling, 0 replies; 5+ messages in thread
From: Steffen Sledz @ 2009-10-29 12:07 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
---
recipes/busybox/busybox-1.11.3/iptunnel.patch | 11 +++++++++++
recipes/busybox/busybox.inc | 2 +-
recipes/busybox/busybox_1.11.3.bb | 1 +
3 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 recipes/busybox/busybox-1.11.3/iptunnel.patch
diff --git a/recipes/busybox/busybox-1.11.3/iptunnel.patch b/recipes/busybox/busybox-1.11.3/iptunnel.patch
new file mode 100644
index 0000000..18734fc
--- /dev/null
+++ b/recipes/busybox/busybox-1.11.3/iptunnel.patch
@@ -0,0 +1,11 @@
+diff -Nurd busybox-1.11.3.orig//networking/libiproute/iptunnel.c busybox-1.11.3/networking/libiproute/iptunnel.c
+--- busybox-1.11.3.orig//networking/libiproute/iptunnel.c 2009-10-29 12:49:58.000000000 +0100
++++ busybox-1.11.3/networking/libiproute/iptunnel.c 2009-10-29 12:50:33.000000000 +0100
+@@ -21,6 +21,7 @@
+ #ifndef __constant_htons
+ #define __constant_htons htons
+ #endif
++#include <asm/byteorder.h>
+ #include <linux/if_tunnel.h>
+
+ #include "ip_common.h" /* #include "libbb.h" is inside */
diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc
index 0ff65a4..753b402 100644
--- a/recipes/busybox/busybox.inc
+++ b/recipes/busybox/busybox.inc
@@ -11,7 +11,7 @@ LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
-INC_PR = "r22"
+INC_PR = "r23"
SRC_URI = "\
http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
diff --git a/recipes/busybox/busybox_1.11.3.bb b/recipes/busybox/busybox_1.11.3.bb
index 293608b..0ec753f 100644
--- a/recipes/busybox/busybox_1.11.3.bb
+++ b/recipes/busybox/busybox_1.11.3.bb
@@ -7,6 +7,7 @@ SRC_URI = "\
file://udhcpscript.patch;patch=1 \
file://B921600.patch;patch=1 \
file://fdisk_lineedit_segfault.patch;patch=1 \
+ file://iptunnel.patch;patch=1 \
file://busybox-appletlib-dependency.patch;patch=1 \
file://busybox-cron \
file://busybox-httpd \
--
1.6.4.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: busybox-static linking failed
2009-10-28 11:54 busybox-static linking failed Steffen Sledz
2009-10-29 12:07 ` [PATCH 2/2] busybox-1.11.3: undefined reference __cpu_to_be16 fixed for busybox-static Steffen Sledz
@ 2009-10-29 22:29 ` Khem Raj
2009-10-30 15:28 ` Steffen Sledz
1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2009-10-29 22:29 UTC (permalink / raw)
To: openembedded-devel; +Cc: mlauer
On Wed, Oct 28, 2009 at 4:54 AM, Steffen Sledz <sledz@dresearch.de> wrote:
> After a long time i tried to build an initramfs image containing
> busybox-static which fails to link (besides some warnings) with these
> errors:
>
> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:189:
> undefined reference to `__cpu_to_be16'
> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:190:
> undefined reference to `__cpu_to_be16'
> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:202:
> undefined reference to `__cpu_to_be16'
> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:214:
> undefined reference to `__cpu_to_be16'
> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:224:
> undefined reference to `__cpu_to_be16'
> networking/libiproute/lib.a(iptunnel.o):/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:225:
> more undefined references to `__cpu_to_be16' follow
>
> This is really obscure for me because i can't identify the code lines
> responsible for them. :(
you need this kernel patch here
http://lkml.org/lkml/2009/6/18/223
>
> Steffen
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: busybox-static linking failed
2009-10-29 22:29 ` busybox-static linking failed Khem Raj
@ 2009-10-30 15:28 ` Steffen Sledz
2009-10-30 20:05 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Sledz @ 2009-10-30 15:28 UTC (permalink / raw)
To: openembedded-devel
On 10/29/2009 11:29 PM, Khem Raj wrote:
>> After a long time i tried to build an initramfs image containing
>> busybox-static which fails to link (besides some warnings) with these
>> errors:
>>
>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:189:
>> undefined reference to `__cpu_to_be16'
>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:190:
>> undefined reference to `__cpu_to_be16'
>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:202:
>> undefined reference to `__cpu_to_be16'
>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:214:
>> undefined reference to `__cpu_to_be16'
>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:224:
>> undefined reference to `__cpu_to_be16'
>> networking/libiproute/lib.a(iptunnel.o):/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:225:
>> more undefined references to `__cpu_to_be16' follow
>>
>> This is really obscure for me because i can't identify the code lines
>> responsible for them. :(
>
> you need this kernel patch here
> http://lkml.org/lkml/2009/6/18/223
This fixes the missing include inside the kernel. My patch suggestion
adds the missing include inside busybox. I would prefer the kernel
patch. Any objections?
Steffen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: busybox-static linking failed
2009-10-30 15:28 ` Steffen Sledz
@ 2009-10-30 20:05 ` Khem Raj
0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2009-10-30 20:05 UTC (permalink / raw)
To: openembedded-devel
On Fri, Oct 30, 2009 at 8:28 AM, Steffen Sledz <sledz@dresearch.de> wrote:
> On 10/29/2009 11:29 PM, Khem Raj wrote:
>>> After a long time i tried to build an initramfs image containing
>>> busybox-static which fails to link (besides some warnings) with these
>>> errors:
>>>
>>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:189:
>>> undefined reference to `__cpu_to_be16'
>>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:190:
>>> undefined reference to `__cpu_to_be16'
>>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:202:
>>> undefined reference to `__cpu_to_be16'
>>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:214:
>>> undefined reference to `__cpu_to_be16'
>>> /home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:224:
>>> undefined reference to `__cpu_to_be16'
>>> networking/libiproute/lib.a(iptunnel.o):/home/OE/tmp.3/work/armv5te-angstrom-linux-gnueabi/busybox-static-1.11.3-r22.1/busybox-1.11.3/networking/libiproute/iptunnel.c:225:
>>> more undefined references to `__cpu_to_be16' follow
>>>
>>> This is really obscure for me because i can't identify the code lines
>>> responsible for them. :(
>>
>> you need this kernel patch here
>> http://lkml.org/lkml/2009/6/18/223
>
> This fixes the missing include inside the kernel. My patch suggestion
> adds the missing include inside busybox. I would prefer the kernel
> patch. Any objections?
This patch have not been applied in kernel upstream yet. So it would
be nice to get
an idea if this will be pushed upstream or not. Otherwise patching
busybox will be
right thing to do. May be you can ping the author of kernel patch to
retry to push
it
Thanks
-Khem
>
> Steffen
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-30 20:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 11:54 busybox-static linking failed Steffen Sledz
2009-10-29 12:07 ` [PATCH 2/2] busybox-1.11.3: undefined reference __cpu_to_be16 fixed for busybox-static Steffen Sledz
2009-10-29 22:29 ` busybox-static linking failed Khem Raj
2009-10-30 15:28 ` Steffen Sledz
2009-10-30 20:05 ` Khem Raj
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.