Fix for HP-UX shared library builds 
Author Message
 Fix for HP-UX shared library builds

Quote:
Giles Lean writes:
> *** src/Makefile.shlib-orig        Wed Oct  9 09:21:54 2002
> --- src/Makefile.shlib     Sun Dec 22 21:07:43 2002
> ***************
> *** 126,134 ****
>   endif

>   ifeq ($(PORTNAME), hpux)
> ! # HPUX doesn't believe in version numbers for shlibs

Once upon the time this was true.  When did it change, and do we still
care about the pre-change versions?

Quote:
> !   shlib                  := lib$(NAME)$(DLSUFFIX)
> !   LINK.shared            = $(LD) -b +b $(libdir)
>   endif

>   ifeq ($(PORTNAME), irix5)
> --- 126,133 ----
>   endif

>   ifeq ($(PORTNAME), hpux)
> !   shlib                  := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
> !   LINK.shared            = $(LD) +h $(shlib) -b +b $(libdir)

This should probably be +h $(soname).

Quote:
>   endif

>   ifeq ($(PORTNAME), irix5)

--

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate

message can get through to the mailing list cleanly



Wed, 22 Jun 2005 18:19:56 GMT
 Fix for HP-UX shared library builds

Quote:
Peter Eisentraut writes:
> >   ifeq ($(PORTNAME), hpux)
> > ! # HPUX doesn't believe in version numbers for shlibs

> Once upon the time this was true.  When did it change, and do we still
> care about the pre-change versions?

The releases of HP-UX that HP support are 11.X (the current release)
and 10.X, supported until 2003-06-30.  Certainly these releases both
have versioned shared libraries, and I tested the patch on them.

The previous HP-UX release 9.X ended support by the end of 1999.  I
doubt if anyone cares about PostgreSQL on HP-UX 9.X, but if they do
speaking up and putting themselves on record in the archives would
be a Good Idea. :-)

I don't know if the comment was ever true; it may have been.  I can't
say when (if) it changed although I can find out if anyone's really
curious.

Quote:
> > !   shlib                     := lib$(NAME)$(DLSUFFIX)
> > !   LINK.shared               = $(LD) -b +b $(libdir)
> >   endif

> >   ifeq ($(PORTNAME), irix5)
> > --- 126,133 ----
> >   endif

> >   ifeq ($(PORTNAME), hpux)
> > !   shlib                     := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
> > !   LINK.shared               = $(LD) +h $(shlib) -b +b $(libdir)

> This should probably be +h $(soname).

I wasn't sure which was preferred.  The values of $(soname) and
$(shlib) in this case are identical.

Regards,

Giles

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



Thu, 23 Jun 2005 05:40:12 GMT
 Fix for HP-UX shared library builds

Quote:

> Peter Eisentraut writes:
>>> ifeq ($(PORTNAME), hpux)
>>> ! # HPUX doesn't believe in version numbers for shlibs

>> Once upon the time this was true.  When did it change, and do we still
>> care about the pre-change versions?
> I don't know if the comment was ever true; it may have been.

I believe I put in the comment, back when I was running HPUX
9.something.  I concur with Giles that it's unlikely anyone cares
about 9.x anymore.  Even if someone does, altering our makefile
to install under both names should not break anything, I'd think...

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Thu, 23 Jun 2005 06:30:14 GMT
 Fix for HP-UX shared library builds

Quote:

> Below is a patch against 7.3.1 that makes shared library major numbers
> useful on HP-UX.

Here is a revised version of the patch, changed per a suggestion of
Peter Eisentraut's to use +h $(soname) instead of +h $(shlib) in the
link command.

Peter's other question about old HP-UX versions was answered by Tom
Lane:

Quote:
>    ifeq ($(PORTNAME), hpux)
>  ! # HPUX doesn't believe in version numbers for shlibs

Peter> Once upon the time this was true.  When did it change, and do we still
Peter> care about the pre-change versions?

Tom>   I believe I put in the comment, back when I was running HPUX
Tom>   9.something.  I concur with Giles that it's unlikely anyone cares
Tom>   about 9.x anymore.

Nobody has spoken up to say they use HP-UX 9.X.

Will someone apply this patch please?  I recommend it be applied to
the 7.3.x branch as well as HEAD as it will ease upgrading to 7.4
if there is ever a 7.3.2 release.

Regards,

Giles

*** src/Makefile.shlib-7.3.1    Thu Oct 10 02:21:54 2002
--- src/Makefile.shlib  Tue Jan  7 09:25:40 2003
***************
*** 126,134 ****
  endif

  ifeq ($(PORTNAME), hpux)
! # HPUX doesn't believe in version numbers for shlibs
!   shlib                       := lib$(NAME)$(DLSUFFIX)
!   LINK.shared         = $(LD) -b +b $(libdir)
  endif

  ifeq ($(PORTNAME), irix5)
--- 126,133 ----
  endif

  ifeq ($(PORTNAME), hpux)
!   shlib                       := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
!   LINK.shared         = $(LD) +h $(soname) -b +b $(libdir)
  endif

  ifeq ($(PORTNAME), irix5)

--
Giles Lean

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command



Sat, 25 Jun 2005 12:04:45 GMT
 Fix for HP-UX shared library builds

Quote:

> Will someone apply this patch please?  I recommend it be applied to
> the 7.3.x branch as well as HEAD as it will ease upgrading to 7.4
> if there is ever a 7.3.2 release.

I am hesitant to apply it to 7.3 since that would mean (I think) an
incompatible renaming of the shlib, which we'd best avoid on a minor
release, no?  What will happen for existing users of 7.3 if we do put
this in 7.3.2?

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate

message can get through to the mailing list cleanly



Sat, 25 Jun 2005 12:55:58 GMT
 Fix for HP-UX shared library builds

Quote:

> I am hesitant to apply it to 7.3 since that would mean (I think) an
> incompatible renaming of the shlib, which we'd best avoid on a minor
> release, no?  What will happen for existing users of 7.3 if we do put
> this in 7.3.2?

I had been thinking that HP-UX PostgreSQL users had a flag day every
time they upgraded PostgreSQL, but it's not that bad: they only have a
flag day when the library major version changes (or should have, in
the 7.3 case :-) when all clients need to be rebuilt.

I'll investigate and find out what happens when a client linked
against libpq.sl finds that has turned into a symbolic link. I think
the dynamic loader will follow the link, but I'm guessing. :-(

As an alternative to risking change on the 7.3.x branch, perhaps a
note in FAQ_HPUX noting the problem and that an upgrade to 7.4 will
require (like all releases to date) recompiling all clients would be
better.

Ciao,

Giles

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate

message can get through to the mailing list cleanly



Sat, 25 Jun 2005 15:06:47 GMT
 
 [ 6 post ] 

 Relevant Pages 

1. Fix for HP-UX shared library builds

2. Fix for HP-UX shared library builds

3. Shared Libraries on HP-UX (-shared)

4. Shared Libraries on HP-UX (-shared)

5. Linking COBOL programs with Oracle shared libraries on HP-UX

6. HP-UX shared library installation is incorrect

7. Oracle 7.3.2 shared libraries HP/UX 10.20

8. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

9. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

10. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN--HP-UX, Oracle DBA, Baan

11. 19812-AZ-Phoenix-HP-9000-HP-UX-ORACLE-BAAN-HP-UX, Oracle DBA, Baan

12. NC-WINSTON-115025--Crystal Reports-HP-UX-ORACLE-Visual Basic- Programmer/Analyst (HP-UX)


 
Powered by phpBB® Forum Software