The last word on the HP-UX installation.

From: Clifford Beshers <beshers_at_cs.columbia.edu>
Date: Thu, 15 Feb 1996 19:41:58 -0500

My installation did not go as smoothly as I thought. I spent another
day tracking down the problems, and came up with some better solutions.

This message invalidates all previous messages, from me, I believe,
and contains all the information you need to install STk-3.0b2 nicely
under HP-UX 9.x.

Essentially, there are two main problems with the release:

        configure gets a few things wrong;

        shared libraries under HP-UX have a different extension than
        the entire rest of the dynamic loading world.

The problems in configure.in:

    The HP-UX machine names are things like 9000/735. Using this
    string in a directory name causes problems. I have substituted
    hp9000s700.

    The -Wl,-E flag for gcc passes the -E flag to the linker, and
    is useless and annoying during compilation with -c. In
    the distributed configuration, it was in STKCFLAGS, not
    STKLDFLAGS. I moved it.


These patches to configure.in are included below. Run
'autoconf configure.in >configure' to have them take effect.

Formerly, I solved the dynamic loading problem by modifying all the
STk library files with (load "foobar.so"). Apart from being error
prone and tedious, it meant I had to have a separate directory tree
for HP-UX.

The solution was simple. I made symbolic links from *.so to *.sl. It
works just fine. Now I can use the same NFS mounted file system for
all architectures, and have only one copy of the non-binary files.

I did the links manually, but this probably could be added to
Extensions/Makefile.in:

        cd $(execdir)
        for i in *.sl ; do j=`basename $$i .sl` ; ln -s $$i $$j.so ; done

The patches to configure.in follow.

Cliff
-----------------------------------------------------------------------------
Clifford Beshers Office: (212) 939-7087 Lab: (212) 939-7101
Columbia University Fax: (212) 666-0140
500 West 12Oth St., Room 450 WWW: http://www.cs.columbia.edu/~beshers
New York, NY 10027 Email: beshers_at_cs.columbia.edu





*** configure.in Thu Feb 15 14:52:53 1996
--- configure.in.orig Sun Jan 21 15:30:36 1996
***************
*** 35,48 ****
          case $machine in
           IP*) machine=IPxx;;
          esac;;
- HP-UX*)
- case $version in
- A.09.*) version=9.X;;
- A.10.*) version=10.X;;
- esac
- case $machine in
- 9000/7*) machine=9000s700;;
- esac;;
  esac
  
  #
--- 35,40 ----
***************
*** 407,414 ****
       SH_LDFLAGS="-b -o"
       SH_LOADER="ld"
       SH_SUFFIX='sl'
! STKLDFLAGS="$STKLDFLAGS -Wl,-E"
! LIB_DLD=-ldld;;
     FREEBSD)
       SH_CCFLAGS="-pic"
       SH_LDFLAGS="-Bshareable -o"
--- 399,405 ----
       SH_LDFLAGS="-b -o"
       SH_LOADER="ld"
       SH_SUFFIX='sl'
! STKCFLAGS="$STKCFLAGS -Wl,-E";;
     FREEBSD)
       SH_CCFLAGS="-pic"
       SH_LDFLAGS="-Bshareable -o"
Received on Fri Feb 16 1996 - 01:44:01 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST