Page 1 of 1

Revision 8635 doesn't compile on Debian Unstable 64 bits

Posted: Sat Mar 23, 2013 3:03 am
by magic_sam
Hi !

This is only my second post here on these boards :P

I'm sorry to report that I can't get revision 8635 to compile on Debian Unstable 64 bits :(

Code: Select all

[ 28%] Building CXX object CMakeFiles/stratagus.dir/src/game/game.cpp.o
In file included from /home/samuel/stratagus-bzr/stratagus/src/game/game.cpp:57:0:
/home/samuel/stratagus-bzr/stratagus/src/include/netconnect.h: In static member function ‘static size_t CInitMessage::Size()’:
/home/samuel/stratagus-bzr/stratagus/src/include/netconnect.h:135:151: error: no matching function for call to ‘max(unsigned int, const long unsigned int&)’
/home/samuel/stratagus-bzr/stratagus/src/include/netconnect.h:135:151: note: candidates are:
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
                 from /usr/include/c++/4.7/string:42,
                 from /home/samuel/stratagus-bzr/stratagus/src/include/util.h:132,
                 from /home/samuel/stratagus-bzr/stratagus/src/include/stratagus.h:149,
                 from /home/samuel/stratagus-bzr/stratagus/src/game/game.cpp:39:
/usr/include/c++/4.7/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
/usr/include/c++/4.7/bits/stl_algobase.h:210:5: note:   template argument deduction/substitution failed:
In file included from /home/samuel/stratagus-bzr/stratagus/src/game/game.cpp:57:0:
/home/samuel/stratagus-bzr/stratagus/src/include/netconnect.h:135:151: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘long unsigned int’)
In file included from /usr/include/c++/4.7/bits/char_traits.h:41:0,
                 from /usr/include/c++/4.7/string:42,
                 from /home/samuel/stratagus-bzr/stratagus/src/include/util.h:132,
                 from /home/samuel/stratagus-bzr/stratagus/src/include/stratagus.h:149,
                 from /home/samuel/stratagus-bzr/stratagus/src/game/game.cpp:39:
/usr/include/c++/4.7/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
/usr/include/c++/4.7/bits/stl_algobase.h:254:5: note:   template argument deduction/substitution failed:
In file included from /home/samuel/stratagus-bzr/stratagus/src/game/game.cpp:57:0:
/home/samuel/stratagus-bzr/stratagus/src/include/netconnect.h:135:151: note:   deduced conflicting types for parameter ‘const _Tp’ (‘unsigned int’ and ‘long unsigned int’)
make[2]: *** [CMakeFiles/stratagus.dir/src/game/game.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/stratagus.dir/all] Erreur 2
make: *** [all] Erreur 2
samuel@portable:~/stratagus-bzr/stratagus/build$ 
What am I doing wrong ?

Bye, and thanks for all your hard work on Stratagus :)

Magic Sam

Re: Revision 8635 doesn't compile on Debian Unstable 64 bits

Posted: Sat Mar 23, 2013 4:43 am
by jarod42
Thanks for the report.
It should be fixed in 8636.

Note that I don't have 64bit OS, so it may be possible that there are others compilation 64 bits issues :-/

Re: Revision 8635 doesn't compile on Debian Unstable 64 bits

Posted: Sat Mar 23, 2013 4:59 am
by magic_sam
jarod42 wrote:Thanks for the report.
You're welcome :)
It should be fixed in 8636.

Note that I don't have 64bit OS, so it may be possible that there are others compilation 64 bits issues :-/
Your patch worked perfectly :)

Bye and thanks !

Magic Sam

EDIT: What's the best way to report bugs ? Here on the boards, or directly on Launchpad ?

Re: Revision 8635 doesn't compile on Debian Unstable 64 bits

Posted: Sun Mar 24, 2013 12:25 am
by jarod42
launchpad is better for bug reporting, as tracking is easier.