[Freeciv-Dev] [bug #20070] read_timer_seconds() returns huge values on Windows (crosser-build)

2012-09-11 Thread Marko Lindqvist
Update of bug #20070 (project freeciv):

Category:None => bootstrap  
  Status:None => Invalid
 Assigned to:None => cazfi  
 Open/Closed:Open => Closed 

___

Follow-up Comment #4:

It seems this was compatibility problem with components built with two
different compilers. Once I recompiled also crosser with newer compiler,
freeciv built with newer compiler seems to work.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #20070] read_timer_seconds() returns huge values on Windows (crosser-build)

2012-08-21 Thread Marko Lindqvist
Follow-up Comment #3, bug #20070 (project freeciv):

> freelog("%d - %d (%d) = %d", a, b, time(NULL), b - a) 

Uh, I meant "%lu" instead of "%d".

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #20070] read_timer_seconds() returns huge values on Windows (crosser-build)

2012-08-21 Thread Marko Lindqvist
Follow-up Comment #2, bug #20070 (project freeciv):

Seems to depend on version of MinGW compiler. Downgrading made the problem go
away.
>From how far I got this debugged, seems quite much like compiler bug.

When added in the middle of the code segment giving funny results

b = time(NULL);
freelog("%d - %d (%d)  = %d", a, b, time(NULL), b - a)

gave inconsistent output, i.e., "b - a" was not what one would expect from "a"
and "b", and "b" and directly calling "time(NULL)" gave totally different
values.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #20070] read_timer_seconds() returns huge values on Windows (crosser-build)

2012-08-18 Thread Marko Lindqvist
Follow-up Comment #1, bug #20070 (project freeciv):

I tried to reproduce this in Linux by commenting out HAVE_GETTIMEOFDAY in
fc_config.h, and thus using same HAVE_FTIME code crosser build seems to be
using (from its fc_config.h) This worked in Linux. Further, making a crosser
build with also HAVE_FTIME commented out -> fallback even further to time()
does not fix the problem in Windows.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #20070] read_timer_seconds() returns huge values on Windows (crosser-build)

2012-08-16 Thread Marko Lindqvist
URL:
  

 Summary: read_timer_seconds() returns huge values on Windows
(crosser-build)
 Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 16 Aug 2012 09:52:10 PM EEST
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: Microsoft Windows
 Planned Release: 

___

Details:

User reported that server always cuts connection to remote client due to ping
timeout. So far we have debugged it down to fact that read_timer_seconds()
returns ping timer value (time between timer start and current time) to be
2^30*1000 seconds.

Also, selection circle animation does not work, which is presumably because
frame change timer does not work.

read_timer_seconds() uses stop_timer() to get the time, and it has several
different conditionally compiled implementations depending on what functions
are available on the platform - it makes sense that platform specific bug is
in there.




___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev