build failure

Asked by Rdtennent

On Centos-6.5 with texlive installed I get:

make[2]: Entering directory `/home/rdt/src/dvisvgm-1.5.2/src'
g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wnon-virtual-dtor -g -O2 -I/usr/include/freetype2 -MT FileFinder.o -MD -MP -MF .deps/FileFinder.Tpo -c -o FileFinder.o FileFinder.cpp
In file included from /usr/include/kpathsea/config.h:79,
                 from /usr/include/kpathsea/kpathsea.h:3,
                 from FileFinder.cpp:31:
/usr/include/kpathsea/c-std.h:100: error: declaration of C function 'FILE* popen()' conflicts with
/usr/include/stdio.h:868: error: previous declaration 'FILE* popen(const char*, const char*)' here
/usr/include/kpathsea/c-std.h:101: error: declaration of C function 'int pclose()' conflicts with
/usr/include/stdio.h:874: error: previous declaration 'int pclose(FILE*)' here
make[2]: *** [FileFinder.o] Error 1

What's wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
dvisvgm Edit question
Assignee:
Martin Gieseking Edit question
Solved by:
Martin Gieseking
Solved:
Last query:
Last reply:
Revision history for this message
Martin Gieseking (martin-gieseking) said :
#1

As far as I know, Centos 6 provides packages for TeX Live 2007 only. The corresponding kpathsea library is too old and no longer compatible with the latest releases of dvisvgm.

Revision history for this message
Rdtennent (rdtennent) said :
#2

Is it not possible to configure the build to use the texlive kpathsea?

Revision history for this message
Martin Gieseking (martin-gieseking) said :
#3

I had to apply a couple of changes to stay compatible with the kpathsea library of the recent TeX Live releases (>= 2010). As a result, older kapathea versions are no longer supported. As I have only limited resources to work on dvisvgm, I have to drop older stuff from time to time and can't provide support for rather old TeX environments. Sorry.

Revision history for this message
Rdtennent (rdtennent) said :
#4

My texlive is up-to-date (2013). I only installed the texlive-kpathsea-2007 package because the configure script insisted on it.

Revision history for this message
Best Martin Gieseking (martin-gieseking) said :
#5

OK, that's an important information. You should not mix the kpathsea libraries of different TeX Live versions. Even if dvisvgm linked against the old 2007 library, the resulting binary probably wouldn't work. You must ensure that dvisvgm is linked against the kpathsea library that comes with your TeX environment (TeX Live 2013 in your case). I don't know if TeX Live provides the development files (.h and .so files) for libkpathsea and if yes, where they are located. I think, the experts on the TeX Live mailing list can help you with this.

Revision history for this message
Rdtennent (rdtennent) said :
#6

Texlive doesn't provide the development files in a normal install but these are available from the subversion repository. Thanks.

Revision history for this message
Rdtennent (rdtennent) said :
#7

Thanks Martin Gieseking, that solved my question.