From: SourceForge.net <no...@so...> - 2012-09-08 23:59:37
|
Bugs item #3565428, was opened at 2012-09-06 23:47 Message generated for change (Settings changed) made by geoffthemedio You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=544942&aid=3565428&group_id=75752 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Deleted >Resolution: Invalid Priority: 5 Private: No Submitted By: Alexander Rødseth (alexanro) Assigned to: Nobody/Anonymous (nobody) Summary: error: ‘TIME_UTC__’ is not a member of ‘boost’ Initial Comment: Hi, In lack of a release for Linux, I'm trying to package the latest subversion revision of freeorion for Arch Linux, after someone flagged the current Arch Linux package (0.4.1) as out of date. Currently, it stops at about 20% with this error: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: In function ‘void Sleep(int)’: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:428:26: error: ‘TIME_UTC__’ is not a member of ‘boost’ /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: At global scope: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:55:10: warning: ‘{anonymous}::temp_bool’ defined but not used [-Wunused-variable] make[2]: *** [CMakeFiles/core_static.dir/util/MultiplayerCommon.cpp.o] Error 1 make[1]: *** [CMakeFiles/core_static.dir/all] Error 2 make: *** [all] Error 2 (TIME_UTC is a macro in C11) Thanks. Best regards, Alexander Rødseth ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 16:55 Message: For a previous version of freeorion, I patched TIME_UTC to TIME_UTC_ with sed to make it compile. For the latest version of freeorion, this is fixed, but my package still changed TIME_UTC_ to TIME_UTC__... Fixed it now. This was entirely my fault. Sorry about that and thanks for the patience with this bug report. This ticket can be closed. ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2012-09-08 16:27 Message: This is a separate, weirder, issue to the problem building FreeOrion 0.4.1 SVN 5096 with Boost 1.50. Your error here makes no sense to me, but the other one makes perfect sense and has workarounds as discussed there. I've undeleted and changed this bug to "Works For Me" since the error seemingly isn't what I originally thought (which is what the other bug report you just made actually is...) ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2012-09-08 16:14 Message: I don't know what to tell you... TIME_UTC__ does not appear in MultiplayerCommon.cpp. There is a use of boost::TIME_UTC in SVN 5096 which is changed in SVN 5189 to use boost::TIME_UTC_ (with a single trailing _) if the boost version if 1.50 or greater. Maybe your download is corrupted somehow to add an extra _ or you've got a macro somewhere that's adding it? ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 15:58 Message: This ticket can be closed, since there is a new ticket with id 3565924 for the new error message. ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 15:53 Message: I see that this bug report is marked as "Deleted" and "Out of Date", so I'll create a new ticket for the compilation error I just posted instead. ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 15:52 Message: With revision 5096 of freeorion, I get: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: In function ‘void Sleep(int)’: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:414:33: error: expected unqualified-id before numeric constant /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: In constructor ‘CombatData::CombatData(System*, std::map<int, std::vector<CombatSetupGroup> >&)’: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:496:16: warning: unused variable ‘objects’ [-Wunused-variable] /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: At global scope: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:42:10: warning: ‘{anonymous}::temp_bool’ defined but not used [-Wunused-variable] make[2]: *** [CMakeFiles/core_static.dir/util/MultiplayerCommon.cpp.o] Error 1 make[1]: *** [CMakeFiles/core_static.dir/all] Error 2 make: *** [all] Error 2 ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 15:37 Message: I'll try revision 5096 instead (the "release revision" for 0.4.1, as I just discovered). Thanks for the support and thanks for developing freeorion. ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 15:05 Message: Built gigi from the freeorion repo, see current PKGBUILD here: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gigi I used revision 5208 of the GG directory in the freeorion trunk, as listed here: http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/ When I compile freeorion revision 5211, this is the error and warning I get: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: In function ‘void Sleep(int)’: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:428:26: error: ‘TIME_UTC__’ is not a member of ‘boost’ /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp: At global scope: /home/alexander/archpackages/community/freeorion/trunk/src/freeorion-build/util/MultiplayerCommon.cpp:55:10: warning: ‘{anonymous}::temp_bool’ defined but not used [-Wunused-variable] make[2]: *** [CMakeFiles/core_static.dir/util/MultiplayerCommon.cpp.o] Error 1 make[1]: *** [CMakeFiles/core_static.dir/all] Error 2 Here is the configuration output when it looks for gigi: -- checking for module \'GiGi\' -- found GiGi, version 0.8.0 gcc 4.7.1 boost 1.50.0 gigi 0.8.0 (revision 5208 from the freeorion repo) ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2012-09-08 09:16 Message: Don't build against GG 0.8.0; use the modified version (based off the latest GG SVN) that's in the FreeOrion SVN repository. ---------------------------------------------------------------------- Comment By: Alexander Rødseth (alexanro) Date: 2012-09-08 08:24 Message: Hi, sorry for not providing all the details. It's: 64-bit Arch Linux freeorion revision 5211, checked out from subversion gigi 0.8.0 gcc 4.7.1 boost 1.50.0 It is freeorion 0.4.1 + SVN according to the changelog and it's the latest version of GCC. ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2012-09-07 00:35 Message: Also, it appears that the Arch Linux package marked out of date was a build of FreeOrion 0.4 not 0.4.1, which is the latest numbered release. I suggest packaging 0.4.1, probably built with a non-C++11 compiler, or making the necessary change yourself, as the latest SVN is a development version. Not that I mind having development builds put out frequently for as many platforms as possible, but I don't think it's suitable for a distro package manager... ---------------------------------------------------------------------- Comment By: Geoff Topping (geoffthemedio) Date: 2012-09-07 00:18 Message: What version of boost are you building against? The FreeOrion latest SVN version already has been patched to deal with this issue when building against boost 1.50 or later, which is reportedly the version in which boost renamed that enum. If you're getting that error, I assume it's because you're building against boost 1.49 or earlier, or not up-to-date FreeOrion SVN code. See: http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/util/MultiplayerCommon.cpp?r1=5144&r2=5189 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=544942&aid=3565428&group_id=75752 |