Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48326 - Wesnoth wants signed char on ppc.
Summary: Wesnoth wants signed char on ppc.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 08:32 UTC by Ernst Sjöstrand
Modified: 2004-04-20 23:43 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 Ernst Sjöstrand 2004-04-19 08:32:11 UTC
I guess you could append -fsigned-char to CFLAGS for all arch in the ebuild?

checking for kde-config... /usr/kde/3.2/bin/kde-config
checking if char is signed... no
configure: error: *** char is unsigned. Wesnoth cannot work with unsigned
chars. Try with another compiler (specify it using CXX environment variable.)

!!! ERROR: games-strategy/wesnoth-0.7.3 failed.
!!! Function egamesconf, Line 47, Exitcode 1
!!! egamesconf failed

Portage 2.0.50-r6 (default-ppc-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.5-mm4)
=================================================================
System uname: 2.6.5-mm4 ppc 740/750
Gentoo Base System version 1.4.8
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750 -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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="-O3 -pipe -mcpu=750 -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.sunet.se/pubk/os/Linux/distributions/gentoo/"
MAKEOPTS=""
PKGDIR="/mnt/cdrom"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aim apache2 artswrappersuid audiofile berkdb bonobo caps cddb crypt cups dnd doc encode esd evo faad fam fbcon fbdev ffmpeg flac foomaticdb freetype gatos gdbm gif gimpprint glade glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib imlib2 jabber jack jack-tmpfs java javascript jpeg kde kerberos ldap libwww mad mitshm mng mozsvg mp3 mpeg mpeg4 msn nls objc oggvorbis openal opengl oscar pam pdflib png ppc ppds pthreads python qt quicktime readline samba sasl scanner sdk sdl slang slp snmp speex spell ssl svg tcpd tetex threads tiff truetype type1 uml unicode usb utf8 xml2 xosd xv zlib"


Reproducible: Always
Steps to Reproduce:
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-04-19 18:28:29 UTC
Is this specific to ppc or does it need to be done for all archs?
Comment 2 Ernst Sjöstrand 2004-04-20 01:49:08 UTC
I think the char type is different on different platforms.
But it couldn't hurt to add -fsigned-char for all archs, 
either they have it and it doesn't matter or they need it like ppc.
Comment 3 SpanKY gentoo-dev 2004-04-20 09:55:05 UTC
yes, whether a char is signed or unsigned depends on many things ... usually on ppc, the default is unsigned, but default CFLAGS includes -fsigned-char

forcing signed-char behavior onto wesnoth is ok
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-04-20 23:43:50 UTC
Added -fsigned-char to CFLAGS for all archs.  Thanks for the bug report and
work around.

I've reported this issue upstream so hopefully they will address it in future
releases.