[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect library suffix on newer HP-UX (.sl vs .so)

From: Tim Mooney
Subject: Re: Incorrect library suffix on newer HP-UX (.sl vs .so)
Date: Tue, 7 Oct 2003 15:14:52 -0500 (CDT)

In regard to: Re: Incorrect library suffix on newer HP-UX (.sl vs .so),...:

>Sorry, that was not obvious, I've been thinking you were trying with
>a later version than that and simply asking for future plans of a
>feature not visible so far, possibly also browsing into the other cvs
>files at savannah without finding anything conclusive.
>Anyway, I've been just looking at the CVS repo at savannah and in the
>relevant libtool.m4 file, there is the following section that might
>be helpful to you (it looks good but YMMV):
>hpux9* | hpux10* | hpux11*)
>   # Give a soname corresponding to the major version so that refuses to
>   # link against other versions.
>   version_type=sunos
>   need_lib_prefix=no
>   need_version=no
>   case "$host_cpu" in
>   ia64*)

This will likely work, but it's not really correct.

First, there is no ia64* support in 9.x (I'm certain on that) or 10.x (I'm
99% certain there).  The stanza for 9.x should probably be pulled off and
separated from the 10.x and 11.x stanzas, and it could then be simplified
significantly.  Does anyone remember when 680X0 support ended in HP-UX?
Was it before 9.x?

Second, 9.x and 10.x use `SOM' as the only object file format, and use
`.sl' as the shared library extension.

11.x uses ELF as the default library format (and .so for ELF shared
libraries), but it can grok older-style SOM libraries.  I don't know
if the 11.x compiler toolchain can *generate* SOM objects and libraries
(I suspect it can).  Perhaps someone with access to 11.x (Albert?) can comment.

What I don't know for certain is when full 64 bit objects and shared
libraries started showing up.  I thought there was some minimal support
in 10.x, but real 64 bit objects and shared libraries weren't available
until 11.x, in which case the default extension should likely be .so .

Anyone care to comment?

Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

reply via email to

[Prev in Thread] Current Thread [Next in Thread]