URL: <http://savannah.gnu.org/bugs/?37423>
Summary: Duplicate definition of program_name in test-canonicalize Project: findutils Submitted by: None Submitted on: Sat 22 Sep 2012 12:17:23 PM UTC Category: None Severity: 3 - Normal Item Group: Compilation Failure Status: None Privacy: Public Assigned to: None Originator Name: Originator Email: m...@debian.org Open/Closed: Open Discussion Lock: Any Release: 4.4.2 Fixed Release: None _______________________________________________________ Details: Hi, While compiling your package using our research compiler infrastructure we notice the following conflicting initialisations: - gnulib/lib/progname.c:const char *program_name = NULL; - tests/test-canonicalize.c:const char *program_name = "test-canonicalize"; The actual value of program_name is thus undefined as the linker is free to choose either. According to the comments in progname.c, the proper code for test-canonicalize.c would be to 1. declare proggram_name extern 2. set its value in main() Best, Michael _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37423> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/