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 invalidpreproce ssor 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.(noen dif)
#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.(longd oublenyi)
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 senderimmediate ly either by phone or reply to this e-mail, and delete all copiesof this message. 5 2147
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
I downloaded another copy and now when I compile I see the following
message:
cc: Error: ./Modules/posixmodule.c line 3007: In this
statement,"getg rp" expects 0 arguments, but 1 are supplied.
(toomanyargs)
return PyInt_FromLong( (long)getgrp(0) );
---------^
cc: Error: ./Modules/posixmodule.c line 3024: In this
statement,"setg rp" 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.loewi s.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
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,"getg rp" expects 0 arguments, but 1 are supplied. (toomanyargs) return PyInt_FromLong( (long)getgrp(0) ); ---------^ cc: Error: ./Modules/posixmodule.c line 3024: In this statement,"setg rp" 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
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.loewi s.de> wrote in message news:<41******* *******@v.loewi s.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,"getg rp" expects 0 arguments, but 1 are supplied. (toomanyargs) return PyInt_FromLong( (long)getgrp(0) ); ---------^ cc: Error: ./Modules/posixmodule.c line 3024: In this statement,"setg rp" 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
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 "libpython2 3.a"
Regards,
Martin This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 PL/Python module. Compilation failed on lines which had this:
typedef struct PLyPlanObject {
PyObject_HEAD;
...
} PLyPlanObject;
|
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 is not clear at all for me.
Can python run with a posix C compiler and minix or something like that ?
Thanks
|
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 build_ext
building 'lapack_lite -I ./Include Src/lapack_litemodule.c' extension
creating /Include Src
creating /Include Src/lapack_litemodule
|
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 V5.1a. I have
installed in the Alpha C++ and C version 6.5, and gcc 3.3 and GNU MAKE 3.8.
|
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) : "";
| |
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 support", "configure" selects following
from OSF1 template:
|
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 ./src/pl/plpython/plpython.c complaining on incomplete type "PyObject_HEAD".
The source of the problem were these two typedefs:
|
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 definition of NAN as:
#define NAN 0.0/0.0
|
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 patch is available at
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1597850&group_id=5470
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |