[Pkg-octave-devel] Bug#455452: FTBFS with GCC 4.3: #define redefined

Martin Michlmayr tbm at cyrius.com
Mon Dec 10 04:40:35 UTC 2007


Package: octplot
Version: 0.4.0-4
Usertags: ftbfs-gcc-4.3

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  GCC 4.3 has converted a number
of warnings into errors.  With GCC 4.3, you're no longer to
just redefine a previous #define.  You need to either avoid
redefinitions directly or to use #ifndef to make sure that something
has not been defined already.  See
http://www.cyrius.com/journal/gcc/gcc-4.3-pedwarn.html

You can reproduce this problem with gcc-snapshot from unstable.  Note
that Red Hat, Novell and Ubuntu have done some work getting packages
to build with GCC 4.3 so there might be patches floating around
somewhere.  I suggest you talk to your upstream.

> Automatic build of octplot_0.4.0-4 on em64t by sbuild/amd64 0.53
...
> g++  -I/usr/include/freetype2 -g -Wall -O2 -fPIC   -o octplot  -lfreetype -lz octplot-axes.o gl2ps.o octplot-prop_bool.o octplot-prop_string.o octplot-caselessless.o octplot-line.o octplot-prop_color.o octplot-object.o octplot-prop_handle.o octplot-root.o octplot-figure.o octplot-octplot_main.o octplot-prop_matrix.o octplot-socketcom.o octplot-figurewindow.o octplot-octplotapp.o octplot-prop_radio.o octplot-text.o octplot-ftglfontmanager.o octplot-op_com.o octplot-prop_scalar.o octplot-util.o octplot-line_plotter.o octplot-patch.o octplot-mathutils.o octplot-surface.o octplot-legend.o octplot-ticks.o octplot-prop_colorradio.o octplot-FTGLExtrdFont.o octplot-FTOutlineGlyph.o octplot-FTBitmapGlyph.o octplot-FTGLOutlineFont.o octplot-FTPixmapGlyph.o octplot-FTCharmap.o octplot-FTGLPixmapFont.o octplot-FTPoint.o octplot-FTContour.o octplot-FTGLPolygonFont.o octplot-FTPolyGlyph.o octplot-FTExtrdGlyph.o octplot-FTGLTextureFont.o octplot-FTSize.o octplot-FTFace.o octplot-FTGlyph.o octplot-FTTextureGlyph.o octplot-FTFont.o octplot-FTGlyphContainer.o octplot-FTVectoriser.o octplot-FTLibrary.o octplot-FTGLBitmapFont.o  /usr/lib/libfltk.a /usr/lib/libfltk_gl.a -lfltk_gl -lfltk -lGLU -lGL  -lm -lfreetype -lz
> mkoctfile -v -c octplot_command.cc
> /usr/bin/g++ -c -fPIC -I/usr/include/octave-2.9.17 -I/usr/include/octave-2.9.17/octave -O2 octplot_command.cc -o octplot_command.o
> In file included from octplot_command.cc:37:
> ../config.h:71:1: error: "PACKAGE_NAME" redefined
> In file included from /usr/include/octave-2.9.17/octave/oct.h:31,
>                  from octplot_command.cc:18:
> /usr/include/octave-2.9.17/octave/config.h:820:1: error: this is the location of the previous definition
> In file included from octplot_command.cc:37:
> ../config.h:74:1: error: "PACKAGE_STRING" redefined
> In file included from /usr/include/octave-2.9.17/octave/oct.h:31,
>                  from octplot_command.cc:18:
> /usr/include/octave-2.9.17/octave/config.h:823:1: error: this is the location of the previous definition
> In file included from octplot_command.cc:37:
> ../config.h:77:1: error: "PACKAGE_TARNAME" redefined
> In file included from /usr/include/octave-2.9.17/octave/oct.h:31,
>                  from octplot_command.cc:18:
> /usr/include/octave-2.9.17/octave/config.h:826:1: error: this is the location of the previous definition
> In file included from octplot_command.cc:37:
> ../config.h:80:1: error: "PACKAGE_VERSION" redefined
> In file included from /usr/include/octave-2.9.17/octave/oct.h:31,
>                  from octplot_command.cc:18:
> /usr/include/octave-2.9.17/octave/config.h:829:1: error: this is the location of the previous definition
> make[3]: *** [octplot_command.o] Error 1
> make[3]: Leaving directory `/build/tbm/octplot-0.4.0/src'
> make[2]: *** [all-recursive] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-octave-devel mailing list