bugWarzone 2100 Project - Bugs: bug #12831, Build fails, "conflicting...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12831: Build fails, "conflicting types for 'BOOL'"

Submitted by:  Michael Jinks <twork>
Submitted on:  Fri 09 Jan 2009 05:43:29 AM UTC  
 
Category: Build systemSeverity: Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: 2.1.0Operating System: GNU/Linux
Planned Release: None

(Jump to the original submission Jump to the original submission)

Mon 12 Jan 2009 02:00:32 AM UTC, comment #7:

I have 5.8.8.

Sort of strange that 5.10 isn't available yet in Gentoo, even as a masked package, since I see it's been out now for over a year. But I just double checked, and this is the latest version in my freshly-synced portage tree.

Also strange that WZ 2.1.0 got released for Gentoo, if it depends on a version of Perl they don't have yet.

Anybody know something about this situation that I don't?

Michael Jinks <twork>
Sun 11 Jan 2009 03:55:29 PM UTC, comment #6:

http://developer.wz2100.net/changeset/6543

what version of perl do you have?

Anonymous
Sat 10 Jan 2009 06:43:18 PM UTC, comment #5:

Here's what I have for dependencies. The Compile Guide lists bison and flex (and nothing else?) as build-time requirements. I have:

sys-devel/bison-2.3
sys-devel/flex-2.5.35

For run-time prereqs:

media-libs/libsdl-1.2.13 (SDL)
media-libs/sdl-net-1.2.7 (SDL_net)
media-libs/openal-1.5.304 (OpenAL)
OpenGL: provided by my GPU driver (nVidia)
media-libs/quesoglc-0.7.1 (OpenGLC)
sys-devel/gettext-0.17 (gettext)
media-fonts/dejavu-2.21 (DejaVu Fonts)

Michael Jinks <twork>
Fri 09 Jan 2009 09:34:14 PM UTC, comment #4:

Based on the list at http://developer.wz2100.net/wiki/Compile_Guide I believe so.

Have the dependencies changed much since the 2.0.x series? 2.0.10 builds and runs fine for me. When I first tried to use the Gentoo ebuild, it successfully pulled in a few new packages -- the DejaVu fonts was one, I forget the rest.

As I said in my last post, I had to upgrade sqlite to build from SVN, and I see sqlite isn't on the dependencies list on Trac. Maybe there's other stuff missing too?

Michael Jinks <twork>
Fri 09 Jan 2009 08:01:15 PM UTC, comment #3:

Do you have all of the dependencies installed?

Anonymous
Fri 09 Jan 2009 06:31:05 PM UTC, comment #2:

Hm, well... First I tried compiling from the release tarball, just a simple "./configure ; make", and that died with the same error I get from the ebuild.

Next I checked out trunk from svn, and that's worse. autogen.sh appeared to go okay, but configure throws a couple of strange complaints:

[...]
config.status: creating po/Makefile
configure:
configure: *** Running in debug mode! ***
configure:
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
configure:
configure: WARNING: Not using a system provided SQLite library.
configure: WARNING: Requested 'sqlite3 >= 3.6' but version of SQLite is 3.5
configure: WARNING: We currently only accept SQLite versions >= 3.6.
configure:
configure: WARNING: Perl isn't installed, autogeneration of some sources will not work.

The configure run in the ebuild doesn't complain about sqlite or perl. sqlite >3.5 is masked currently, but I unmasked and upgraded to make that go away.

Weirder is the perl complaint. I sure do have perl installed... and the complaint doesn't go away if I add "--with-perl=/usr/bin/perl".

I went ahead and ran make, and got a different but similar build failure:

Making all in sequence
make[3]: Entering directory `/home/mjinks/src/warzone/trunk/lib/sequence'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -DDEBUG -DDATADIR="\"/usr/local/warzone/share/warzone2100\"" -DLOCALEDIR="\"/usr/local/warzone/share/locale\"" -I../.. -O0 -g -Wall -Werror -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers -Wcast-align -Wwrite-strings -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wno-format-security -MT sequence.o -MD -MP -MF .deps/sequence.Tpo -c -o sequence.o sequence.c
In file included from /usr/include/GL/glx.h:25,
from ../../lib/ivis_opengl/GLee.h:66,
from sequence.c:61:
/usr/include/X11/Xmd.h:165: error: conflicting types for 'BOOL'
../../lib/framework/types.h:69: error: previous declaration of 'BOOL' was here
make[3]: *** [sequence.o] Error 1
make[3]: Leaving directory `/home/mjinks/src/warzone/trunk/lib/sequence'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mjinks/src/warzone/trunk/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mjinks/src/warzone/trunk'
make: *** [all] Error 2

Michael Jinks <twork>
Fri 09 Jan 2009 08:08:47 AM UTC, comment #1:

I suspect this is an ebuild issue; I checkout and compile Warzone without issue on a ~AMD64 Gentoo system every day. While you appear to be (~)x86 it shouldn't make a big difference.

See if you can compile a trunk snapshot (the FAQ/Developers guide explains how to go about doing this).

Regards, Freddie.

Freddie Witherden <evilguru>
Project Member
Fri 09 Jan 2009 05:43:29 AM UTC, original submission:

I'm trying to install version 2.1.0 from the Gentoo ebuild, and the compile dies. Filed a bug with the Gentoo bug system a few days ago (bug #253308), but haven't seen a response so far.

Excerpt from the compile pasted below; I realize this might not be much to go on but I don't know what else might be helpful, can provide further info with prompting.

[...]
i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng12 -DNDEBUG -DDATADIR="\"/usr/share/games/warzone2100\"" -DLOCALEDIR="\"/usr/share/locale\"" -I../.. -g -Wall -Wwrite-strings -Wno-missing-declarations -O3 -march=pentium4 -pipe -c piedraw.c
In file included from ../../lib/framework/frame.h:34,
from pieblitfunc.c:31:
../../lib/framework/types.h:66: error: conflicting types for 'BOOL'
/usr/include/X11/Xmd.h:165: error: previous declaration of 'BOOL' was here
make[3]: *** [pieblitfunc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ../../lib/framework/frame.h:34,
from piedraw.c:29:
../../lib/framework/types.h:66: error: conflicting types for 'BOOL'
/usr/include/X11/Xmd.h:165: error: previous declaration of 'BOOL' was here
make[3]: *** [piedraw.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/games-strategy/warzone2100-2.1.0/work/warzone2100-2.1.0/lib/ivis_opengl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-strategy/warzone2100-2.1.0/work/warzone2100-2.1.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-strategy/warzone2100-2.1.0/work/warzone2100-2.1.0'
make: *** [all] Error 2

Michael Jinks <twork>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by evilguru (Posted a comment)
  • -unavailable- added by twork (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup