[Python-bugs-list] [ python-Bugs-472675 ] CVS socketmodule now doesn't compile

noreply@sourceforge.net noreply@sourceforge.net
Mon, 22 Oct 2001 12:01:45 -0700


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

Category: Build
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Favas (mfavas)
Assigned to: Martin v. Löwis (loewis)
Summary: CVS socketmodule now doesn't compile

Initial Comment:
As of 17 October, the CVS version of socketmodule.c
fails to compile on Tru64 Unix, V4.0F with Compaq's C
compiler. Results:

building '_socket' extension
cc: Error: Modules/socketmodule.c, line 2820: An
unexpected newline character is present in a string 
literal. (nlstring)
"RAND_egd(path) -> bytes
^
cc: Warning: Modules/socketmodule.c, line 2821: Invalid
token discarded. (invaltoken)
\n\
^
cc: Warning: Modules/socketmodule.c, line 2822: Invalid
token discarded. (invaltoken)
Queries the entropy gather daemon (EGD) on socket
path.  Returns number\n\
-----------------------------------------------------------------------^
cc: Warning: Modules/socketmodule.c, line 2823: Invalid
token discarded. (invaltoken)
of bytes read.  Raises socket.sslerror if connection to
EGD fails or\n\
--------------------------------------------------------------------^
cc: Error: Modules/socketmodule.c, line 2824: An
unexpected newline character is present in a string 
literal. (nlstring)
if it does provide enough data to seed PRNG.";
--------------------------------------------^
cc: Error: Modules/socketmodule.c, line 3037: In this
statement, "PySocket_methods" is not declared. 
(undeclared)
        m = Py_InitModule3("_socket", PySocket_methods,
module_doc);
------------^
/bin/cc -O -Olimit 1500 -DUSE_SSL=1
-I/usr/local/ssl/include -I. -I./Include
-I/usr/local/include -IInclude/ -c
Modules/socketmodule.c -o
build/temp.osf1-V4.0-alpha-2.2/socketmodule.o
WARNING: building of extension "_socket" failed:
command '/bin/cc' failed with exit status 1


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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-10-22 12:01

Message:
Logged In: YES 
user_id=21627

Ralf,

Please do open a new bug report for this. I will need the 
pyconfig.h of your system, since I cannot understand why 
EAI_MAX isn't defined. Since you probably cannot attach 
files to this report, we'll need to open a new one; please 
assign this to me as well.

EAI_MAX ought to be defined in addrinfo.h, unless 
HAVE_GETADDRINFO is defined, in which case getaddrinfo.c 
should not get included. The only option I can see is that 
__APPLE__ is defined, which would be very strange...

Mark, can you please comment on whether socketmodule.c 
compiles for you now? It appears that you have a similar 
system.

Besten Dank im voraus!



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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-21 18:04

Message:
Logged In: YES 
user_id=6380

Mark's original problem was indeed fixed by adding the \n\.

I'm keeping this open because of the new bug report. As it
is IPv6-related, I've assigned this bug report to Martin.
(rwgk, next time please open a new bug report rather than
attaching a message to an existing report of a different
bug!)

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

Comment By: Ralf W. Grosse-Kunstleve (rwgk)
Date: 2001-10-21 00:24

Message:
Logged In: YES 
user_id=71407

The Python-2.2b1 socketmodule also fails to compile
under Tru64 5.1.

My configure command:

./configure --prefix=/usr/local/Python-2.2b1 --disable-ipv6

The error messages:

cc -O -Olimit 1500 -I. -I/net/ringneck/scratch1/rwgk/Python-
2.2b1/./Include -I/usr/local/include -IInclude/ -
c /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/socketmodule.c -o build/temp.osf1-V5.1-alpha-
2.2/socketmodule.o
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 205: In this 
statement, "EAI_MAX" is not declared. (undeclared)
        if (ecode < 0 || ecode > EAI_MAX)
---------------------------------^
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 285: In this 
statement, "EAI_BADHINTS" is not declared. (undeclared)
                        ERR(EAI_BADHINTS); /* xxx */
------------------------^
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 286: In this 
statement, "AI_MASK" is not declared. (undeclared)
                if (hints->ai_flags & ~AI_MASK)
---------------------------------------^
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 320: In this 
statement, "EAI_BADHINTS" is not declared. (undeclared)
                                ERR
(EAI_BADHINTS);      /*xxx*/
--------------------------------^
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 326: In this 
statement, "EAI_BADHINTS" is not declared. (undeclared)
                                ERR
(EAI_BADHINTS);      /*xxx*/
--------------------------------^
cc: Error: /net/ringneck/scratch1/rwgk/Python-
2.2b1/Modules/getaddrinfo.c, line 376: In this 
statement, "EAI_PROTOCOL" is not declared. (undeclared)
                                        ERR
(EAI_PROTOCOL);      /*xxx*/
----------------------------------------^
WARNING: building of extension "_socket" failed: 
command 'cc' failed with exit status 1


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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-19 05:32

Message:
Logged In: YES 
user_id=6380

Mark, I believe this can be fixed by adding \n\ at the end
of the first line of the docstring for RAND_egd() -- line
2821.  Can you test that?

(Is this something you could have figured out yourself? We'd
have appreciated a patch. :-)

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

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