From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] alsa-utils_1.0.20.bb: Fix build when DISTRO_FEATURES lacks largefile.
Date: Tue, 30 Nov 2010 12:02:24 +1030 [thread overview]
Message-ID: <4CF45428.5030503@gmail.com> (raw)
mipsel-oe-linux-uclibc-gcc -march=mips32 -DHAVE_CONFIG_H -I. -I../include -I../include -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -I/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -MT aplay.o -MD -MP -MF .deps/aplay.Tpo -c -o aplay.o aplay.c
aplay.c:116:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbrec_count'
aplay.c: In function 'test_wavefile':
aplay.c:877:14: error: 'pbrec_count' undeclared (first use in this function)
aplay.c:877:14: note: each undeclared identifier is reported only once for each function it appears in
aplay.c: In function 'test_au':
aplay.c:908:2: error: 'pbrec_count' undeclared (first use in this function)
aplay.c: In function 'voc_play':
aplay.c:1751:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:1751:10: error: expected ';' before 'filepos'
aplay.c:1881:9: error: 'filepos' undeclared (first use in this function)
aplay.c: At top level:
aplay.c:1968:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'calc_count'
aplay.c: In function 'end_voc':
aplay.c:2137:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:2137:10: error: expected ';' before 'length_seek'
aplay.c:2146:2: error: 'length_seek' undeclared (first use in this function)
aplay.c:2150:8: error: 'fdcount' undeclared (first use in this function)
aplay.c: In function 'end_wave':
aplay.c:2166:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:2166:10: error: expected ';' before 'length_seek'
aplay.c:2167:10: error: expected ';' before 'filelen'
aplay.c:2170:2: error: 'length_seek' undeclared (first use in this function)
aplay.c:2174:14: error: 'fdcount' undeclared (first use in this function)
aplay.c:2175:2: error: 'filelen' undeclared (first use in this function)
aplay.c: In function 'end_au':
aplay.c:2188:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:2188:10: error: expected ';' before 'length_seek'
aplay.c:2190:2: error: 'length_seek' undeclared (first use in this function)
aplay.c:2191:17: error: 'fdcount' undeclared (first use in this function)
aplay.c: At top level:
aplay.c:2221:48: error: expected declaration specifiers or '...' before 'off64_t'
aplay.c: In function 'playback_go':
aplay.c:2224:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:2224:10: error: expected ';' before 'written'
aplay.c:2225:10: error: expected ';' before 'c'
aplay.c:2230:33: error: 'written' undeclared (first use in this function)
aplay.c:2230:43: error: 'count' undeclared (first use in this function)
aplay.c:2242:4: error: 'c' undeclared (first use in this function)
aplay.c:2254:4: error: 'fdcount' undeclared (first use in this function)
aplay.c: In function 'playback':
aplay.c:2283:2: error: 'pbrec_count' undeclared (first use in this function)
aplay.c:2284:2: error: 'fdcount' undeclared (first use in this function)
aplay.c:2303:3: warning: passing argument 4 of 'playback_go' makes pointer from integer without a cast
aplay.c:2221:13: note: expected 'char *' but argument is of type 'int'
aplay.c:2303:3: error: too many arguments to function 'playback_go'
aplay.c:2221:13: note: declared here
aplay.c:2320:3: warning: passing argument 4 of 'playback_go' makes pointer from integer without a cast
aplay.c:2221:13: note: expected 'char *' but argument is of type 'int'
aplay.c:2320:3: error: too many arguments to function 'playback_go'
aplay.c:2221:13: note: declared here
aplay.c:2325:3: error: too many arguments to function 'playback_go'
aplay.c:2221:13: note: declared here
aplay.c: In function 'capture':
aplay.c:2376:2: error: 'off64_t' undeclared (first use in this function)
aplay.c:2376:10: error: expected ';' before 'count'
aplay.c:2379:2: error: 'count' undeclared (first use in this function)
aplay.c:2424:3: error: 'rest' undeclared (first use in this function)
aplay.c:2433:3: error: 'fdcount' undeclared (first use in this function)
aplay.c:2435:33: error: expected ')' before 'chunk_bytes'
aplay.c: At top level:
aplay.c:2461:74: error: expected declaration specifiers or '...' before 'off64_t'
aplay.c: In function 'playbackv_go':
aplay.c:2480:9: error: 'count' undeclared (first use in this function)
aplay.c: At top level:
aplay.c:2513:58: error: expected declaration specifiers or '...' before 'off64_t'
aplay.c: In function 'capturev_go':
aplay.c:2529:9: error: 'count' undeclared (first use in this function)
aplay.c:2546:3: error: 'fdcount' undeclared (first use in this function)
aplay.c: In function 'playbackv':
aplay.c:2587:2: error: 'pbrec_count' undeclared (first use in this function)
aplay.c:2588:2: error: too many arguments to function 'playbackv_go'
aplay.c:2461:13: note: declared here
aplay.c: In function 'capturev':
aplay.c:2640:2: error: 'pbrec_count' undeclared (first use in this function)
aplay.c:2641:2: error: too many arguments to function 'capturev_go'
aplay.c:2513:13: note: declared here
make[1]: *** [aplay.o] Error 1
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/alsa/alsa-utils-1.0.20/nolargefile.patch | 24 ++++++++++++++++++++++
recipes/alsa/alsa-utils_1.0.20.bb | 3 +-
2 files changed, 26 insertions(+), 1 deletions(-)
create mode 100644 recipes/alsa/alsa-utils-1.0.20/nolargefile.patch
diff --git a/recipes/alsa/alsa-utils-1.0.20/nolargefile.patch b/recipes/alsa/alsa-utils-1.0.20/nolargefile.patch
new file mode 100644
index 0000000..b32b509
--- /dev/null
+++ b/recipes/alsa/alsa-utils-1.0.20/nolargefile.patch
@@ -0,0 +1,24 @@
+--- alsa-utils-1.0.20/aplay/aplay.c.orig 2010-11-30 11:45:41.000000000 +1030
++++ alsa-utils-1.0.20/aplay/aplay.c 2010-11-30 11:55:57.000000000 +1030
+@@ -51,6 +51,21 @@
+ #include "formats.h"
+ #include "version.h"
+
++#ifndef __USE_LARGEFILE64
++#include <stdint.h>
++typedef uint64_t off64_t;
++off64_t
++lseek64(int fd, off64_t offset, int whence)
++{
++ if (offset >= (1 << ((sizeof(off_t)*8) - 1))) {
++ errno = EOVERFLOW;
++ return -1;
++ }
++ return lseek(fd, (off_t) offset, whence);
++}
++#define open64 open
++#endif
++
+ #ifndef LLONG_MAX
+ #define LLONG_MAX 9223372036854775807LL
+ #endif
diff --git a/recipes/alsa/alsa-utils_1.0.20.bb b/recipes/alsa/alsa-utils_1.0.20.bb
index ee0467e..74e9d13 100644
--- a/recipes/alsa/alsa-utils_1.0.20.bb
+++ b/recipes/alsa/alsa-utils_1.0.20.bb
@@ -3,10 +3,11 @@ HOMEPAGE = "http://www.alsa-project.org"
SECTION = "console/utils"
LICENSE = "GPLv2"
DEPENDS = "alsa-lib ncurses"
-PR = "r4"
+PR = "r5"
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
file://alsa-utils-remove-xmlto-1.0.19plus.patch \
+ file://nolargefile.patch \
"
inherit gettext autotools
--
1.7.1
reply other threads:[~2010-11-30 1:33 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=4CF45428.5030503@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 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.