Xonotic Forums
[NEEDS INFO] build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [NEEDS INFO] build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... (/showthread.php?tid=1190)



build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - alegro - 11-10-2010

Blubb

compiling on gentoo failed - here is the build.log:

* Package: games-fps/xonotic-9999
* Repository: alexxy
* Maintainer: games@gentoo.org
* USE: alsa elibc_glibc kernel_linux opengl sdl userland_GNU x86 zip
* You need 1,5 Gb diskspace for distfiles.
* Checking for at least 2650MBytes disk space at /var/tmp/portage/games-fps/xonotic-9999/temp ... [ ok ]
* Checking for at least 910MBytes disk space at //usr ... [ ok ]
>>> Unpacking source...
* GIT update -->
* repository: git://git.xonotic.org/xonotic/xonotic.git
* at the commit: 262e724c13a5abf95a51b3bd031ba8f19218a774
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/xonotic"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
* GIT update -->
* repository: git://git.xonotic.org/xonotic/darkplaces.git
* at the commit: 49c1abd374824b3c6265769ff2336feca39d53b7
* commit: master
* branch: div0-stable
* storage directory: "/usr/portage/distfiles/git-src/darkplaces"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces
* GIT update -->
* repository: git://github.com/Blub/qclib.git
* at the commit: 9c5d3e1a0a8be1896dfd7ab3378312f32f544c30
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/qclib"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/fteqcc...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/fteqcc
* GIT update -->
* repository: git://git.xonotic.org/xonotic/xonotic-data.pk3dir.git
* at the commit: c445450d257558c3426fc87a1d95fab4d03ce0a9
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/xonotic-data.pk3dir"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-data.pk3dir...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-data.pk3dir
* GIT update -->
* repository: git://git.xonotic.org/xonotic/xonotic-maps.pk3dir.git
* at the commit: 10a36a89cd83dc04237e00d5b048bb1ecb0205bd
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/xonotic-maps.pk3dir"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-maps.pk3dir...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-maps.pk3dir
* GIT update -->
* repository: git://git.xonotic.org/xonotic/xonotic-music.pk3dir.git
* at the commit: 0ac08d818f3bd49f04ab5b36c18d615b978fceba
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/xonotic-music.pk3dir"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-music.pk3dir...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-music.pk3dir
* GIT update -->
* repository: git://git.xonotic.org/xonotic/xonotic-nexcompat.pk3dir.git
* at the commit: 65f20d1c7cc56b0dd15a7b630b495956d51941c5
* branch: master
* storage directory: "/usr/portage/distfiles/git-src/xonotic-nexcompat.pk3dir"
Cloning into /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-nexcompat.pk3dir...
done.
>>> Unpacked to /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/data/xonotic-nexcompat.pk3dir
>>> Source unpacked in /var/tmp/portage/games-fps/xonotic-9999/work
>>> Preparing source in /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999 ...
/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
`nexuiz.ico' -> `xonotic.ico'
`nexuiz.rc' -> `xonotic.rc'
`nexuiz.xpm' -> `xonotic.xpm'
/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/fteqcc /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999 ...
/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces /var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999
make -j3 cl-release DP_LINK_TO_LIBJPEG=1 DP_FS_BASEDIR=/usr/share/games/xonotic
make bin-release \
DP_MAKE_TARGET=linux DP_SOUND_API=ALSA \
EXE="xonotic-glx" LDFLAGS_COMMON="-lm `[ -n "" ] && "/../bin/ode-config" --libs` `[ -n "" ] && echo -lstdc++` `[ -n "" ] && echo \ -lCg\ -lCgGL -lGL` -ljpeg `[ -n "" ] && echo \ /libd0_blind_id.a\ /libgmp.a` `[ -n "" ] && echo \ /libd0_rijndael.a` -Wl,-O1 -Wl,--as-needed -lrt -ldl -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86dga -lXxf86vm -lasound `[ -n "" ] && echo \ /libmodplug.a\ -lstdc++`" LEVEL=1
make[1]: Entering directory `/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces'

========== xonotic-glx (release) ==========
make xonotic-glx \
DP_MAKE_TARGET=linux DP_SOUND_API=ALSA \
CFLAGS="-MMD -DDP_FS_BASEDIR='\"/usr/share/games/xonotic\"' `[ -n "" ] && echo \ -DSUPPORTCG` -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -DLINK_TO_LIBJPEG -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math"\
LDFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -DSVNREVISION=`test -d .svn && svnversion || echo -` -DBUILDTYPE=release -lm -ljpeg -Wl,-O1 -Wl,--as-needed -lrt -ldl -L/usr/X11R6/lib -lX11 -lXpm -lXext -lXxf86dga -lXxf86vm -lasound " LEVEL=2
make[2]: Entering directory `/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces'
i686-pc-linux-gnu-gcc -MMD -DDP_FS_BASEDIR='"/usr/share/games/xonotic"' -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -DLINK_TO_LIBJPEG -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -c sys_linux.c -o sys_linux.o
i686-pc-linux-gnu-gcc -MMD -DDP_FS_BASEDIR='"/usr/share/games/xonotic"' -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -DLINK_TO_LIBJPEG -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -c vid_glx.c -o vid_glx.o -I/usr/X11R6/include
i686-pc-linux-gnu-gcc -MMD -DDP_FS_BASEDIR='"/usr/share/games/xonotic"' -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -DLINK_TO_LIBJPEG -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -c keysym2ucs.c -o keysym2ucs.o -I/usr/X11R6/include
ICECC[21379] 02:05:51: no response from local daemon within timeout.
ICECC[21378] 02:05:51: no response from local daemon within timeout.
i686-pc-linux-gnu-gcc -MMD -DDP_FS_BASEDIR='"/usr/share/games/xonotic"' -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -DLINK_TO_LIBJPEG -march=prescott -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fno-trapping-math -c snd_main.c -o snd_main.o
In file included from quakedef.h:370,
from sys_linux.c:15:
common.h:255: error: redeclaration of enumerator ‘GAME_XONOTIC’
common.h:254: error: previous definition of ‘GAME_XONOTIC’ was here
make[2]: *** [sys_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from quakedef.h:370,
from snd_main.c:22:
common.h:255: error: redeclaration of enumerator ‘GAME_XONOTIC’
common.h:254: error: previous definition of ‘GAME_XONOTIC’ was here
make[2]: *** [snd_main.o] Error 1
In file included from quakedef.h:370,
from vid_glx.c:30:
common.h:255: error: redeclaration of enumerator ‘GAME_XONOTIC’
common.h:254: error: previous definition of ‘GAME_XONOTIC’ was here
In file included from vid_glx.c:38:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future."
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead."
make[2]: *** [vid_glx.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces'
make[1]: *** [bin-release] Error 2
make[1]: Leaving directory `/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999/darkplaces'
make: *** [cl-release] Error 2
emake failed
* ERROR: games-fps/xonotic-9999 failed:
* emake cl-release DP_LINK_TO_LIBJPEG=1 DP_FS_BASEDIR=/usr/share/games/xonotic failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3052: Called die
* The specific snippet of code:
* emake cl-${ENGINEOPTS} || die "emake cl-${ENGINEOPTS} failed";
*
* If you need support, post the output of 'emerge --info =games-fps/xonotic-9999',
* the complete build log and the output of 'emerge -pqv =games-fps/xonotic-9999'.
* This ebuild is from an overlay named 'alexxy': '/var/lib/layman/alexxy/'
* The complete build log is located at '/var/tmp/portage/games-fps/xonotic-9999/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-fps/xonotic-9999/temp/environment'.
* S: '/var/tmp/portage/games-fps/xonotic-9999/work/xonotic-9999'

wrong day? major changes?

my fault?

...

any idea?


RE: build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - divVerent - 11-11-2010

Likely a bug in the ebuild, as GAME_XONOTIC is only defined once in the file on div0-stable. Does the ebuild apply any patches?

In my copy of the code, line 254 declares GAME_NEXUIZ, not GAME_XONOTIC.


RE: build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - alegro - 11-11-2010

Quote:Likely a bug in the ebuild, as GAME_XONOTIC is only defined once in the file on div0-stable. Does the ebuild apply any patches?

nope...

I am using the ebuild from the alexxy overlay.....

[...snap...]

http://gentoo-overlays.zugaina.org/alexxy/portage/games-fps/xonotic/xonotic-9999.ebuild


RE: build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - alegro - 11-12-2010

*bump*

Quote:In my copy of the code, line 254 declares GAME_NEXUIZ, not GAME_XONOTIC.
got the lates checkout from the git-repository - rev is: 262e724c13a5abf95a51b3bd031ba8f19218a774

does anybody compiled xonotic on gentoo successfully?


RE: build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - Nikoli - 01-17-2011

The problem was solved 2011-01-02, now d0_blind_id, fteqcc-xonotic and xonotic build and run fine on stable amd64 with gcc 4.4.4.
Also they build fine with llvm-2.8-r2 + clang-2.8-r3, but I did not test client.

https://bugs.gentoo.org/324159 is for reporting problems with xonotic ebuilds, only packages from gamerlay are supported.


RE: build games-fps/xonotic-9999 - redeclaration of enumerator, xf86dga.h is obsolete... - Nikoli - 01-31-2011

http://forums.xonotic.org/showthread.php?tid=1540