]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
elfutils: fix build failure with musl
authorMingli Yu <Mingli.Yu@windriver.com>
Tue, 16 Apr 2019 08:05:01 +0000 (16:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Apr 2019 22:30:19 +0000 (23:30 +0100)
commita5dd314fba9e0571ab9af81d6f91c48d8ebfd14a
treee4cf8cff46c8815d378c1967c2a8dfbca9c4a9ee
parent073556fa8c6e95ebd1cd97d5226b8b9e743fe4e0
elfutils: fix build failure with musl

Fix below build failure with musl when ptest
enabled.
| In file included from ../../elfutils-0.176/tests/dwfl-proc-attach.c:33:
| ../../elfutils-0.176/lib/system.h:63:35: error: called object 'err' is not a function or function pointer
|  #define error(status, errno, ...) err(status, __VA_ARGS__)
|                                    ^~~
| ../../elfutils-0.176/tests/dwfl-proc-attach.c:92:5: note: in expansion of macro 'error'
|      error (-1, 0, "dwfl_linux_proc_attach pid %d: %s", pid,
|      ^~~~~
| ../../elfutils-0.176/tests/dwfl-proc-attach.c:79:7: note: declared here
|    int err;
|        ^~~

The root cause is because the conflicts between
vairable and function name, so change the variable
name to workaround it.

(From OE-Core rev: 48dbb1bd980f7ed17a612fa7c1be298f14955c3f)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils_0.176.bb
meta/recipes-devtools/elfutils/files/0001-fix-err-variable-and-function-conflicts.patch [new file with mode: 0644]