473,489 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IRIX MipsPro compiler chokes on Python.h

Hi there,

I just built and installed Python-2.4.1 on my Irix machine.
My compiler, the MipsPro compiler, chokes on the Python.h include file,
as demonstrated here:
$ CC -v
MIPSpro Compilers: Version 7.41
$ python -V
Python 2.4.1
$ cat l.cxx
#include <Python.h>

int main()
{
return 0;
}

$ CC -I $HOME/include/python2.4 l.cxx
cc-1311 CC: ERROR File = /usr/include/sys/time.h, Line = 186
The indicated linkage specification is incompatible with previous "select"
(declared at line 479 of "/usr/include/unistd.h").

static int select(
^

1 error detected in the compilation of "l.cxx".

Has anyone experienced the same?
How do I solve this?

Thanks,

Bram Stolk
Jul 19 '05 #1
4 1575
On Tue, 24 May 2005 13:20:01 +0200, Bram Stolk <br**@geenspam.sara.nl>
declaimed the following in comp.lang.python:
$ cat l.cxx
Isn't ".cxx" a "C++" indicator? I think Python is just plain C,
so you'd have to wrap everything to indicate C style naming in the
compiler output.

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #2
Dennis Lee Bieber wrote:
On Tue, 24 May 2005 13:20:01 +0200, Bram Stolk <br**@geenspam.sara.nl>
declaimed the following in comp.lang.python:

$ cat l.cxx

Isn't ".cxx" a "C++" indicator? I think Python is just plain C,
so you'd have to wrap everything to indicate C style naming in the
compiler output.


extern "C"
{
#include <Python.h>
}

....gives the same result.

Bram

Jul 19 '05 #3
Bram Stolk wrote:
Hi there,

I just built and installed Python-2.4.1 on my Irix machine.
My compiler, the MipsPro compiler, chokes on the Python.h include file,
as demonstrated here:
$ CC -v
MIPSpro Compilers: Version 7.41
$ python -V
Python 2.4.1
$ cat l.cxx
#include <Python.h>

int main()
{
return 0;
}

$ CC -I $HOME/include/python2.4 l.cxx
cc-1311 CC: ERROR File = /usr/include/sys/time.h, Line = 186
The indicated linkage specification is incompatible with previous "select"
(declared at line 479 of "/usr/include/unistd.h").

static int select(
^

1 error detected in the compilation of "l.cxx".

Has anyone experienced the same?
How do I solve this?


My suspicion would be directed to a #define that is incorrect, as the
snippet above suggests that select() appears in two system headers
(/usr/include/sys/time.h & /usr/include/unistd.h).

That is ./configure got something wrong and may need to be modified for
your platform to sort this out properly, but modifying pyconfig.h to
correct the incorrect definitions should get you out of trouble.

-------------------------------------------------------------------------
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Jul 19 '05 #4
Andrew MacIntyre wrote:
My suspicion would be directed to a #define that is incorrect, as the
snippet above suggests that select() appears in two system headers
(/usr/include/sys/time.h & /usr/include/unistd.h).
thanks for the info.
I need to undef the following from my pyconfig.h to make it pass the
compiler:

HAVE_SYS_TIME_H
TIME_WITH_SYS_TIME

Bram

That is ./configure got something wrong and may need to be modified for
your platform to sort this out properly, but modifying pyconfig.h to
correct the incorrect definitions should get you out of trouble.

-------------------------------------------------------------------------
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia

Jul 19 '05 #5

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

Similar topics

2
1902
by: Nick Hawthorn | last post by:
I've just installed Python 2.3.1 on a SGI system running Irix 6.5, using the SGI versions of cc and CC, as the local gcc is broken. There were a lot of error messages, which seems to be normal. ...
0
1503
by: Marc Poinot | last post by:
Hi, I'm trying to add a dynamic module using MPI on a 2.3.4 Python with threads (posix). The interpreter blocks into the dlopen (dynload_shlib.c) if any reference to the IRIX libmpi.so (actually...
0
989
by: fdu.xiaojf | last post by:
Hi, everyone, I'm a newbie in python. Does someone have experience about how to install python on IRIX ? I have tried several times but without success. "./configure" and "make" are both ok,...
6
2206
by: Evan David Light | last post by:
After agonizing over this problem for a few days, I've decided to seek help. No, not the variety that involes a jacket that zips up the back but this august body of intrepid individuals. I've...
4
2011
by: Christopher M. Lusardi | last post by:
Hello, Can I run the subject line program using CC instead of cc? I attempted to use the "-c" option and it told me things were undefined. Isn't this CC option the same as the cc -c option? ...
0
1130
by: r5 | last post by:
I'm using the MIPSpro Compiler and having trouble defining a function template (involving array size specifiers as template arguments) inside a class. The same definition compiles fine outside...
3
1235
by: William Payne | last post by:
Hi, I recently upgraded my compiler to a version that's a lot more touchy about code not conforming to the ISO standard. Right now I am in the process of compiling my old programs with the new...
3
2453
by: Roger Davis | last post by:
I am trying to use nothrow new() and am encountering what seems to be a bug in the SGI/Irix C++ environment. The following program runs OK under Solaris and Linux, but dumps core at the delete...
5
7300
by: Johannes Bauer | last post by:
Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
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...
1
6847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5445
agi2029
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,...
0
4565
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
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 ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.