Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115087 - sdl-gfx: extra ';' in SDL/SDL_gfxPrimitives.h
Summary: sdl-gfx: extra ';' in SDL/SDL_gfxPrimitives.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 115091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-10 06:40 UTC by charly
Modified: 2005-12-10 11:49 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 charly 2005-12-10 06:40:57 UTC
When trying to compile openbubbles[1] (trying to make an ebuild), i get this error:

In file included from gameloop.h:32,
                 from gameloop.cpp:28:
/usr/include/SDL/SDL_gfxPrimitives.h:190: error: extra `;'
make[2]: *** [gameloop.o] Error 1

Changing the line 190 in SDL_gfxPrimitives.h from
  #ifdef __cplusplus
  };
to
  #ifdef __cplusplus
  }

solve the problem.

I guess the problem is really in this library, and not in the openbubbles code;
so this issue may happen with every package using sdl-gfx.

Note that i just have upgraded to gcc-3.4, i dont know if this can be the cause.

Regards

Charly


[1] http://www.freewebs.com/lasindi/openbubbles/index.html

Reproducible: Always
Steps to Reproduce:
1. Grab openbubbles
2. configure
3. make

Actual Results:  
make failed

Expected Results:  
game compiled succesfully

my emerge info:

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 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="-O3 -mcpu=i686 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/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="-O3 -mcpu=i686 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="C"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apache2 apm audiofile avi berkdb bitmap-fonts bzip2 cdr
crypt cups curl directfb dvd eds emboss encode exif expat fam fbcon ffmpeg flac
foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 idn imagemagick imlib
ipv6 java jpeg lcms ldap libg++ libwww mad mhash mikmod mng motif mp3 mpeg
mplayer mysql ncurses nls nvidia ogg oggvorbis openal opengl pam pcre pdflib
perl pic png python qt quicktime readline samba sdl sftplogging slang spell sse
sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev
unicode vorbis xml2 xv xvid zlib video_cards_nvidia userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-10 07:28:04 UTC
*** Bug 115091 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-12-10 11:49:33 UTC
fixed in sdl-gfx-2.0.13-r1, thanks for the bug report