473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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


I am attempting to compile Python 2-3.4 on Tru64 UNIX V4.0F. Whenever Iissue 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 invalidpreprocessor 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 longdouble 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 helpwould be appreciated.
Sam
____________________
Confidentiality Notice:
This message is intended exclusively for the individual or entity to whichit is addressed. This communication may contain information that isproprietary, privileged, confidential or otherwise legally exempt fromdisclosure. If you are not the named addressee, you are not authorized toread, print, retain, copy or disseminate this message or any part of it.If you have received this message in error, please notify the senderimmediately either by phone or reply to this e-mail, and delete all copiesof this message.
Jul 18 '05 #1
5 2123
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
Jul 18 '05 #2
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" <ma****@v.loewis.de> wrote in message news:<41***********************@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

Jul 18 '05 #3
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
Jul 18 '05 #4
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" <ma****@v.loewis.de> wrote in message news:<41**************@v.loewis.de>...
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

Jul 18 '05 #5
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
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nikola Milutinovic | last post by:
Hi all. I'm not subscribed to the list, so all replies to me mail directly. I ran into a small problem, for which we have found a workaround. I was compiling PostgreSQL v7.4.1 and it's...
4
by: RosalieM | last post by:
I would like to understand what python needs to work on unix. And to understand how i can make it smalest possible? I dont understand at all setup. I searched in python.org and in sources but it...
0
by: Unixtrekkor | last post by:
I am unable to successfully compile Numeric 23-3.3. I running python 2.3.4. Running python setup.py install yields the following error: running install running build running build_py running...
0
by: julio | last post by:
------=_NextPart_000_0019_01C2D0F9.BFBD6610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello There, I try to compiling Mysql V4.0 in the Alpha/Tru64 Unix...
2
by: jose luis fernandez diaz | last post by:
Hi, When I run the program below on Tru64: #include <string> int main() { char *cad="hola"; string s1 = 1 ? string(cad, 0, 2) : "";
2
by: Nikola Milutinovic | last post by:
Hi guys. Building 7.4 "as we speak". I've run into one minor building bug. HW: DEC AlphaStation 200 OS: Digital UNIX 4.0D + SP9 PG: 7.4 sources When I choose to build "with threading...
0
by: Nikola Milutinovic | last post by:
Hi all. OS: Tru64 UNIX 4.0d PG: PostgreSQL v7.4.1 PY: Python v2.3.3 I just ran into a minor bug while compiling PL/Python module. It bombed outon lines 153 and 160 of...
3
by: Nikola Milutinovic | last post by:
Hi guys. I have just had some problems resolved while building PostgreSQL 7.4.2 on Tru64 UNIX 5.1B. File "./src/backend/utils/adt/float.c" uses "NAN" on two spots. It ahs a fall-back...
1
by: Han-Wen Nienhuys | last post by:
Hello, I have a small patch for Python SVN that makes it possible to cross-compile python on Unix to various other Unix targets. I have successfully built a binary for FreeBSD on Linux. The...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.