Hello,
I have now recompiled widelands without the debian patches. But with the following modifications:
bzr diff === modified file 'src/logic/cmd_queue.cc' --- src/logic/cmd_queue.cc 2012-02-15 21:25:34 +0000 +++ src/logic/cmd_queue.cc 2012-07-25 16:23:19 +0000 @@ -114,6 +114,7 @@ std::priority_queue<cmditem> & current_cmds = m_cmds[game_time_var % CMD_QUEUE_BUCKET_SIZE];
while (current_cmds.size()) { + assert(!current_cmds.empty()); Command & c = *current_cmds.top().cmd; if (game_time_var < c.duetime()) break;
=== modified file 'src/main.cc' --- src/main.cc 2012-02-15 21:25:34 +0000 +++ src/main.cc 2012-07-25 17:01:03 +0000 @@ -36,6 +36,8 @@ #include <fcntl.h> #endif
+#include <unistd.h> + using std::cerr; using std::endl; using std::flush;
Also without the Debian patches, the segfault occurs!
Greetings Juergen
Hello,
I have now recompiled widelands without the debian patches. But with the following modifications:
bzr diff cmd_queue. cc' cmd_queue. cc 2012-02-15 21:25:34 +0000 cmd_queue. cc 2012-07-25 16:23:19 +0000 :priority_ queue<cmditem> & current_cmds = m_cmds[ game_time_ var % CMD_QUEUE_ BUCKET_ SIZE];
=== modified file 'src/logic/
--- src/logic/
+++ src/logic/
@@ -114,6 +114,7 @@
std:
while (current_ cmds.size( )) { !current_ cmds.empty( )); cmds.top( ).cmd;
+ assert(
Command & c = *current_
if (game_time_var < c.duetime())
break;
=== modified file 'src/main.cc'
--- src/main.cc 2012-02-15 21:25:34 +0000
+++ src/main.cc 2012-07-25 17:01:03 +0000
@@ -36,6 +36,8 @@
#include <fcntl.h>
#endif
+#include <unistd.h>
+
using std::cerr;
using std::endl;
using std::flush;
Also without the Debian patches, the segfault occurs!
Greetings
Juergen