[Python-bugs-list] [ python-Bugs-458880 ] gcc -Wall and getaddrinfo.c

noreply@sourceforge.net noreply@sourceforge.net
Fri, 07 Sep 2001 09:23:43 -0700


Bugs item #458880, was opened at 2001-09-05 13:31
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=458880&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 2
Submitted By: Jack Jansen (jackjansen)
Assigned to: Martin v. Löwis (loewis)
Summary: gcc -Wall and getaddrinfo.c

Initial Comment:
gcc -Wall -Wstrict-prototypes complains about all sorts of thing in socketmodule.c and
its friends getaddrinfo.c and such.

Assigned to Martin because he seems to be the most active with this IPV6 stuff (at which
point these problems were introduced), but feel free to drop it, assign it back, whatever.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-09-07 09:23

Message:
Logged In: YES 
user_id=21627

I've now fixed the getaddrinfo problems; I did not see them
because getaddrinfo is not used on the systems which I
regularly use (Linux, Solaris 8). 

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-07 07:46

Message:
Logged In: YES 
user_id=6380

The warnings for getaddrinfo.c are correct: this uses a K&R
style function definition for getaddrinfo(), and some braces
around a complex statement would be enough to shut up the
compiler.  Martin, can you fix this?  (I wonder why you
didn't you get these warnings?)

For the warnings about socketmodule.c: these are spurious,
caused by poor definitions for SIG_IGN in <socket.h>. 
That's Apple's problem.  See bug #458878.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2001-09-07 02:41

Message:
Logged In: YES 
user_id=45365

I've attached the error output from the build.

----------------------------------------------------------------------

Comment By: Jack Jansen (jackjansen)
Date: 2001-09-07 02:39

Message:
Logged In: YES 
user_id=45365

I've attached the error output from the build.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2001-09-06 00:47

Message:
Logged In: YES 
user_id=21627

Can you please report what the compiler says? On all of my
systems, getaddrinfo.c isn't used, since the C library
offers its own getaddrinfo/getnameinfo (which actually
works, compared to the one on OS X :-).

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=458880&group_id=5470