Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling Python 2-3.4 on Tru64 UNIX V4.0F

Reply
Thread Tools

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

 
 
Heuguette Bostic
Guest
Posts: n/a
 
      09-07-2004

I am attempting to compile Python 2-3.4 on Tru64 UNIX V4.0F. Whenever I issue the make command, the following errors are output:

-pthread -ieee -std -Olimit 1500 -DNDEBUG -O -I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o
cc: Warning: ./Modules/posixmodule.c, line 3007: "return" is an invalid preprocessor directive, and is being ignored. (baddirective)
# return PyInt_FromLong((long)getpgrp(0));
--------^
cc: Error: ./Modules/posixmodule.c, line 3025: Missing ")". (norightparen)
# if (setpgrp(0, 0) < 0)
-------------------^
cc: Warning: ./Modules/posixmodule.c, line 3016: Missing #endif directive. (noendif)
#ifdef HAVE_SETPGRP
-^
cc: Info: ./Include/objimpl.h, line 255: In this declaration, type long double has the same representation as type double on this platform. (longdoublenyi)
long double dummy; /* force worst-case alignment */
--------^
*** Exit 1
Stop.


Does anyone have any suggestions to help me resolve this problem? Any help would be appreciated.


Sam


____________________
Confidentiality Notice:
This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged, confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately either by phone or reply to this e-mail, and delete all copies of this message.
 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      09-07-2004
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
 
Reply With Quote
 
 
 
 
Unixtrekkor
Guest
Posts: n/a
 
      09-09-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" <(E-Mail Removed)> wrote in message news:<413dffc2$0$13052$(E-Mail Removed)>.. .
> 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

 
Reply With Quote
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      09-09-2004
Unixtrekkor wrote:
> 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.


As a work-around, you could edit pyconfig.h, and remove the
mentioning of HAVE_GETPGRP and HAVE_SETPGRP. Then, these wrappers
won't get compiled.

Regards,
Martin
 
Reply With Quote
 
Unixtrekkor
Guest
Posts: n/a
 
      09-17-2004
I made it past the compilation errors by editing pyconfig.h.in. The
setgrp and getgrp module settings were set to undef. Now I see the
following errors:

rm -r /lgyr/library/lib
ar cr /lgyr/library/lib Modules/getbuildinfo.o
ar: Error: /lgyr/library/lib not in archive format
*** Exit 1
Stop

Does anyone know what library should be used? Thanks.

Heuguette

"Martin v. L÷wis" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Unixtrekkor wrote:
> > 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.

>
> As a work-around, you could edit pyconfig.h, and remove the
> mentioning of HAVE_GETPGRP and HAVE_SETPGRP. Then, these wrappers
> won't get compiled.
>
> Regards,
> Martin

 
Reply With Quote
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      09-17-2004
Unixtrekkor wrote:
> I made it past the compilation errors by editing pyconfig.h.in. The
> setgrp and getgrp module settings were set to undef. Now I see the
> following errors:
>
> rm -r /lgyr/library/lib
> ar cr /lgyr/library/lib Modules/getbuildinfo.o
> ar: Error: /lgyr/library/lib not in archive format
> *** Exit 1
> Stop
>
> Does anyone know what library should be used?


It appears that for some reason, LIBRARY is set to /lgyr/library/lib
in your Makefile. How did you manage that to happen? Where does the
/lgyr string come from? LIBRARY should be "libpython23.a"

Regards,
Martin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble compiling numeric module on TRU64 UNIX Unixtrekkor Python 0 09-24-2004 06:14 PM
mod_jk2 compilation issues on tru64 with gcc William Rusch C Programming 2 03-05-2004 02:56 AM
Problems installing netforge on Tru64 jose luis fernandez diaz Java 0 02-13-2004 01:07 PM
why this program is wrong on Tru64 OS ? jose luis fernandez diaz C++ 2 11-26-2003 07:46 AM
How to build/install DCOracle2 on tru64 5.1 the_rev_dharma_roadkill Python 0 07-27-2003 10:27 PM



Advertisments