Summary: | dev-libs/dmalloc-5.5.2-r5 - In file included from /usr/include/string.h:634:0, from arg_check.c:33: dmalloc.h:484:7: error: expected identifier or ‘(’ before ‘__extension__’ (strndup) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | [OLD] Development | Assignee: | Jeroen Roovers (RETIRED) <jer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 528456 | ||
Attachments: | emerge log |
Description
Toralf Förster
2015-01-05 12:53:17 UTC
Please attach the entire build log to this bug report. I guess this is because of sys-libs/glibc-2.20. Does CFLAGS=-D_GNU_SOURCE change anything? Created attachment 393364 [details]
emerge log
(In reply to Jeroen Roovers from comment #2) > I guess this is because of sys-libs/glibc-2.20. Does CFLAGS=-D_GNU_SOURCE > change anything? not really I fear : ... mv dmalloc.h.t dmalloc.h rm -f arg_check.o x86_64-pc-linux-gnu-gcc -O2 -pipe -D_GNU_SOURCE -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_W32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0 -DHAVE_SIGNAL_H=1 -I. -I. -c arg_check.c -o ./arg_check.o In file included from /usr/include/string.h:634:0, from arg_check.c:33: dmalloc.h:484:7: error: expected identifier or ‘(’ before ‘__extension__’ char *strndup(const char *string, const DMALLOC_SIZE len); It should work with -D_XOPEN_SOURCE. Should be fixed in -r6. *** Bug 545056 has been marked as a duplicate of this bug. *** |