Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

Compile bug in CVS mmapmodule.c of 31 March (PR#258)

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


m.favas at per

Mar 30, 2000, 8:05 PM

Post #1 of 3 (80 views)
Permalink
Compile bug in CVS mmapmodule.c of 31 March (PR#258)

Full_Name: Mark Favas
Version: 1.5.2+ (current CVS)
OS: Tru64 Unix
Submission from: wa-proxy.csiro.au (130.116.2.3)


Compiling mmapmodule.c from CVS of 31 March 2000 on Tru64 Unix with Compaq C
version Compaq C V6.1-110 (dtk) on Digital UNIX V4.0F (Rev. 1229) produces
the following errors:

cc -O -Olimit 1500 -I./../Include -I.. -DHAVE_CONFIG_H -c ./mmapmodule.c
cc: Error: ./mmapmodule.c, line 121: In this statement, "where" and "0" cannot
be compared with a relational operator. (norelational)
if ((where >= 0) && (where < (self->data+self->size))) {
-------------^
cc: Warning: ./mmapmodule.c, line 620: In this statement, the referenced type
of
the pointer value "PyString_AsString(...)" is "char", which is not compatible
with "unsigned char". (ptrmismatch)
buf = PyString_AsString(v);
--------^
cc: Warning: ./mmapmodule.c, line 643: In this statement, the referenced type
of
the pointer value "PyString_AsString(...)" is "char", which is not compatible
with "unsigned char". (ptrmismatch)
buf = PyString_AsString(v);
--------^


guido at python

Mar 31, 2000, 10:45 AM

Post #2 of 3 (81 views)
Permalink
Re: Compile bug in CVS mmapmodule.c of 31 March (PR#258) [In reply to]

> Compiling mmapmodule.c from CVS of 31 March 2000 on Tru64 Unix with Compaq C
> version Compaq C V6.1-110 (dtk) on Digital UNIX V4.0F (Rev. 1229) produces
> the following errors:
>
> cc -O -Olimit 1500 -I./../Include -I.. -DHAVE_CONFIG_H -c ./mmapmodule.c
> cc: Error: ./mmapmodule.c, line 121: In this statement, "where" and "0" cannot
> be compared with a relational operator. (norelational)
> if ((where >= 0) && (where < (self->data+self->size))) {
> -------------^
> cc: Warning: ./mmapmodule.c, line 620: In this statement, the referenced type
> of
> the pointer value "PyString_AsString(...)" is "char", which is not compatible
> with "unsigned char". (ptrmismatch)
> buf = PyString_AsString(v);
> --------^
> cc: Warning: ./mmapmodule.c, line 643: In this statement, the referenced type
> of
> the pointer value "PyString_AsString(...)" is "char", which is not compatible
> with "unsigned char". (ptrmismatch)
> buf = PyString_AsString(v);
> --------^

Mark, it seems that these can all be fixed with casts. Can you
prepare a patch and mail it to patches [at] python? If I do it, I
can't test that the patch actually works on your platform...

--Guido van Rossum (home page: http://www.python.org/~guido/)


guido at python

Mar 31, 2000, 10:48 AM

Post #3 of 3 (81 views)
Permalink
Re: Compile bug in CVS mmapmodule.c of 31 March (PR#258) [In reply to]

> Compiling mmapmodule.c from CVS of 31 March 2000 on Tru64 Unix with Compaq C
> version Compaq C V6.1-110 (dtk) on Digital UNIX V4.0F (Rev. 1229) produces
> the following errors:
>
> cc -O -Olimit 1500 -I./../Include -I.. -DHAVE_CONFIG_H -c ./mmapmodule.c
> cc: Error: ./mmapmodule.c, line 121: In this statement, "where" and "0" cannot
> be compared with a relational operator. (norelational)
> if ((where >= 0) && (where < (self->data+self->size))) {
> -------------^
> cc: Warning: ./mmapmodule.c, line 620: In this statement, the referenced type
> of
> the pointer value "PyString_AsString(...)" is "char", which is not compatible
> with "unsigned char". (ptrmismatch)
> buf = PyString_AsString(v);
> --------^
> cc: Warning: ./mmapmodule.c, line 643: In this statement, the referenced type
> of
> the pointer value "PyString_AsString(...)" is "char", which is not compatible
> with "unsigned char". (ptrmismatch)
> buf = PyString_AsString(v);
> --------^

Mark, it seems that these can all be fixed with casts. Can you
prepare a patch and mail it to patches [at] python? If I do it, I
can't test that the patch actually works on your platform...

--Guido van Rossum (home page: http://www.python.org/~guido/)

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.