Bug 116363 - quintalign fails to compile
Bug#: 116363 Product:  Gentoo Linux Version: 2005.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P5
Resolution: FIXED Assigned To: games@gentoo.org Reported By: tjm1983@paradise.net.nz
Component: Games
URL: 
Summary: quintalign fails to compile
Keywords:  
Status Whiteboard: 
Opened: 2005-12-22 01:09 0000
Description:   Opened: 2005-12-22 01:09 0000
This is what happens:

enoch ~ # emerge quintalign
Calculating dependencies ...done!
>>> emerge (1 of 1) games-puzzle/quintalign-1.0 to /
.
.
.
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.4/include
-I/usr/qt/3/include -I.  
-DSRCDIR="\"/var/tmp/portage/quintalign-1.0/work/quintalign-1.0/quintalign/quintalign\""
    -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall
-pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG
-O2 -O2 -march=pentium4 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE
-DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c -o quintaligndoc.o `test -f
quintaligndoc.cpp || echo './'`quintaligndoc.cpp
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
quintalignview.cpp: In member function `void GameView::drawScore(bool)':
quintalignview.cpp:607: error: ISO C++ forbids variable-size array `no'
.
.
.

And it stops shortly after this.

My emerge info:
enoch ~ # emerge --info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.recoil.net.nz/gentoo
ftp://mirror.pacific.net.au/linux/Gentoo http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups
curl eds emboss encode expat fam foomaticdb fortran gdbm gif gmp gpm gstreamer
gtk2 idn imlib ipv6 java jpeg kde lcms libg++ libwww mad mailwrapper mikmod
milter mmx mmx2 mng motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss
pam pcre pdflib perl png python qt quicktime readline samba scanner sdl spell
sse sse2 ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb
vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Tim
<><

------- Comment #1 From Keri Harris 2005-12-25 22:31:54 0000 -------
The latest upstream release also suffers from this problem (in addition to a
docbook error). Find attached an ebuild and patch that will resolve these
issues.

------- Comment #2 From Keri Harris 2005-12-25 22:33:30 0000 -------
Created an attachment (id=75538) [details]
quintalign-1.0.1.ebuild

------- Comment #3 From Keri Harris 2005-12-25 22:34:34 0000 -------
Created an attachment (id=75539) [details]
quintalign-1.0.1-gcc-3.4.patch

------- Comment #4 From Tupone Alfredo 2006-05-21 03:48:26 0000 -------
Fixed in portage