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 4 1600
On Tue, 24 May 2005 13:20:01 +0200, Bram Stolk <br**@geenspam. sara.nl>
declaimed the following in comp.lang.pytho n: $ 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.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG < wu******@dm.net | Bestiaria Support Staff < =============== =============== =============== =============== == < Home Page: <http://www.dm.net/~wulfraed/> < Overflow Page: <http://wlfraed.home.ne tcom.com/> <
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.pytho n:
$ 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
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*****@bullsey e.apana.org.au (pref) | Snail: PO Box 370 an*****@pcug.or g.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
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_T IME
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*****@bullsey e.apana.org.au (pref) | Snail: PO Box 370 an*****@pcug.or g.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. I'd
like to hear comments about how usable the resulting Python is likely
to be, and how to fix some of the install errors. So far I don't
know Python. I plan to learn it on this system, which is also where
it is needed.
Here is how I did the...
|
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 SGI/IRIX 6.5) appears.
The docs say that the use of MPI+dlopen requires a call to MPI_Init_thread
before the dlopen. I wonder how I can build a shared module using
mpi if it blocks inside the dlopen ! It looks like the dlopen itself
blocks at the...
|
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, but got errors when I run "make
test".
|
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 discovered the following:
- My compile line should resemble:
CC -D_PTHREADS -D_POSIX_C_SOURCE=199506L -LANG:std -n32 -mips3 -c
<src> -o <obj>
- My link line should resemble:
CC -LANG:std -n32 -mips3 <objs> -o <executable> -lpthread
|
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?
Thank you,
Christopher Lusardi
| |
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 the class. I have listed a short
sample code and resulting error messages at the end of
this posting.
Is there a known work-around that fixes this "inside
the class" problem for SGI compilers -- short of
upgrading beyond v7.2.1?
|
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 compiler. The compiler complains
about a missing semi-colon in a template class and I don't see the error. I
must admit I am very weak in the area of templates but I think the program
compiled with the older version, can't say for sure, though....
|
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 statement under Irix. Is this really an SGI implementation bug,
or have I done something stupid? (Other than trying to use nothrow
new(), that is ;-) )
#include <new>
#include <stdexcept>
|
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 I pass the htmllib.HTMLParser UTF-8 code, it chokes. The
code is something like this:
prs = self.parserclass(formatter.NullFormatter())
prs.init()
|
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: 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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: 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...
| |