[PATCH] error_prints: fix program_invocation_name type conflict

Dmitry V. Levin ldv at altlinux.org
Fri Sep 8 21:55:12 UTC 2017

On Fri, Sep 08, 2017 at 12:12:57PM +0300, Baruch Siach wrote:
> uClibc-ng declares program_invocation_name as const. This causes the
> build failure below:
> error_prints.c:40:14: error: conflicting types for ‘program_invocation_name’
>  extern char *program_invocation_name;
>               ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from error_prints.c:32:0:
> .../output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/errno.h:54:20: note: previous declaration of ‘program_invocation_name’ was here
>  extern const char *program_invocation_name, *program_invocation_short_name;
>                     ^~~~~~~~~~~~~~~~~~~~~~~
> Makefile:3856: recipe for target 'strace-error_prints.o' failed
> Declare program_invocation_name only when the C library does not provide
> one.

Applied, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170909/88545bf2/attachment.bin>

More information about the Strace-devel mailing list