[SM-Grimoire-Bugs] [Bug 15682] New: wormux 0.9.2 fails to compile

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Mon Apr 19 03:31:35 EDT 2010


http://bugs.sourcemage.org/show_bug.cgi?id=15682

           Summary: wormux 0.9.2 fails to compile
           Product: Codex
           Version: games grimoire
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: games grimoire
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: pyrobor at ver.si


Well here is the error:
...
g++ -DHAVE_CONFIG_H -I. -I../../src   -I/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -I../../lib/wormux/include -I../../lib/fixedpoint  -Wall -Wextra
-O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12  
-I/usr/include/libxml2   -I/usr/include/libpng12   -MT singleton.o -MD -MP -MF
.deps/singleton.Tpo -c -o singleton.o `test -f './base/singleton.cpp' || echo
'./'`./base/singleton.cpp
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr-default.h:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr.h:132,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ext/atomicity.h:39,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/basic_string.h:46,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/string:58,
                 from ../../lib/wormux/include/WORMUX_i18n.h:26,
                 from ./base/i18n.cpp:23:
/usr/include/unistd.h:268: error: conflicting declaration 'typedef __intptr_t
intptr_t'
../../lib/fixedpoint/stdint.h:61: error: 'intptr_t' has a previous declaration
as 'typedef int intptr_t'
In file included from /usr/include/stdlib.h:320,
                 from ./base/i18n.cpp:28:
/usr/include/sys/types.h:198: error: conflicting declaration 'typedef long int
int64_t'
../../lib/fixedpoint/stdint.h:33: error: 'int64_t' has a previous declaration
as 'typedef long long int int64_t'
make[3]: *** [i18n.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/postypes.h:50,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/iosfwd:47,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ios:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ostream:45,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/iostream:45,
                 from ./base/error.cpp:23:
../../lib/fixedpoint/stdint.h:33: error: conflicting declaration 'typedef long
long int int64_t'
/usr/include/sys/types.h:198: error: 'int64_t' has a previous declaration as
'typedef long int int64_t'
In file included from /usr/include/inttypes.h:28,
                 from /usr/include/SDL/SDL_stdinc.h:66,
                 from /usr/include/SDL/SDL_mutex.h:32,
                 from ./base/singleton.cpp:22:
../../lib/fixedpoint/stdint.h:33: error: conflicting declaration 'typedef long
long int int64_t'
/usr/include/sys/types.h:198: error: 'int64_t' has a previous declaration as
'typedef long int int64_t'
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr-default.h:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr.h:132,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ext/atomicity.h:39,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/ios_base.h:46,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ios:48,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ostream:45,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/iostream:45,
                 from ./base/error.cpp:23:
/usr/include/unistd.h:268: error: conflicting declaration 'typedef __intptr_t
intptr_t'
../../lib/fixedpoint/stdint.h:61: error: 'intptr_t' has a previous declaration
as 'typedef int intptr_t'
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr-default.h:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr.h:132,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ext/atomicity.h:39,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/basic_string.h:46,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/string:58,
                 from ../../lib/wormux/include/WORMUX_debug.h:23,
                 from ../../lib/wormux/include/WORMUX_singleton.h:27,
                 from ./base/singleton.cpp:23:
/usr/include/unistd.h:268: error: conflicting declaration 'typedef __intptr_t
intptr_t'
../../lib/fixedpoint/stdint.h:61: error: 'intptr_t' has a previous declaration
as 'typedef int intptr_t'
In file included from /usr/include/inttypes.h:28,
                 from /usr/include/SDL/SDL_stdinc.h:66,
                 from /usr/include/SDL/SDL_main.h:26,
                 from /usr/include/SDL/SDL.h:30,
                 from /usr/include/SDL/SDL_net.h:28,
                 from ./action/action.cpp:23:
../../lib/fixedpoint/stdint.h:33: error: conflicting declaration 'typedef long
long int int64_t'
/usr/include/sys/types.h:198: error: 'int64_t' has a previous declaration as
'typedef long int int64_t'
make[3]: *** [singleton.o] Error 1
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr-default.h:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr.h:132,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ext/atomicity.h:39,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/basic_string.h:46,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/string:58,
                 from ../../lib/wormux/include/WORMUX_action.h:25,
                 from ./action/action.cpp:24:
/usr/include/unistd.h:268: error: conflicting declaration 'typedef __intptr_t
intptr_t'
../../lib/fixedpoint/stdint.h:61: error: 'intptr_t' has a previous declaration
as 'typedef int intptr_t'
In file included from ../../lib/wormux/include/WORMUX_types.h:23,
                 from ./base/error.cpp:27:
../../lib/fixedpoint/fixed_class.h:60: error:
'fixedpoint::fixed_point<p>::fixed_point(long int)' cannot be overloaded
../../lib/fixedpoint/fixed_class.h:57: error: with
'fixedpoint::fixed_point<p>::fixed_point(int64_t)'
make[3]: *** [error.o] Error 1
In file included from ../../lib/wormux/include/WORMUX_types.h:23,
                 from ../../lib/wormux/include/WORMUX_player.h:28,
                 from ../../lib/wormux/include/WORMUX_distant_cpu.h:27,
                 from ../../lib/wormux/include/WORMUX_action.h:28,
                 from ./action/action.cpp:24:
../../lib/fixedpoint/fixed_class.h:60: error:
'fixedpoint::fixed_point<p>::fixed_point(long int)' cannot be overloaded
../../lib/fixedpoint/fixed_class.h:57: error: with
'fixedpoint::fixed_point<p>::fixed_point(int64_t)'
make[3]: *** [action.o] Error 1
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr-default.h:44,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/x86_64-pc-linux-gnu/bits/gthr.h:132,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ext/atomicity.h:39,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/ios_base.h:46,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ios:48,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/ostream:45,
                 from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/iostream:45,
                 from ./action/action_handler.cpp:22:
/usr/include/unistd.h:268: error: conflicting declaration 'typedef __intptr_t
intptr_t'
../../lib/fixedpoint/stdint.h:61: error: 'intptr_t' has a previous declaration
as 'typedef int intptr_t'
In file included from /usr/include/SDL/SDL_stdinc.h:34,
                 from /usr/include/SDL/SDL_mutex.h:32,
                 from ./action/action_handler.cpp:23:
/usr/include/sys/types.h:198: error: conflicting declaration 'typedef long int
int64_t'
../../lib/fixedpoint/stdint.h:33: error: 'int64_t' has a previous declaration
as 'typedef long long int int64_t'
make[3]: *** [action_handler.o] Error 1
make[3]: Leaving directory `/usr/src/wormux-0.9.2/lib/wormux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/wormux-0.9.2/lib/wormux'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/wormux-0.9.2/lib'
make: *** [all-recursive] Error 1
Running make with 5 jobs failed. Attempt to run with a single job? [y] n
 ! Problem Detected ! 
...

Anyway I recompiled glibc and sdl and didn't help. I am using everything from
test grimoire so I have installed:
$ gaze version sdl glibc gcc
Grimoire  Section  Spell  Grimoire Version  Installed Version
--------  -------  -----  ----------------  -----------------
test      libs     sdl    1.2.14            1.2.14
test      libs     glibc  2.11.1            2.11.1
test      gnu      gcc    4.3.3             4.3.3

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the SM-Grimoire-Bugs mailing list