All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/7] busybox: add fix for build issue with recent C libraries
Date: Sun, 28 Oct 2012 17:40:34 +0100	[thread overview]
Message-ID: <1351442438-20639-5-git-send-email-thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <1351442438-20639-1-git-send-email-thomas.petazzoni@free-electrons.com>

The AArch64 toolchain uses a recent C library, which requires a build
fix in Busybox, which has been sent upstream but hasn't been merged
yet.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 .../busybox-1.20.2-fix-resource-h-failure.patch    |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/busybox/busybox-1.20.2/busybox-1.20.2-fix-resource-h-failure.patch

diff --git a/package/busybox/busybox-1.20.2/busybox-1.20.2-fix-resource-h-failure.patch b/package/busybox/busybox-1.20.2/busybox-1.20.2-fix-resource-h-failure.patch
new file mode 100644
index 0000000..7667640
--- /dev/null
+++ b/package/busybox/busybox-1.20.2/busybox-1.20.2-fix-resource-h-failure.patch
@@ -0,0 +1,30 @@
+On a system running glibc trunk busybox doesn't compile:
+
+loginutils/passwd.c: In function ?passwd_main?:
+loginutils/passwd.c:104:16: error: storage size of ?rlimit_fsize? isn?t known
+loginutils/passwd.c:188:2: warning: implicit declaration of function ?setrlimit? [-Wimplicit-function-declaration]
+loginutils/passwd.c:188:12: error: ?RLIMIT_FSIZE? undeclared (first use in this function)
+loginutils/passwd.c:188:12: note: each undeclared identifier is reported only once for each function it appears in
+loginutils/passwd.c:104:16: warning: unused variable ?rlimit_fsize? [-Wunused-variable]
+...
+miscutils/time.c:23:16: error: field ?ru? has incomplete type
+
+Fix this by including sys/resource.h.
+
+Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
+---
+ include/libbb.h |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/libbb.h b/include/libbb.h
+index f12800f..e7806c2 100644
+--- a/include/libbb.h
++++ b/include/libbb.h
+@@ -40,6 +40,7 @@
+ #include <sys/poll.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
++#include <sys/resource.h>
+ #include <sys/socket.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
-- 
1.7.9.5

  parent reply	other threads:[~2012-10-28 16:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 16:40 [Buildroot] Add basic support for the AArch64 architecture Thomas Petazzoni
2012-10-28 16:40 ` [Buildroot] [PATCH 1/7] Add AArch64 to the list of architectures Thomas Petazzoni
2012-10-28 16:40 ` [Buildroot] [PATCH 2/7] toolchain-external: add aarch64 external toolchain Thomas Petazzoni
2012-10-28 16:40 ` [Buildroot] [PATCH 3/7] toolchain: make external toolchain the default for AArch64 Thomas Petazzoni
2012-10-28 16:40 ` Thomas Petazzoni [this message]
2012-10-28 16:40 ` [Buildroot] [PATCH 5/7] Support KERNEL_ARCH " Thomas Petazzoni
2012-10-28 16:40 ` [Buildroot] [PATCH 6/7] boot-wrapper-aarch64: new package Thomas Petazzoni
2012-10-28 16:40 ` [Buildroot] [PATCH 7/7] Add default configuration for the AArch64 Foundation V8 simulator Thomas Petazzoni
2017-01-27 19:09 ` [Buildroot] Add basic support for the AArch64 architecture gbarry
2017-01-27 19:31   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1351442438-20639-5-git-send-email-thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.