Conflict between getopt.h and kpathsea/getopt.h

Bug #925180 reported by ojennrich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvisvgm
Invalid
Undecided
Martin Gieseking

Bug Description

In KPSFileFinder.cpp:

/usr/include/kpathsea/getopt.h:128: error: declaration of C function 'int KPS::getopt()' conflicts with
./getopt.h:47: error: previous declaration 'int KPS::getopt(int, char* const*, const char*)' here

Shouldn't that be caught by configure?

Revision history for this message
Martin Gieseking (martin-gieseking) wrote :

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.

Revision history for this message
sf-robot (sf-robot-users) wrote :

Logged In: YES
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.