This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ctypes testsuite hardcodes libc soname
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: doko, nnorwitz, theller
Priority: normal Keywords:

Created on 2006-04-04 21:14 by doko, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg28076 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2006-04-04 21:14
on Debian alpha-linux and Debian/Ubuntu hppa-linux,
libc's soname is libc.so.6.1. A more portable way to
find about the libc soname might be to check ldd on the
python executable (or any other executable)

$ ldd /bin/ls | awk '/libc\.so/ {print $3}'
/lib/tls/libc.so.6.1

$ objdump -p /bin/ls | awk '/NEEDED *libc\.so/ {print $2}'
libc.so.6.1
msg28077 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-04-05 04:38
Logged In: YES 
user_id=33168

Heh, I added ldd support in ctypes/_loader.py _findLib_ld. 
Does that address this issue?  Or perhaps at least partially
address?  It looks like in the current buildbot, this part
of ctypes isn't failing.  Maybe this can be closed?
msg28078 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2006-04-05 09:02
Logged In: YES 
user_id=60903

no, please see
http://www.python.org/dev/buildbot/trunk/ia64%20Debian%20unstable%20trunk/builds/11/step-test/0
(that's the last run of current trunk, AFAIK)
msg28079 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-04-05 14:06
Logged In: YES 
user_id=11105

Actually the bug in in the ctypes test module.  nnorwitz's
change helps loading libraries, but not to determine which
libraries should by loaded.  doko's method allows to fix this.

I'll commit a patch soon, thanks.
msg28080 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2006-04-05 22:46
Logged In: YES 
user_id=60903

no, please see
http://www.python.org/dev/buildbot/trunk/ia64%20Debian%20unstable%20trunk/builds/11/step-test/0
(that's the last run of current trunk, AFAIK)
msg28081 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-04-06 12:25
Logged In: YES 
user_id=11105

This is fixed now.
msg28082 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2006-04-06 12:47
Logged In: YES 
user_id=11105

Resolution is 'fixed', not 'duplicate'.
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43158
2006-04-04 21:14:11dokocreate