bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple definition of error_print_progname with gcc 10.1.0


From: Vignesh Drv
Subject: Multiple definition of error_print_progname with gcc 10.1.0
Date: Mon, 13 Dec 2021 19:38:23 +0530

Hi,

I am getting the following error when compiling gettext v0.21 with gcc 10.1.0.

.libs/clean-temp.o:(.bss+0x0): multiple definition of `error_print_progname'
.libs/argmatch.o:(.bss+0x0): first defined here
.libs/closeout.o:(.bss+0x0): multiple definition of `error_print_progname'
gettext-0.21/gettext-tools/gnulib-lib/argmatch.c:61: first defined here
.libs/copy-file.o:(.bss+0x0): multiple definition of `error_print_progname'
gettext-0.21/gettext-tools/gnulib-lib/argmatch.c:61: first defined here
.libs/csharpcomp.o:(.bss+0x0): multiple definition of `error_print_progname'
gettext-0.21/gettext-tools/gnulib-lib/argmatch.c:61: first defined here
.libs/csharpexec.o:(.bss+0x0): multiple definition of `error_print_progname'
gettext-0.21/gettext-tools/gnulib-lib/argmatch.c:61: first defined here
.libs/execute.o:(.bss+0x0): multiple definition of `error_print_progname'
gettext-0.21/gettext-tools/gnulib-lib/argmatch.c:61: first defined here

I could realize the issue is because of the gcc now passes -fno-common
So in the below link there is define of the symbol and the error.h is included in many places which causes the issue.

https://github.com/cooljeanius/gettext/blob/master/gnulib-local/lib/error.h.diff
https://github.com/autotools-mirror/gettext/commit/6e1d0603cd3522b8e44b7bdb2bd58be7f0c6ef71

Please suggest a way to move forward.

Thanks
Vignesh R

reply via email to

[Prev in Thread] Current Thread [Next in Thread]