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: hpux ia64 shared lib ext should be ".so"
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: deckrider, loewis, nnorwitz
Priority: normal Keywords:

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

Files
File name Uploaded Description Edit
hpux-shlib-v2.patch deckrider, 2006-05-09 04:11 corrected patch against release24-maint to use correct shared lib ext on hpux
Messages (8)
msg28415 - (view) Author: David Everly (deckrider) Date: 2006-05-04 11:43
On hpux ia64, the shared library extension should be
".so".  This is currently problematic in that other
add-on python modules (such as those for subversion)
correctly detect the host_os/host_cpu and build
_module.so, which is not seen by python built using ".sl".

According to
http://devresource.hp.com/drc/resources/portguideipf/index.jsp#dynlinkfac


"Shared library names

Since dynamic linking APIs operate on shared libraries,
it is also important to note that the shared library
naming scheme on Linux is lib*.so; whereas, on HP-UX
11i Version 1.5 the naming scheme is lib*.sl for PA and
lib*.so on IPF. Also APIs may reside in different
libraries files on Linux and HP-UX, so you may need to
dynamically load a different shared library name on
HP-UX and Linux."

To translate this quote, PA=hppa and IPF=ia64.
msg28416 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-05-05 07:02
Logged In: YES 
user_id=33168

Do you think you could work on a patch to address this issue?
msg28417 - (view) Author: David Everly (deckrider) Date: 2006-05-05 12:07
Logged In: YES 
user_id=1113403

The patch I'm using now only works on hppa/ia64 and isn't
anything that can coexist nicely in the source package on
other hardware/os combinations.

I've looked at
http://svn.python.org/projects/python/branches/release24-maint/

I'm accustomed to a system using autoconf/libtool/automake
(recent versions) and never committing the output of those
tools, but only running them at source package generation time.

I say this, only to point out that I'm not understanding the
principles behind what I see in subversion.  I see
configure, and also configure.in.  Which should be patched?
 And if I don't patch configure, what is the process for
regenerating it (and with what versions of automake,
autoconf, and libtool?).

Also, the most recent libtool already correctly determines
shared library extension.

So I could probably provide a patch, but would need to
understand the environment better in order to do so.
msg28418 - (view) Author: David Everly (deckrider) Date: 2006-05-07 13:22
Logged In: YES 
user_id=1113403

Here is a patch against
http://svn.python.org/projects/python/branches/release24-maint

I don't have many evironments to test against, and only
Linux right now (will test on HPUX ia64 tomorrow and report
back).
msg28419 - (view) Author: David Everly (deckrider) Date: 2006-05-09 04:11
Logged In: YES 
user_id=1113403

I tested against hpux ia64 today, and found that the
original patch required correction.  Here is the result.
msg28420 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-05-10 04:50
Logged In: YES 
user_id=21627

The patch looks fine to me. FYI, we include configure output
in the source repository so that people can build from the
source repository without requiring them to run autoconf
first. Patching configure.in only is the right thing to do;
whoever commits the patch will regenerate configure before
commiting it.
msg28421 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-05-10 07:17
Logged In: YES 
user_id=33168

It looked fine to me too.  I wish you didn't have to set the
extension more than once.  That's not a problem with this
patch though.  I'll try to get around to checking this in
unless someone beats me to it.
msg28422 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-05-19 07:02
Logged In: YES 
user_id=33168

Thanks!  I fixed 2.5.  If someone whats to backport to 2.4,
feel free.

Committed revision 46046.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43320
2006-05-04 11:43:42deckridercreate