[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #37423] Duplicate definition of program_name in test-canonicalize
From: |
anonymous |
Subject: |
[bug #37423] Duplicate definition of program_name in test-canonicalize |
Date: |
Sat, 22 Sep 2012 12:17:24 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:15.0) Gecko/20100101 Firefox/15.0.1 |
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: address@hidden
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/
- [bug #37423] Duplicate definition of program_name in test-canonicalize,
anonymous <=