FAQ
How does one under Linux determine the minimum set of libraries needed
for dynamicly linking a program with an embedded python (2.2)
interpreter (library)? I understand that missing symbols will cause the
link process to fail, but there seem to be cases where my program links
but segmentation fail when I do anything interesting?

I would like to understand the _method for finding the set of libraries_
rather than just a working set which I got from Demo/embed/Makefile
(with LIBPYTHON replaced with the .so version):

LIBPYTHON= $(blddir)/libpython$(VERSION).a
LIBS= -lnsl -ldl -lreadline -ltermcap -lieee -lpthread -lutil
LDFLAGS= -Xlinker -export-dynamic
SYSLIBS= -lm

e.g. are one supposed to match the libraries for libpython2.2.so (say,
found via ldd for instance) or the python binary itself? Or should it
really work if the thing link?

Thanks in advance for your insight,


/Allan
--
Allan M. Wind email: allanwind at mediaone.net
P.O. Box 2022 finger: awind at digit-safe.dyndns.org (GPG/PGP)
Woburn, MA 01888-0022
USA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-list/attachments/20011203/564a95d8/attachment.pgp

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedDec 3, '01 at 1:11p
activeDec 3, '01 at 1:11p
posts1
users1
websitepython.org

1 user in discussion

Allan M. Wind: 1 post

People

Translate

site design / logo © 2022 Grokbase