473,406 Members | 2,343 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,406 software developers and data experts.

Building a Dynamic Library (libpython.so) for Python 2.4.3 Final

I've been trying to make python a dynamic library. I downloaded Python
2.4.3 Final from the Python web site and I cannot get it to create the
library.

I've tried using the directive:

--enable-shared

and

--enable-shared=yes

and both of them had the same effect of creating a bunch of parts of
the python interpreter in .so format but not in creating a single
libpython2.4.so.X.Y file. I could probably hack something together
using ar but I would prefer to do it "correctly" by setting some
options. I'm compiling under OpenBSD 3.5.

Thanks for any advice.

Apr 26 '06 #1
2 3566
Dean wrote:
I've been trying to make python a dynamic library. I downloaded Python
2.4.3 Final from the Python web site and I cannot get it to create the
library.

I've tried using the directive:

--enable-shared

and

--enable-shared=yes

and both of them had the same effect of creating a bunch of parts of
the python interpreter in .so format but not in creating a single
libpython2.4.so.X.Y file. I could probably hack something together
using ar but I would prefer to do it "correctly" by setting some
options. I'm compiling under OpenBSD 3.5.


Well, I just confirmed that

../configure --enable-shared

results in a libpython2.4.so.1 (and a libpython2.4.so) on FreeBSD 4.x.
The result runs the regression test suite without significant problems
(the test box didn't have a 2.4 installation).

A quick look at the configure script suggests that --enable-shared should
work on OpenBSD. While I believe that there's actually an OpenBSD based
Python buildbot (though OpenBSD 3.[89] I think) running, I doubt that
this configuration is tested there.

If you don't get any other responses, send me a copy of the full make log
(ie "make >make.log 2>&1") and I'll compare it to the log from my test
build.

-------------------------------------------------------------------------
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
Apr 26 '06 #2
In article <ma***************************************@python. org>,
Andrew MacIntyre <an*****@bullseye.apana.org.au> wrote:
Dean wrote:
I've been trying to make python a dynamic library. I downloaded Python
2.4.3 Final from the Python web site and I cannot get it to create the
library.

I've tried using the directive:

--enable-shared

and

--enable-shared=yes

and both of them had the same effect of creating a bunch of parts of
the python interpreter in .so format but not in creating a single
libpython2.4.so.X.Y file. I could probably hack something together
using ar but I would prefer to do it "correctly" by setting some
options. I'm compiling under OpenBSD 3.5.


Well, I just confirmed that

./configure --enable-shared

results in a libpython2.4.so.1 (and a libpython2.4.so) on FreeBSD 4.x.
The result runs the regression test suite without significant problems
(the test box didn't have a 2.4 installation).

A quick look at the configure script suggests that --enable-shared should
work on OpenBSD. While I believe that there's actually an OpenBSD based
Python buildbot (though OpenBSD 3.[89] I think) running, I doubt that
this configuration is tested there.

If you don't get any other responses, send me a copy of the full make log
(ie "make >make.log 2>&1") and I'll compare it to the log from my test
build.

Thanks for the help. It didn't build the shared library on its own but I
did manage to find where it is built and a simple

make libpython2.4.so

Got it built for me. Thanks for the idea!

Dean
Apr 26 '06 #3

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

Similar topics

0
by: Dave Harrison | last post by:
Ok before I start, please dont mail me telling me to use a more recent version of Python, I _would_ use 2.2.x but due to an existing framework all based on using 2.1.1 I have been specifically told...
2
by: Jerry LeVan | last post by:
Have any configure experts looked at building plpython.so on mac os x lately? The standard configure key "--with-python" fails miserably (libpython is not a shared lib error message). I found...
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...
0
by: mrstephengross | last post by:
Ok, I'm trying to build libpython.a. It's version 1.5.2 (I know it's an old version, but I need to get it to work if at all possible). I want to find a way to make sure the module copy_reg is...
1
by: J. Jeffrey Close | last post by:
Hi all, I have been trying for some time to build Python 2.4.x from source on OS X 10.4.6. I've found *numerous* postings on various mailing lists and web pages documenting the apparently...
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...
1
by: Daniel Nogradi | last post by:
It might be slightly off topic here but couldn't find a more suitable place for this question: I'm trying to build the python binding for ming -- http://ming.sf.net -- but for some reason the...
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...
5
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
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...

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.