Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83434 - adonthell doesn't compile
Summary: adonthell doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-26 22:21 UTC by Freyr Gunnar Ólafsson
Modified: 2005-03-12 23:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Freyr Gunnar Ólafsson 2005-02-26 22:21:01 UTC
there are several build errors.

Reproducible: Always
Steps to Reproduce:
1. emerge adonthell

Actual Results:  
                 from win_event.h:18,
                 from win_base.h:29,
                 from win_container.h:19,
                 from win_object.h:19,
                 from win_label.h:18,
                 from text_bubble.h:31,
                 from mapcharacter.h:38,
                 from landmap.h:28,
                 from path.cc:26:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/i686-pc-linux-gnu/bits/os_defines.h:39,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/i686-pc-linux-gnu/bits/c++config.h:35,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/bits/stl_algobase.h:64,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/list:67,
                 from mapsquare.h:29,
                 from path.h:28,
                 from path.cc:25:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition
source='pnm.cc' object='pnm.o' libtool=no \
depfile='.deps/pnm.Po' tmpdepfile='.deps/pnm.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -I/usr/include/SDL
-D_REENTRANT  -I/usr/include/python2.3 -DPY_DEBUG  -g -Wall -fno-exceptions
-DSWIG_GLOBAL -DDATA_DIR="\"/usr/share/games/adonthell\""  -c -o pnm.o `test -f
'pnm.cc' || echo './'`pnm.cc
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/i686-pc-linux-gnu/bits/c++locale.h:46,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/iosfwd:46,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/bits/stl_algobase.h:70,
                 from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/bits/char_traits.h:46,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3/string:47,
                 from prefs.h:25,
                 from nls.h:25,
                 from nls.cc:28:
/usr/include/libintl.h:40: error: expected unqualified-id before "const"
/usr/include/libintl.h:40: error: expected `)' before "const"
/usr/include/libintl.h:40: error: expected `)' before "const"
/usr/include/libintl.h:40: error: expected init-declarator before "const"
/usr/include/libintl.h:40: error: expected `,' or `;' before "const"
/usr/include/libintl.h:44: error: expected unqualified-id before "const"
/usr/include/libintl.h:44: error: expected `)' before "const"
/usr/include/libintl.h:44: error: expected `)' before "const"
/usr/include/libintl.h:44: error: expected init-declarator before "const"
/usr/include/libintl.h:44: error: expected `,' or `;' before "const"
/usr/include/libintl.h:51: error: expected unqualified-id before "const"
/usr/include/libintl.h:51: error: expected `)' before "const"
/usr/include/libintl.h:51: error: expected `)' before "const"
/usr/include/libintl.h:51: error: expected init-declarator before "const"
/usr/include/libintl.h:51: error: expected `,' or `;' before "const"
/usr/include/libintl.h:60: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:60: error: expected `)' before "unsigned"
/usr/include/libintl.h:60: error: expected `)' before "unsigned"
/usr/include/libintl.h:60: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:60: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:66: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:66: error: expected `)' before "unsigned"
/usr/include/libintl.h:66: error: expected `)' before "unsigned"
/usr/include/libintl.h:66: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:66: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:72: error: expected unqualified-id before "unsigned"
/usr/include/libintl.h:72: error: expected `)' before "unsigned"
/usr/include/libintl.h:72: error: expected `)' before "unsigned"
/usr/include/libintl.h:72: error: expected init-declarator before "unsigned"
/usr/include/libintl.h:72: error: expected `,' or `;' before "unsigned"
/usr/include/libintl.h:81: error: expected unqualified-id before "const"
/usr/include/libintl.h:81: error: expected `)' before "const"
/usr/include/libintl.h:81: error: expected `)' before "const"
/usr/include/libintl.h:81: error: expected init-declarator before "const"
/usr/include/libintl.h:81: error: expected `,' or `;' before "const"
/usr/include/libintl.h:85: error: expected unqualified-id before "const"
/usr/include/libintl.h:85: error: expected `)' before "const"
/usr/include/libintl.h:85: error: expected `)' before "const"
/usr/include/libintl.h:85: error: expected init-declarator before "const"
/usr/include/libintl.h:85: error: expected `,' or `;' before "const"
/usr/include/libintl.h:90: error: expected unqualified-id before "const"
/usr/include/libintl.h:90: error: expected `)' before "const"
/usr/include/libintl.h:90: error: expected `)' before "const"
/usr/include/libintl.h:90: error: expected init-declarator before "const"
/usr/include/libintl.h:90: error: expected `,' or `;' before "const"
make[3]: *** [nls.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/adonthell-0.3.3-r1/work/adonthell-0.3.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/adonthell-0.3.3-r1/work/adonthell-0.3.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/adonthell-0.3.3-r1/work/adonthell-0.3.3'
make: *** [all] Error 2


Expected Results:  
for adonthell to compile.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20050125-r0, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Intel(R) Pentium(R) M processor 1.50GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 23:00:53)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv
usersandbox"
GENTOO_MIRRORS="ftp://ftp.rhnet.is/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3ds S3TC X Xaw3d aac accounting acpi acpi4linux aim alsa async avi
bash-completion bdf bigger-fonts bindist bitmap-fonts blender-game ccache cdda
cddb cdinstall cdparanoia cdr cdrom chroot css cups devfs26 devmap dga dnd
droproot dvd dvdr dvdread escreen extensions ffmpeg fmod ftp gcj gd gif gmail
gtk2 imap imlib2 ipv6 jabber java javascript joystick jp2 jpeg jpeg2k kde
kdeenablefinal maildir mmx mmx2 mng mp3 mpeg mpeg4 mplayer msn music nagios-dns
nagios-ntp nagios-ping nagios-ssh ncurses net network nocd offensive ogg
oggvorbis openal opengl operanom2 pam pcmcia pdf physfs png pnp pthreads radeon
remote samba savedconfig sdl session silverxp softmmu sse ssl stencil-buffer svg
theora usb vorbis wifi xface xine xmms xpm xprint xrandr xscreensaver xv xvid yahoo"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-03-12 23:51:33 UTC
pretty ugly in there.

Worked around the issue by forcing --enable-nls to be passed to configure.  I'm sure there's a better way but that allows the compile to succeed.  Tidied up a bit in configure.in as well.

Thanks for the bug report.