Revision 8635 doesn't compile on Debian Unstable 64 bits

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.
User avatar
magic_sam
Posts: 4
Joined: Fri Mar 22, 2013 8:14 pm

Revision 8635 doesn't compile on Debian Unstable 64 bits

Postby magic_sam » Sat Mar 23, 2013 3:03 am

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
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

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

Postby jarod42 » Sat Mar 23, 2013 4:43 am

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 :-/
User avatar
magic_sam
Posts: 4
Joined: Fri Mar 22, 2013 8:14 pm

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

Postby magic_sam » Sat Mar 23, 2013 4:59 am

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 ?
User avatar
jarod42
Posts: 101
Joined: Fri Jan 20, 2012 7:43 pm

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

Postby jarod42 » Sun Mar 24, 2013 12:25 am

launchpad is better for bug reporting, as tracking is easier.

Who is online

Users browsing this forum: No registered users and 2 guests