HP-UX installation patches

From: Clifford Beshers <beshers_at_cs.columbia.edu>
Date: Thu, 15 Feb 1996 00:10:09 -0500

I've just finished installing all the newest gnu tools and using them
to build STk-3.0(b2).

With gcc 2.7.2, the support for HP dynamic linking either has some of
the rough edges smoothed off, or I understand it better.

Either way, these changes to configure.in improved my installation.

In particular:

   'uname -m' returns something like 9000/735 which is a problem when
   used as part of a directory name, so I substituted 9000s700 for
   the series;

   -ldld is needed on the link line for the applications;

   -W,-E passes an option to the linker, so is only needed for
   linking, not compiling;

There is still the problem of HP shared libraries having a .sl
extension, instead of .so. I simply edit the .stk and .stklos files
with the script included at the end.


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


****************************************************************



Here are the diffs:

*** configure.in Wed Feb 14 23:34:55 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"

****************************************************************
****************************************************************
****************************************************************

Here is the editing script:

#!/bin/sh

cd Lib

echo 'Setting the shared library extension.'
for i in init.stk
do
        echo "Converting $i"
        sed -e 's/\"so\"/\"sl\"/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done
cd ..



echo 'Changes from here should be made permanently.'
echo 'That is, for code to be portable, the shared library'
echo 'suffix should be omitted so the default is chosen.'

echo 'Converting all files in Lib'
cd Lib
for i in *.stk
do
        grep 'load \".*.so\"' $i || continue
        echo "Converting $i"
        sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done


cd ..

# These changes should be done permanently.

echo 'Converting all files in STklos'
cd STklos
for i in *.stk
do
        grep 'load \".*.so\"' $i || continue
        echo "Converting $i"
        sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done

cd ..
Received on Thu Feb 15 1996 - 06:12:17 CET

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