This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Build issues on Freescale P4080


On Wed, 2011-03-16 at 09:24 +0000, Kumar Ranjit-B04060 wrote:
> make[2]: Entering directory `/home/user/ranjitk/elfutils-0.152/lib'
> gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/local/share/locale"' -I. -I.. -I. -I. -I../lib -I.. -I./../libelf   -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2   -fpic -O2 -MT xstrndup.o -MD -MP -MF .deps/xstrndup.Tpo -c -o xstrndup.o xstrndup.c
> make[2]: Leaving directory `/home/user/ranjitk/elfutils-0.152/lib'
> make[1]: Leaving directory `/home/user/ranjitk/elfutils-0.152'
> In file included from xstrndup.c:30:0:
> In file included from xstrndup.c:30:0:
> /usr/include/string.h:549:5: error: expected declaration specifiers or '...' before '__locale_t'
> /usr/include/string.h:550:6: error: nonnull argument with out-of-range operand number (argument 1, operand 3)
> /usr/include/string.h:553:18: error: expected declaration specifiers or '...' before '__locale_t'
> /usr/include/string.h:554:6: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
> cc1: warnings being treated as errors
> xstrndup.c: In function 'xstrndup':
> xstrndup.c:41:3: error: implicit declaration of function 'strnlen'
> make[2]: *** [xstrndup.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

That is somewhat strange. It is as if your setup doesn't pick up
xlocale.h (which defines __locale_t). Maybe there is something bad with
your install?

Does the following compile?

$ cat > x.c << EOF
> #define _GNU_SOURCE
> #include <string.h>
> EOF
$ gcc -c x.c



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]