compile error (Arch Linux x86_64, gcc 4.3.2)

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

Bug Description

Hello,

dvisvgm 0.6 did not compile.

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking kpathsea/kpathsea.h usability... yes
checking kpathsea/kpathsea.h presence... yes
checking for kpathsea/kpathsea.h... yes
checking for kpse_find_file in -lkpathsea... yes
checking kpathsea version... "kpathsea version 3.5.7"
checking dvipdfm.map... "kpathsea version 3.5.7"
checking for FT_Init_FreeType in -lfreetype... yes
checking for gzopen in -lz... yes
checking for getopt_long... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether closedir returns void... no
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strcasecmp... yes
checking for strtol... yes
checking for freetype-config... /usr/bin/freetype-config
configure: creating ./config.status
config.status: creating Makefile
config.status: creating potracelib/Makefile
config.status: creating src/Makefile
config.status: creating doc/dvisvgm.1
config.status: creating doc/Makefile
config.status: creating rpm/dvisvgm.spec
config.status: creating rpm/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
patching file src/InputBuffer.h
make all-recursive
make[1]: Entering directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6'
Making all in potracelib
make[2]: Entering directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/potracelib'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/potracelib'
Making all in src
make[2]: Entering directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/freetype2 -I../potracelib -I../../potracelib -Wall -march=x86-64 -mtune=generic -O2 -pipe -MT FontEncoding.o -MD -MP -MF .deps/FontEncoding.Tpo -c -o FontEncoding.o FontEncoding.cpp
In file included from FontEncoding.cpp:25:
InputBuffer.h: In member function »virtual void StringInputBuffer::skip(unsigned int)«:
InputBuffer.h:92: Fehler: keine passende Funktion für Aufruf von »min(unsigned int&, long unsigned int)«
make[2]: *** [FontEncoding.o] Fehler 1
make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/haawda/paketierung/maintained_by_me/dvisvgm/src/dvisvgm-0.6'
make: *** [all] Fehler 2
==> FEHLER: Build fehlgeschlagen.
    Breche ab ...

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

The reason is probably a missing include. Unfortunately, I can't reproduce this bug at the moment.
Please try the attached patch and let me know if it solves this problem.

File Added: p1.patch

Revision history for this message
haawda (haawda) wrote :

No, that patch did not change anything.

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

The file p2.patch was added: None

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

OK, thanks for the feedback. Here is another try. I just read the error message more carefully and probably found the reason. Please apply p2.patch to the original source files (ignore p1.patch). Let me know if it works.

Revision history for this message
haawda (haawda) wrote :

Thanks, that did it! :)

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

Glad to hear that it works now.

Changed in dvisvgm:
importance: Undecided → Medium
assignee: nobody → Martin Gieseking (martin-gieseking)
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.