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

Building python 2.4.2 on linux with static pthreads


I can build python 2.4.2 from source on the embedded linux box when I
nfs mount and boot a full debian distribution.
The embedded box also has stripped down linux distribution in onboard
flash.
My goal is to run python from the stripped down linux in onboard flash.

I can successfully install python to the onboard flash when booted to
the nfs version by using
make install with $DESTDIR set to the onboard flash mounted directory

I then reboot to the onboard flash and can run python from there.
This works if I build python without threading support because the
onboard flash does not include the
libpthread.so library
I need threading support for sockets etc.

I believe that if I can build python with pthread linked statically
then I should be able to run python when booted from the onboard
flash without problem.

Problem is I am clueless about how to do this. The setup and setup.py
files only deal with building modules static
or shared where as threading is build into the python interpreter it
seems not as a module.

I read the readme in the source distribution but can't find any
configure options that will let me build
python with static linking of the pthread library. I have searched
google and find vague references to doing something
like that. I don't understand the makefile well enough to know how to
do it there.

So does anyone understand how include threading support statically?
What I have to modify to do it?

When I tried to run python with shared threading support while booted
from the onboard flash it got the following error

../python: error while loading shared libraries: libpthread.so.0:
cannot open shared object
file: No such file or directory

I naively copied the pthread library from the nfs version to the
onboard flash version and rebooted and
ran python. This time I got the following error

/usr/local/bin/python: relocation error: /lib/libpthread.so.0: symbol
__libc_sigaction, ve
rsion GLIBC_2.2 not defined in file libc.so.6 with link time reference

so apparently I can't just copy shared libraries around.

An alternative solution would be to correctly copy the shared library?
Any help comments would be appreciated

Sam

************************************************** ********************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
************************************************** ********************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
************************************************** ********************

Nov 3 '05 #1
0 1747

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

Similar topics

9
by: Dan Cescato | last post by:
When I try to build Python 2.3 on HP-UX 10.20 using their cc compiler, I get a compile failure. It comes down to Python/thread_pthread.h deciding that my machine is an unsupported system, as...
10
by: Berthold Hoellmann | last post by:
Hello, When I use ./configure --with-thread --with-fpectl --with-signal-module \ --with-pymalloc --enable-shared --with-cxx=g++ make test on 2.3.3 I get
1
by: francescomoi | last post by:
Hi. I'm trying to build MySQL-python-1.2.0 on my Linux FC2 (with MySQL 3.23.58). But when building, I get this error message: ------------------------------------------------------- # python...
1
by: Robert McLay | last post by:
I have been trying to build python on Cray X1. As far as I can tell it does not support dynamic loading. So the question is: How to build 2.4 without dynamic loading? That is: can I build...
7
by: Hal Vaughan | last post by:
I have a problem with port forwarding and I have been working on it for over 2 weeks with no luck. I have found C programs that almost work and Java programs that almost work, but nothing that...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
10
by: Louise Hoffman | last post by:
Dear readers, I was wondering, if Python in the foerseeable future will allocate one CPU core just for the interpreter, so heavy Python operations does slow down the OS? It seams to me like a...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
3
by: Micah Elliott | last post by:
Are there instructions somewhere on how to build Python (on linux) statically? This seems like a common thing to do want to do, but my searching isn't turning up much. If it is common, it would...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.