wont compile because #include guard resued

Bug #1258781 reported by V F
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dvisvgm
Fix Released
Medium
Martin Gieseking

Bug Description

The #include guard FONTMAP_H is used both in dvisvgm/src/FontMap.h and kpathsea/fontmap.h. Thatswhy FileFinder.cpp won't compile under linux (it can't see the definition of FontMap::Entry). I have changed it to DIVSVGM_FONTMAP_H, and it works now.

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

Thanks for reporting this issue. However, I can't reproduce it. The sources compile fine on all Linux systems I've tested so far. After grepping through the kpathsea headers, I couldn't find a header file that includes kpathsea/fontmap.h. They are only used by the kpathsea C files. Thus, there shouldn't be a conflict.
What Linux system do you use and what version of kpathsea is installed there?

Changed in dvisvgm:
assignee: nobody → Martin Gieseking (martin-gieseking)
importance: Undecided → Medium
Revision history for this message
V F (trivia21) wrote :

I'm on Ubuntu 12.04, I have installed kpathsea through Synaptic.
Package name: libkpathsea-dev
Version: 2009-11ubuntu2

I downloaded dvisvgm sources from the download page (http://dvisvgm.sourceforge.net/Downloads), so not using the latest commit, could it be the problem?

dvisvgm-1.5.1/src/FileFinder.cpp includes <kpathsea/kpathsea.h> (/usr/include/kpathsea/kpathsea.h), which does have an

#include <kpathsea/fontmap.h>

line on my system.

Changed in dvisvgm:
status: New → Fix Released
Changed in dvisvgm:
milestone: none → 1.5.2
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.