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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 19 Oct 2001 05:32:39 -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: 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