[Freeciv-Dev] [bug #21370] Compile errors on 32bit systems

2013-12-28 Thread Marko Lindqvist
Follow-up Comment #4, bug #21370 (project freeciv):

 plrhand.c:2227: error: ‘least_misfits’ may be used
 uninitialized in this function

 That must be my fault. I'll look into it.

I'll commit my current patches, but will leave this ticket open (though that
remaining compile problem doesn't sound like 64bit/32bit issue. More like
bad-heuristics-on-old-compiler.

___

Reply to this item at:

  http://gna.org/bugs/?21370

___
  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 #21370] Compile errors on 32bit systems

2013-12-26 Thread Jordi Negrevernis i Font
Follow-up Comment #2, bug #21370 (project freeciv):

I applied the patches to the branches and now S2_5 compiles and i played a few
with it and it seems to work correctly.

But trunk does not compile, it said:

  CC plrhand.lo
cc1: warnings being treated as errors
plrhand.c: In function ‘fit_nationset_to_players’:
plrhand.c:2227: error: ‘least_misfits’ may be used uninitialized in this
function
make[3]: *** [plrhand.lo] Error 1
make[3]: se sale del directorio «/home/jordi/freeciv/trunk/freeciv/server»
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio «/home/jordi/freeciv/trunk/freeciv/server»
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio «/home/jordi/freeciv/trunk/freeciv»
make: *** [all] Error 2


___

Reply to this item at:

  http://gna.org/bugs/?21370

___
  Mensaje enviado vía/por Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #21370] Compile errors on 32bit systems

2013-12-26 Thread Jacob Nevins
Follow-up Comment #3, bug #21370 (project freeciv):

 plrhand.c:2227: error: ‘least_misfits’ may be used uninitialized in this
function
That must be my fault. I'll look into it.

___

Reply to this item at:

  http://gna.org/bugs/?21370

___
  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 #21370] Compile errors on 32bit systems

2013-12-25 Thread Marko Lindqvist
Update of bug #21370 (project freeciv):

  Status:None = Ready For Test 

___

Follow-up Comment #1:

Can someone test if these patches help in 32bit systems?

(file #19520, file #19521)
___

Additional Item Attachment:

File name: 32bit.patchSize:1 KB
File name: 32bit-S2_5.patch   Size:1 KB


___

Reply to this item at:

  http://gna.org/bugs/?21370

___
  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 #21370] Compile errors on 32bit systems

2013-12-24 Thread Marko Lindqvist
URL:
  http://gna.org/bugs/?21370

 Summary: Compile errors on 32bit systems
 Project: Freeciv
Submitted by: cazfi
Submitted on: Tue 24 Dec 2013 10:09:25 AM EET
Category: general
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: 
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.5.0, 2.6.0

___

Details:

Jordi Negrevernis i Font wrote to freeciv-dev:
https://mail.gna.org/public/freeciv-dev/2013-12/msg00185.html

TRUNK:
registry_ini.c: In function ‘secfile_insert_include’:
registry_ini.c:1069: error: format ‘%lu’ expects type ‘long unsigned
int’, but argument 4 has type ‘size_t’

S2_5:
dataio.c: In function ‘dio_put_sint32’:
dataio.c:331: error: integer constant is too large for ‘long’ type
dataio.c: In function ‘dio_get_sint32’:
dataio.c:740: error: integer constant is too large for ‘long’ type


These seem to be from -Werror build (probably --enable-debug) as it says cc1:
warnings being treated as errors




___

Reply to this item at:

  http://gna.org/bugs/?21370

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


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