Conflict between getopt.h and kpathsea/getopt.h
Bug #925180 reported by
ojennrich
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dvisvgm |
Invalid
|
Undecided
|
Martin Gieseking |
Bug Description
In KPSFileFinder.cpp:
/usr/include/
./getopt.h:47: error: previous declaration 'int KPS::getopt(int, char* const*, const char*)' here
Shouldn't that be caught by configure?
Changed in dvisvgm: | |
importance: | Undecided → Medium |
assignee: | nobody → Martin Gieseking (martin-gieseking) |
status: | Fix Released → Invalid |
importance: | Medium → Undecided |
To post a comment you must log in.
Logged In: YES
user_id=138565
Originator: NO
I currently can't reproduce this problem. Do you use an old version of kpathsea?
The following part of kpathsea.h should prevent these kind of compilation errors:
#if defined (__STDC__) && __STDC__
#ifdef __GNU_LIBRARY__
/* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */
Maybe you can also provide some more information about your system.