[Python-bugs-list] [ python-Bugs-486099 ] socketmodule won't compile on BSDI 4.0

noreply@sourceforge.net noreply@sourceforge.net
Tue, 27 Nov 2001 12:07:24 -0800


Bugs item #486099, was opened at 2001-11-27 10:19
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=486099&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
>Assigned to: Martin v. Löwis (loewis)
Summary: socketmodule won't compile on BSDI 4.0

Initial Comment:
Trying to build 2.2b2 on  BSDI BSD/OS 4.0 with gcc
2.7.2.1 and gcc 2.95.2, and the socket module won't
build.  No problems building socket for Python 2.1.1
on this same machine.

% ./configure  --with-threads=no

# for socket(2), without SSL support.
_socket socketmodule.c

% gmake
gcc -D_HAVE_BSDI -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DHAVE_CONFIG_H   -c
./Modules/socketmodule.c -o Modules/socketmodule.o
In file included from ./Modules/socketmodule.c:187:
/usr/local/packages/gcc-2.95.2/lib/gcc-lib/i386-pc-bsdi4.0/2.95.2/include/stddef.h:280:
conflicting types for `wint_t'
/usr/include/wchar.h:7: previous declaration of
`wint_t'
In file included from ./Modules/socketmodule.c:236:
Modules/getaddrinfo.c: In function `gai_strerror':
Modules/getaddrinfo.c:205: `EAI_MAX' undeclared (first
use in this function)
Modules/getaddrinfo.c:205: (Each undeclared identifier
is reported only once
Modules/getaddrinfo.c:205: for each function it appears
in.)
Modules/getaddrinfo.c: In function `getaddrinfo':
Modules/getaddrinfo.c:285: `EAI_BADHINTS' undeclared
(first use in this function)
Modules/getaddrinfo.c:286: `AI_MASK' undeclared (first
use in this function)
Modules/getaddrinfo.c:376: `EAI_PROTOCOL' undeclared
(first use in this function)
Modules/getaddrinfo.c:464: `AI_NUMERICHOST' undeclared
(first use in this function)
./Modules/socketmodule.c: In function
`PySocketSock_init':
./Modules/socketmodule.c:1818: warning: function
declaration isn't a prototype
./Modules/socketmodule.c: In function
`PySocket_fromfd':
./Modules/socketmodule.c:2304: warning: function
declaration isn't a prototype
gmake: *** [Modules/socketmodule.o] Error 1


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

>Comment By: Tim Peters (tim_one)
Date: 2001-11-27 12:07

Message:
Logged In: YES 
user_id=31435

Assigned to Martin.

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

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