[Patches] [ python-Patches-405092 ] Modules/termios.c on Solaris 2.6/SPARC
nobody
nobody@sourceforge.net
Thu, 01 Mar 2001 22:54:09 -0800
Patches #405092, was updated on 2001-03-01 01:35
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405092&group_id=5470
Category: Modules
Group: None
Status: Closed
Priority: 5
Submitted By: The Written Word (china)
Assigned to: Fred L. Drake, Jr.
Summary: Modules/termios.c on Solaris 2.6/SPARC
Initial Comment:
Modules/termios.c does not build "out of the box" under
Solaris 2.6/SPARC because some values are undefined.
The attached patch fixes this. This leaves one error:
cc -mr -Qn -xO2 -xtarget=generic -I.
-I/opt/build/python-2.1/./Include -IInclude/
-I/usr/local/include -c
/opt/build/python-2.1/Modules/termios.c -o
build/temp.solaris-2.6-sun4u-2.1/termios.o
"/opt/build/python-2.1/Modules/termios.c", line 405:
warning: initializer does not fit or is out of range:
0x80000000
The value of CRTSCTS in <sys/termios.h> is:
#define CRTSCTS 020000000000
which does not fit in a "long":
static struct constant {
char *name;
long value;
} termios_constants[] = {
Changing value to 'unsigned long' fixes this but I do
not know what repercussions this will have.
----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr.
Date: 2001-03-01 22:54
Message:
Logged In: YES
user_id=3066
Fixed in Modules/termios.c revision 2.18.
----------------------------------------------------------------------
Comment By: The Written Word (china)
Date: 2001-03-01 22:20
Message:
Logged In: YES
user_id=119770
Ok, looks like attaching files does not work. You can find a
version here:
ftp://ftp.thewrittenword/outgoing/pub/python-2.1-termios.patch
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405092&group_id=5470