URL:
  <http://gna.org/bugs/?16623>

                 Summary: netintf.c gcc warnings in net_lookup_service
                 Project: Freeciv
            Submitted by: nixeagle
            Submitted on: Friday 09/03/2010 at 20:48
                Category: general
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: r17914
         Discussion Lock: Any
        Operating System: Microsoft Windows
         Planned Release: 

    _______________________________________________________

Details:

This bug is largely a copy paste of bug #16614 excluding all irrelevant parts
to the gcc warnings.

Configured with: 
 : ./autogen.sh --disable-make-data --disable-nls --enable debug=yes 
 : make

Using: 
 - gcc (GCC) 4.3.4 20090804 (release) 1 
 - Cygwin 6.8.99.903(260) 
 - Windows XP SP2, (cygwin/bash has OS=Windows_NT) (intel 32bit) 
 - automake (GNU automake) 1.8.5 
 - autoconf (GNU Autoconf) 2.65 
 - autoheader (GNU Autoconf) 2.65 
 - aclocal (GNU automake) 1.8.5 
 - GNU Make 3.81 
 - libtoolize (GNU libtool 1.3140 2009-12-30) 2.2.7a 


After taking a while to figure windows/cygwin/various deps and autotools
issues out (I'm new to the first two, on a netbook at the moment), please be
advised that I had to run export CFLAGS='\-Wall -Wpointer-arith -Wcast-align
-g -O2' to tell gcc to treat errors as only warnings. Turning --enable-debug
(I'm planning on hacking on this thing after all!) on seems to also turn on
-Werror which causes the build to fail on utils/netinit.c. I could not locate
the human generated source of it, but I did come across FC_CFLAGS in config.h
with -Werror set.

 : netintf.c: In function ‘net_lookup_service’: 
 : netintf.c:333: warning: implicit declaration of function
‘gethostbyname2’ 
 : netintf.c:333: warning: assignment makes pointer from integer without a
cast 
 : netintf.c:352: warning: assignment makes pointer from integer without a
cast

Please let me know if more information is required.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16623>

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


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

Reply via email to