[GtkGLExt] gtkglext 1.2.0 fails to compile



Hi there!

I'm trying to build Celestia, and it seems that one of the requirements is gtkglext.
Anyhow, I got the 1.2.0 tarball from sourceforge, and used the followin flags to configure the sources:

./configure --prefix=/usr

Nothing out of the ordinary..but the make fails even after  a successful configure:

./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... vector:/~/software/src/gtkglext-1.2.0
easuter:$ ./configure --prefix=/usr && make
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for indent... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.10.3)
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.8.20)
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking gdk/gdkdisplay.h usability... yes
checking gdk/gdkdisplay.h presence... yes
checking for gdk/gdkdisplay.h... yes
checking gdk/gdkscreen.h usability... yes
checking gdk/gdkscreen.h presence... yes
checking for gdk/gdkscreen.h... yes
checking for gdk_display_get_default in GDK library... yes
configure: GDK supports multihead
checking for gdk_x11_colormap_foreign_new... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/Xmu/StdCmap.h... yes
checking for Xmu/StdCmap.h... no
checking for XmuLookupStandardColormap in -lXmu... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glVertex3d in -lGLcore... no
checking for glVertex3d in -lGL... yes
checking for gluSphere in -lGLU... yes
checking for gluBeginCurve in -lGLU... yes
checking whether libGLU needs to be linked with the std C++ library... no
checking for GLXFBConfigSGIX... yes
checking for GLXFBConfigIDSGIX... no
checking for GLXPbufferSGIX... no
checking for GLXVideoSourceSGIX... no
checking for __GLXextFuncPtr... no
checking for GLhalfNV... yes
configure: creating ./config.status
config.status: creating gdkglext.pc
config.status: creating gtkglext.pc
config.status: creating gdkglext-uninstalled.pc
config.status: creating gtkglext-uninstalled.pc
config.status: creating gtkglext.spec
config.status: creating gtkglext.nsi
config.status: creating Makefile
config.status: creating gdk/Makefile
config.status : creating gdk/gdkglversion.h
config.status: creating gdk/glext/Makefile
config.status: creating gdk/x11/Makefile
config.status: creating gdk/win32/Makefile
config.status: creating gtk/Makefile
config.status : creating gtk/gtkglversion.h
config.status: creating m4macros/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/gtkglext/Makefile
config.status: creating docs/reference/gtkglext/version.xml
config.status: creating examples/Makefile
config.status: creating examples/glade/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing gdk/gdkglext-config.h commands

configuration:
        OpenGL CFLAGS:
        OpenGL LIBS:             -lGLU -lGL
        multihead support:      yes
        debug:                  minimum
        extra defs:

make  all-recursive
make[1]: Entering directory `/home/easuter/software/src/gtkglext-1.2.0'
Making all in gdk
make[2]: Entering directory `/home/easuter/software/src/gtkglext-1.2.0 /gdk'
( cd . && glib-mkenums \
                        --fhead "#ifndef __GDK_GL_ENUM_TYPES_H__\n#define __GDK_GL_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
                        --fprod "/* enumerations from \"@filename \" */\n" \
                        --vhead "GType @enum_name _get_type (void);\n#define GDK_TYPE_ ENUMSHORT@ (@enum_name _get_type())\n" \
                        --ftail "G_END_DECLS\n\n#endif /* __GDK_GL_ENUM_TYPES_H__ */" \
                gdkgl.h gdkgldefs.h gdkglversion.h gdkgltokens.h gdkgltypes.h gdkglinit.h gdkglquery.h gdkglconfig.h gdkglcontext.h gdkgldrawable.h gdkglpixmap.h gdkglwindow.h gdkglfont.h gdkglshapes.h gdkglglext.h ) >> xgen-geth \
        && (cmp -s xgen-geth ./gdkglenumtypes.h || cp xgen-geth ./gdkglenumtypes.h ) \
        && rm -f xgen-geth \
        && echo timestamp > stamp-gdkglenumtypes-h
( cd . && glib-mkenums \
                        --fhead "#include \"gdkgl.h\"" \
                        --fprod "\n/* enumerations from \"@filename \" */" \
                        --vhead " GType\n enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G Type@Value values[] = {" \
                        --vprod "      { @VALUENAME@, \"@VALUENAME \", \"@valuenick \" }," \
                        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_ type@_register_static (\"@EnumName \", values);\n  }\n  return etype;\n}\n" \
                gdkgl.h gdkgldefs.h gdkglversion.h gdkgltokens.h gdkgltypes.h gdkglinit.h gdkglquery.h gdkglconfig.h gdkglcontext.h gdkgldrawable.h gdkglpixmap.h gdkglwindow.h gdkglfont.h gdkglshapes.h gdkglglext.h ) > xgen-getc \
        && cp xgen-getc ./gdkglenumtypes.c  \
        && rm -f xgen-getc
make  all-recursive
make[3]: Entering directory `/home/easuter/software/src/gtkglext-1.2.0/gdk'
Making all in glext
make[4]: Entering directory `/home/easuter/software/src/gtkglext- 1.2.0/gdk/glext'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/easuter/software/src/gtkglext-1.2.0/gdk/glext'Making all in x11
make[4]: Entering directory `/home/easuter/software/src/gtkglext- 1.2.0/gdk/x11'
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"GdkGLExt\" -DGDK_GL_COMPILATION -DINSIDE_GDK_GL_X11 -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -I/usr/X11R6/include -I/usr/include/gtk- 2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12    -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED    -O2 -mtune=i686 -march=i586 -Wall -MT gdkglquery-x11.lo -MD -MP -MF ".deps/gdkglquery-x11.Tpo" \
          -c -o gdkglquery-x11.lo `test -f 'gdkglquery-x11.c' || echo './'`gdkglquery-x11.c; \
        then mv -f ".deps/gdkglquery- x11.Tpo" ".deps/gdkglquery-x11.Plo"; \
        else rm -f ".deps/gdkglquery-x11.Tpo"; exit 1; \
        fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"GdkGLExt\" -DGDK_GL_COMPILATION -DINSIDE_GDK_GL_X11 -I../.. -I../../gdk -I../../gdk -DG_DISABLE_CAST_CHECKS -I/usr/X11R6/include -I/usr/include/gtk- 2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -mtune=i686 -march=i586 -Wall -MT gdkglquery-x11.lo -MD -MP -MF .deps/gdkglquery-x11.Tpo -c gdkglquery-x11.c  -fPIC -DPIC -o .libs/gdkglquery-x11.o
In file included from ../../gdk/x11/gdkglglxext.h:96,
                 from gdkglx.h:30,
                 from gdkglquery-x11.c:27:
../../gdk/glext/glxext.h:295: error: redefinition of typedef 'GLXFBConfigSGIX'
/usr/X11R6/include/GL/glx.h:52: error: previous declaration of 'GLXFBConfigSGIX' was here
make[4]: *** [ gdkglquery-x11.lo] Error 1
make[4]: Leaving directory `/home/easuter/software/src/gtkglext-1.2.0/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/easuter/software/src/gtkglext-1.2.0 /gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/easuter/software/src/gtkglext-1.2.0/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/easuter/software/src/gtkglext- 1.2.0'
make: *** [all] Error 2


I can't seem to find anything using Google that matches my problem exactly.
I have tried upgrading to the latest gtk version (2.10.6 i think), but still get the same error.

any help is much appreciated!

Regards,

Eugéne


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]