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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 21 Oct 2001 00:24:58 -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: Guido van Rossum (gvanrossum)
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: 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