Compiling Python 2-3.4 on Tru64 UNIX V4.0F

Unixtrekkor hbostic at santeecooper.com
Thu Sep 9 12:30:50 EDT 2004


I downloaded another copy and now when I compile I see the following
message:

cc: Error: ./Modules/posixmodule.c line 3007:  In this
statement,"getgrp" expects 0 arguments, but 1 are supplied. 
(toomanyargs)
         return PyInt_FromLong((long)getgrp(0));
---------^
cc: Error: ./Modules/posixmodule.c line 3024:  In this
statement,"setgrp" expects 0 arguments, but 2 are supplied. 
(toomanyargs)
         if (setgrp(0, 0) < 0)
-------------^
*** Exit 1
Stop.

I am looking for the format of the getgrp and setgrp commands.  Thanks
for your help.

Heuguette

"Martin v. Löwis" <martin at v.loewis.de> wrote in message news:<413dffc2$0$13052$9b622d9e at news.freenet.de>...
> Heuguette Bostic wrote:
> > cc: Warning: ./Modules/posixmodule.c, line 3007: "return" is an invalid preprocessor directive
> > #       return PyInt_FromLong((long)getpgrp(0));
> > --------^
>  [...]
> > Does anyone have any suggestions to help me resolve this problem?  Any help would be appreciated.
> 
> I would start with downloading the original Python source code. Line
> 3007 of posixmodule.c should not start with a hashmark. Why does it
> in your copy?
> 
> Regards,
> Martin



More information about the Python-list mailing list