Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

Warzone 2100 compilation errors

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Author
Message
Diesel_Fuel
n00b
n00b
Posts: 59
Joined: Sun Oct 09, 2005 10:05 pm

Warzone 2100 compilation errors

  • Quote

Post by Diesel_Fuel » Tue Dec 26, 2006 7:34 pm

Hey everyone, I'm having a hell of a time getting Warzone 2100 going here. I understand that it needs to be compiled with 32-bit stuff, and I'm on AMD64. So I am in a 32-bit chroot, and when I try to emerge warzone2100, I get the following error: (remember this is in the chroot).

Code: Select all

scrap.c:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scrap_type'
scrap.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
scrap.c:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Window'
scrap.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'convert_format'
scrap.c: In function 'init_scrap':
scrap.c:281: error: 'SDL_SysWMinfo' has no member named 'subsystem'
scrap.c:281: error: 'SDL_SYSWM_X11' undeclared (first use in this function)
scrap.c:281: error: (Each undeclared identifier is reported only once
scrap.c:281: error: for each function it appears in.)
scrap.c:283: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:283: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:284: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:284: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:285: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:286: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c: In function 'lost_scrap':
scrap.c:322: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:322: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:322: error: 'SDL_Window' undeclared (first use in this function)
scrap.c: In function 'put_scrap':
scrap.c:341: error: 'scrap_type' undeclared (first use in this function)
scrap.c:341: error: expected ';' before 'format'
scrap.c:345: error: 'format' undeclared (first use in this function)
scrap.c:355: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:356: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:356: error: 'PropModeReplace' undeclared (first use in this function)
scrap.c:359: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:359: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:359: error: 'CurrentTime' undeclared (first use in this function)
scrap.c: In function 'get_scrap':
scrap.c:441: error: 'scrap_type' undeclared (first use in this function)
scrap.c:441: error: expected ';' before 'format'
scrap.c:444: error: 'format' undeclared (first use in this function)
scrap.c:449: error: 'Window' undeclared (first use in this function)
scrap.c:449: error: expected ';' before 'owner'
scrap.c:450: error: 'Atom' undeclared (first use in this function)
scrap.c:450: error: expected ';' before 'selection'
scrap.c:451: error: expected ';' before 'seln_type'
scrap.c:458: error: 'owner' undeclared (first use in this function)
scrap.c:458: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:458: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:460: error: 'None' undeclared (first use in this function)
scrap.c:460: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:463: error: 'selection' undeclared (first use in this function)
scrap.c:463: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:472: error: 'False' undeclared (first use in this function)
scrap.c:474: error: 'CurrentTime' undeclared (first use in this function)
scrap.c:481: error: 'XEvent' undeclared (first use in this function)
scrap.c:481: error: expected ';' before 'xevent'
scrap.c:483: error: 'xevent' undeclared (first use in this function)
scrap.c:483: error: 'SelectionNotify' undeclared (first use in this function)
scrap.c:491: error: 'seln_type' undeclared (first use in this function)
scrap.c:492: error: 'Success' undeclared (first use in this function)
scrap.c: In function 'clipboard_filter':
scrap.c:599: error: 'SDL_SysWMmsg' has no member named 'event'
scrap.c:601: error: 'SelectionRequest' undeclared (first use in this function)
scrap.c:602: error: 'XSelectionRequestEvent' undeclared (first use in this function)
scrap.c:602: error: 'req' undeclared (first use in this function)
scrap.c:603: error: 'XEvent' undeclared (first use in this function)
scrap.c:603: error: expected ';' before 'sevent'
scrap.c:609: error: 'SDL_SysWMmsg' has no member named 'event'
scrap.c:610: error: 'sevent' undeclared (first use in this function)
scrap.c:610: error: 'SelectionNotify' undeclared (first use in this function)
scrap.c:613: error: 'None' undeclared (first use in this function)
scrap.c:617: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:618: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:618: error: 'False' undeclared (first use in this function)
scrap.c:620: error: 'Success' undeclared (first use in this function)
scrap.c:624: error: 'XA_STRING' undeclared (first use in this function)
scrap.c:630: error: 'PropModeReplace' undeclared (first use in this function)
make[2]: *** [scrap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/warzone2100-2.0.5/work/warzone2100-2.0.5/lib/widget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/warzone2100-2.0.5/work/warzone2100-2.0.5/lib'
make: *** [all-recursive] Error 1

!!! ERROR: games-strategy/warzone2100-2.0.5 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  warzone2100-2.0.5.ebuild, line 50:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

peterbilt ~ # 
It looks like an SDL error, but as far as I know I have SDL going fine. However, I am up for trying anything, so any suggestions that you all have would be great.

Thanks,

DFO
Top
superk
n00b
n00b
User avatar
Posts: 36
Joined: Fri Jun 06, 2003 4:12 pm

  • Quote

Post by superk » Sat May 12, 2007 1:35 am

I know this is a really really really old unsolved post.... but i am getting the same error, or near the same one.

Code: Select all

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../lib/framework  -I../..   -g -DNDEBUG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -m32 -DYY_STATIC -DDEFAULT_DATADIR=\"/usr/share/games/warzone2100\" -O2 -march=athlon-xp -pipe -msse2 -fomit-frame-pointer  -c scrap.c
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../lib/framework  -I../..   -g -DNDEBUG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -m32 -DYY_STATIC -DDEFAULT_DATADIR=\"/usr/share/games/warzone2100\" -O2 -march=athlon-xp -pipe -msse2 -fomit-frame-pointer  -c slider.c
scrap.c:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scrap_type'
scrap.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
scrap.c:75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDL_Window'
scrap.c:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'convert_format'
scrap.c: In function 'init_scrap':
scrap.c:300: error: 'SDL_SysWMinfo' has no member named 'subsystem'
scrap.c:300: error: 'SDL_SYSWM_X11' undeclared (first use in this function)
scrap.c:300: error: (Each undeclared identifier is reported only once
scrap.c:300: error: for each function it appears in.)
scrap.c:302: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:302: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:303: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:303: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:304: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c:305: error: 'SDL_SysWMinfo' has no member named 'info'
scrap.c: In function 'lost_scrap':
scrap.c:341: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:341: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:341: error: 'SDL_Window' undeclared (first use in this function)
scrap.c: In function 'put_scrap':
scrap.c:360: error: 'scrap_type' undeclared (first use in this function)
scrap.c:360: error: expected ';' before 'format'
scrap.c:364: error: 'format' undeclared (first use in this function)
scrap.c:374: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:375: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:375: error: 'PropModeReplace' undeclared (first use in this function)
scrap.c:378: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:378: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:378: error: 'CurrentTime' undeclared (first use in this function)
scrap.c: In function 'get_scrap':
scrap.c:460: error: 'scrap_type' undeclared (first use in this function)
scrap.c:460: error: expected ';' before 'format'
scrap.c:463: error: 'format' undeclared (first use in this function)
scrap.c:468: error: 'Window' undeclared (first use in this function)
scrap.c:468: error: expected ';' before 'owner'
scrap.c:469: error: 'Atom' undeclared (first use in this function)
scrap.c:469: error: expected ';' before 'selection'
scrap.c:470: error: expected ';' before 'seln_type'
scrap.c:477: error: 'owner' undeclared (first use in this function)
scrap.c:477: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:477: error: 'XA_PRIMARY' undeclared (first use in this function)
scrap.c:479: error: 'None' undeclared (first use in this function)
scrap.c:479: error: 'SDL_Window' undeclared (first use in this function)
scrap.c:482: error: 'selection' undeclared (first use in this function)
scrap.c:482: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:491: error: 'False' undeclared (first use in this function)
scrap.c:493: error: 'CurrentTime' undeclared (first use in this function)
scrap.c:500: error: 'XEvent' undeclared (first use in this function)
scrap.c:500: error: expected ';' before 'xevent'
scrap.c:502: error: 'xevent' undeclared (first use in this function)
scrap.c:502: error: 'SelectionNotify' undeclared (first use in this function)
scrap.c:510: error: 'seln_type' undeclared (first use in this function)
scrap.c:511: error: 'Success' undeclared (first use in this function)
scrap.c: In function 'clipboard_filter':
scrap.c:618: error: 'SDL_SysWMmsg' has no member named 'event'
scrap.c:620: error: 'SelectionRequest' undeclared (first use in this function)
scrap.c:621: error: 'XSelectionRequestEvent' undeclared (first use in this function)
scrap.c:621: error: 'req' undeclared (first use in this function)
scrap.c:622: error: 'XEvent' undeclared (first use in this function)
scrap.c:622: error: expected ';' before 'sevent'
scrap.c:628: error: 'SDL_SysWMmsg' has no member named 'event'
scrap.c:629: error: 'sevent' undeclared (first use in this function)
scrap.c:629: error: 'SelectionNotify' undeclared (first use in this function)
scrap.c:632: error: 'None' undeclared (first use in this function)
scrap.c:636: error: 'SDL_Display' undeclared (first use in this function)
scrap.c:637: error: 'XA_CUT_BUFFER0' undeclared (first use in this function)
scrap.c:637: error: 'False' undeclared (first use in this function)
scrap.c:639: error: 'Success' undeclared (first use in this function)
scrap.c:643: error: 'XA_STRING' undeclared (first use in this function)
scrap.c:649: error: 'PropModeReplace' undeclared (first use in this function)
make[2]: *** [scrap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/games-strategy/warzone2100-2.0.6/work/warzone2100-2.0.6/lib/widget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-strategy/warzone2100-2.0.6/work/warzone2100-2.0.6/lib'
make: *** [all-recursive] Error 1

!!! ERROR: games-strategy/warzone2100-2.0.6 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3546:   Called src_compile
  warzone2100-2.0.6.ebuild, line 51:   Called die
If anyone has any suggestions, it would be appreciated.

I am compiling from a 32bit chroot, using i686 host.
Top
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

  • Quote

Post by Letharion » Sun Jul 01, 2007 8:26 pm

I haven't narrowed it down to a specific flag, but I compiled libsdl with more graphic-related use-flags and the problem went away :)

Thanks Diesel_Fuel for pointing in the SDL direction :)
Top
superk
n00b
n00b
User avatar
Posts: 36
Joined: Fri Jun 06, 2003 4:12 pm

  • Quote

Post by superk » Mon Jul 02, 2007 2:10 am

oh cool, ill try that out, thanks for the hint!
Top
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

  • Quote

Post by Letharion » Wed Jul 04, 2007 8:09 am

Here's my list :)

Code: Select all

[ebuild   R   ] media-libs/libsdl-1.2.11-r2  USE="X alsa opengl svga xv -aalib -arts -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo -oss -xinerama" 0 kB
And this is what I changed from before it worked til after

Code: Select all

media-libs/libsdl X opengl svga xv
Top
mortar
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 131
Joined: Thu Feb 03, 2005 7:57 am

  • Quote

Post by mortar » Sun Dec 30, 2007 3:19 am

Letharion wrote:Here's my list :)

Code: Select all

[ebuild   R   ] media-libs/libsdl-1.2.11-r2  USE="X alsa opengl svga xv -aalib -arts -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo -oss -xinerama" 0 kB
And this is what I changed from before it worked til after

Code: Select all

media-libs/libsdl X opengl svga xv
Worked for me trying to emerge kdenlive with mlt! Thanks!!!
Top
Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic