From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] syslog-ng.inc: Fix build when DISTRO_FEATURES lacks largefile and/or ipv6.
Date: Tue, 30 Nov 2010 17:06:57 +1030 [thread overview]
Message-ID: <4CF49B89.5070808@gmail.com> (raw)
In file included from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/limits.h:27:0,
from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/glib-2.0/include/glibconfig.h:11,
from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib/gtypes.h:34,
from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib/galloca.h:34,
from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/glib-2.0/glib.h:32,
from syslog-ng.h:37,
from misc.h:27,
from misc.c:24:
/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/features.h:216:5: error: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled.
| afinet.c: In function 'afinet_setup_socket':
| afinet.c:205:42: error: 'IPV6_JOIN_GROUP' undeclared (first use in this function)
| afinet.c:205:42: note: each undeclared identifier is reported only once for each function it appears in
| afinet.c:206:42: error: 'IPV6_MULTICAST_LOOP' undeclared (first use in this function)
| afinet.c:211:44: error: 'IPV6_MULTICAST_HOPS' undeclared (first use in this function)
| afinet.c:217:40: error: 'IPV6_UNICAST_HOPS' undeclared (first use in this function)
| afinet.c: In function 'afinet_dd_construct_ipv6_packet':
| afinet.c:448:36: warning: dereferencing type-punned pointer will break strict-aliasing rules
| afinet.c:449:36: warning: dereferencing type-punned pointer will break strict-aliasing rules
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/syslog-ng/syslog-ng.inc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/recipes/syslog-ng/syslog-ng.inc b/recipes/syslog-ng/syslog-ng.inc
index f12791d..452dd78 100644
--- a/recipes/syslog-ng/syslog-ng.inc
+++ b/recipes/syslog-ng/syslog-ng.inc
@@ -10,7 +10,12 @@ INC_PR = "r4"
inherit autotools
-EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"
+noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6', d)}"
+EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking ${noipv6}"
+
+do_configure_prepend() {
+ eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}"
+}
do_install_append() {
install -d ${D}/${sysconfdir}/${PN}
--
1.7.1
reply other threads:[~2010-11-30 6:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4CF49B89.5070808@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox