Source: graphviz
Version: 2.38.0-18
Severity: serious

Recently, while rebuilding a bunch of packages in a chroot without
pbuilder, I discovered the following build failure in graphviz:

...
Making all in gs
make[4]: Entering directory '/build/graphviz-2.38.0/plugin/gs'
/bin/bash ../../libtool  --tag=CC   --mode=compile
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common
-I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc
-I../../lib/cgraph -I../../lib/cdt  -I/us
r/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/li
bpng16 -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2
-fdebug-prefix-map=/build/graphviz-2.38.0=. -fstack-protector-strong
-Wformat -Werror=format-security  -Wno-unknown-pragmas
-Wstrict-prototypes -Wpointer-arith -Wall -ffast-math
-MT gvplugin_gs.lo -MD -MP -MF .deps/gvplugin_gs.Tpo -c -o
gvplugin_gs.lo gvplugin_gs.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..
-I../../lib/common -I../.. -I../../lib/common -I../../lib/pathplan
-I../../lib/gvc -I../../lib/cgraph -I../../lib/cdt
-I/usr/include/pango-1.0 -I/usr/include
/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng16 -Wdate-time -D_FORTIFY_SOUR
CE=2 -g -O2 -fdebug-prefix-map=/build/graphviz-2.38.0=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall
-ffast-math -MT gvplugin_gs.lo -MD -MP -MF .deps
/gvplugin_gs.Tpo -c gvplugin_gs.c  -fPIC -DPIC -o .libs/gvplugin_gs.o
mv -f .deps/gvplugin_gs.Tpo .deps/gvplugin_gs.Plo
/bin/bash ../../libtool  --tag=CC   --mode=compile
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common
-I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc
-I../../lib/cgraph -I../../lib/cdt  -I/us
r/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/li
bpng16 -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2
-fdebug-prefix-map=/build/graphviz-2.38.0=. -fstack-protector-strong
-Wformat -Werror=format-security  -Wno-unknown-pragmas
-Wstrict-prototypes -Wpointer-arith -Wall -ffast-math
-MT gvloadimage_gs.lo -MD -MP -MF .deps/gvloadimage_gs.Tpo -c -o
gvloadimage_gs.lo gvloadimage_gs.c
libtool: compile:  x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..
-I../../lib/common -I../.. -I../../lib/common -I../../lib/pathplan
-I../../lib/gvc -I../../lib/cgraph -I../../lib/cdt
-I/usr/include/pango-1.0 -I/usr/include
/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng16 -Wdate-time -D_FORTIFY_SOUR
CE=2 -g -O2 -fdebug-prefix-map=/build/graphviz-2.38.0=.
-fstack-protector-strong -Wformat -Werror=format-security
-Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall
-ffast-math -MT gvloadimage_gs.lo -MD -MP -MF .d
eps/gvloadimage_gs.Tpo -c gvloadimage_gs.c  -fPIC -DPIC -o
.libs/gvloadimage_gs.o
gvloadimage_gs.c: In function 'gs_error':
gvloadimage_gs.c:75:16: error: 'e_VMerror' undeclared (first use in
this function); did you mean 'gs_error'?
    if (err >= e_VMerror)
               ^~~~~~~~~
               gs_error
gvloadimage_gs.c:75:16: note: each undeclared identifier is reported
only once for each function it appears in
gvloadimage_gs.c:77:21: error: 'e_unregistered' undeclared (first use
in this function); did you mean 'register_t'?
    else if (err >= e_unregistered)
                    ^~~~~~~~~~~~~~
                    register_t
gvloadimage_gs.c:79:21: error: 'e_invalidid' undeclared (first use in
this function); did you mean 'gs_error_invalidid'?
    else if (err >= e_invalidid)
                    ^~~~~~~~~~~
                    gs_error_invalidid
Makefile:750: recipe for target 'gvloadimage_gs.lo' failed
make[4]: *** [gvloadimage_gs.lo] Error 1
make[4]: Leaving directory '/build/graphviz-2.38.0/plugin/gs'
Makefile:592: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/build/graphviz-2.38.0/plugin'
Makefile:833: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/build/graphviz-2.38.0'
Makefile:645: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/build/graphviz-2.38.0'
debian/rules:100: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

I have subsequently been able to reproduce it with "pbuilder build
graphviz_2.38.0-18.dsc --extrapackages libgs-dev".

Fortunately, it appears that just adding "--without-ghostscript" to
the configure command line in debian/rules will be sufficient to fix
this, so no need for an ugly Build-Conflicts.
-- 
Daniel Schepler

Reply via email to