URL:
<http://gna.org/bugs/?15943>
Summary: __WORDSIZE is not defined on !linux
Project: Wormux
Submitted by: makc
Submitted on: Суббота 24.04.2010 at 16:16
Category: Compilation
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 0.9.2.1
Discussion Lock: Any
_______________________________________________________
Details:
0.9.2.1 fails to build on FreeBSD:
gmake[3]: Entering directory
`/work/a/ports/games/wormux/work/wormux-0.9.2.1/lib/wormux'
c++ -DHAVE_CONFIG_H -I. -I../../src -I/usr/local/include
-I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1 -D_REENTRANT
-I../../lib/wormux/include -I../../lib/fixedpoint -I/usr/local/include -Wall
-Wextra -O2 -I/usr/local/include/SDL -I/usr/local/include -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/local/include -I/usr/local/include/libxml2
-I/usr/local/include -I/usr/local/include -MT action.o -MD -MP -MF
.deps/action.Tpo -c -o action.o `test -f './action/action.cpp' || echo
'./'`./action/action.cpp
In file included from ../../lib/wormux/include/WORMUX_types.h:24,
from ../../lib/wormux/include/WORMUX_player.h:29,
from ../../lib/wormux/include/WORMUX_distant_cpu.h:28,
from ../../lib/wormux/include/WORMUX_action.h:29,
from ./action/action.cpp:25:
../../lib/fixedpoint/fixed_class.h: In instantiation of
'fixedpoint::fixed_point<16>':
../../lib/fixedpoint/fixed_class.h:335: instantiated from here
../../lib/fixedpoint/fixed_class.h:67: error:
'fixedpoint::fixed_point<p>::fixed_point(long int) [with int p = 16]' cannot
be overloaded
../../lib/fixedpoint/fixed_class.h:63: error: with
'fixedpoint::fixed_point<p>::fixed_point(int64_t) [with int p = 16]'
gmake[3]: *** [action.o] Error 1
gmake[3]: Leaving directory
`/work/a/ports/games/wormux/work/wormux-0.9.2.1/lib/wormux'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/work/a/ports/games/wormux/work/wormux-0.9.2.1/lib/wormux'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/work/a/ports/games/wormux/work/wormux-0.9.2.1/lib'
gmake: *** [all-recursive] Error 1
*** Error code 1
The problem is that __WORDSIZE is not defined on FreeBSD. As a workaround
attached patch can be used to fix build. However it would be better to detect
target architecture during configure stage.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Суббота 24.04.2010 at 16:16 Name:
patch-lib__fixedpoint__fixed_class.h Size: 406B By: makc
<http://gna.org/bugs/download.php?file_id=9060>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15943>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna