473,320 Members | 1,930 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,320 software developers and data experts.

Installing python on lynxOS

I'm trying to install python2.4.2 onto lynxOS 4.0.0. with gcc 2.95.3.
I was wondering if anyone who has done this before could give me some
pointers.

I'm currently getting the following error when running make:

gcc -o python Module/python.o libpython2.4.a -lsocket -lm
called2:ld returned 1 exit status
libpython2.4.a(pystate.o):In function 'PyThreadState_New':
Python2.4.2/pystate.c:191: undefined reference to
'_PyGILState_NoteThreadState'
called2:ld returned 1 exit status

I checked pystate.c and the function _PyGILState_NoteThreadState is
defined in the file, so I'm a bit lost here.

--
Bryce

Feb 17 '06 #1
1 1544
Quoth "Bryce" <Br**********@gmail.com>:
| I'm trying to install python2.4.2 onto lynxOS 4.0.0. with gcc 2.95.3.
| I was wondering if anyone who has done this before could give me some
| pointers.
|
| I'm currently getting the following error when running make:
|
| gcc -o python Module/python.o libpython2.4.a -lsocket -lm
| called2:ld returned 1 exit status
| libpython2.4.a(pystate.o):In function 'PyThreadState_New':
| Python2.4.2/pystate.c:191: undefined reference to
| '_PyGILState_NoteThreadState'
| called2:ld returned 1 exit status
|
| I checked pystate.c and the function _PyGILState_NoteThreadState is
| defined in the file, so I'm a bit lost here.

If you look about 50 lines up from there, you'll see that it's
conditional on the WITH_THREAD preprocessor macro.

If it's not defined because LynxOS doesn't have threads or at any
rate there isn't a usable thread implementation among the existing
thread_xyz.c options, you might be able to get past this problem by
writing a trivial version of the function for the case where WITH_THREAD
is not defined. I haven't looked at it, to know for sure what would
be appropriate - maybe it was put inside WITH_THREAD in error, in the
first place, for all I know.

If you think you probably should be getting threads, then look at
pyconfig.h to verify this.

Donn Cave, do**@drizzle.com
Feb 17 '06 #2

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

Similar topics

0
by: Francesco Bochicchio | last post by:
A couple of days ago, at work, I managed to compile and install Python 2.3.4 on LynxOS 4.0 ; it just needed a couple of manual fixing for ./configure bad guesses ( snprintf and /bin/install ). It...
3
by: Fabio Garufi | last post by:
Hi, all, I built the fftw-3.0.1-fma on a LynxOS 4.0 running on a board equipped with a PowerPC G4 7457. To compile it I had to slightly modify the configure script to use the -fvec instead of...
1
by: mrstephengross | last post by:
I'm working on building python 2.4.2 with the mingw compiler (on cygwin). It runs into problems with Modules/posixmodule.c, because the mingw compiler does *not* provide complex process management...
5
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.