Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for SCO OpenServer and UnixWare 7 #647

Closed
p5pRT opened this issue Sep 21, 1999 · 11 comments

Comments

@p5pRT
Copy link
Collaborator

@p5pRT p5pRT commented Sep 21, 1999

Migrated from rt.perl.org#1520 (status was 'resolved')

Searchable as RT1520$

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 21, 1999

From root@devsys0.zenez.com

I have found the following patches are necessary to build perl on
UnixWare 7.x.x and OpenServer 5.0.x with both gcc and cc for the
platform in question. I have added the changes to get threads for
UnixWare 7.1.0.

Threads pass all test with the UDK cc, but with gcc-2.95.1 I get an
error but when I do the following with gcc-2.95.1...

shell> cd t
shell> ./perl harness lib/thread.t

lib/thread..........Confused test output​: test 11 answered after test 12
ok
All tests successful.
Files=1, Tests=14, 1 wallclock secs ( 0.23 cusr + 0.06 csys = 0.29 CPU)

-----------------------------Configure.patch
*** Configure.org Sun Mar 28 09​:12​:57 1999
--- Configure Mon Sep 20 17​:02​:34 1999
***************
*** 751,757 ****
  al="$al M_COFF M_I186 M_I286 M_I386 M_I8086 M_I86 M_I86SM"
  al="$al M_SYS3 M_SYS5 M_SYSIII M_SYSV M_UNIX M_XENIX"
  al="$al NeXT OCS88 OSF1 PARISC PC532 PORTAR POSIX"
! al="$al PWB R3000 RES RISC6000 RT Sun386i SVR3 SVR4"
  al="$al SYSTYPE_BSD SYSTYPE_SVR4 SYSTYPE_SYSV Tek4132 Tek4300"
  al="$al UMAXV USGr4 USGr4_2 UTEK UTS UTek UnicomPBB UnicomPBD Utek"
  al="$al VMS Xenix286"
--- 751,757 ----
  al="$al M_COFF M_I186 M_I286 M_I386 M_I8086 M_I86 M_I86SM"
  al="$al M_SYS3 M_SYS5 M_SYSIII M_SYSV M_UNIX M_XENIX"
  al="$al NeXT OCS88 OSF1 PARISC PC532 PORTAR POSIX"
! al="$al PWB R3000 RES RISC6000 RT Sun386i SVR3 SVR4 SVR5"
  al="$al SYSTYPE_BSD SYSTYPE_SVR4 SYSTYPE_SYSV Tek4132 Tek4300"
  al="$al UMAXV USGr4 USGr4_2 UTEK UTS UTek UnicomPBB UnicomPBD Utek"
  al="$al VMS Xenix286"
***************
*** 2131,2136 ****
  uts) osname=uts
  osvers="$3"
  ;;
  qnx) osname=qnx
  osvers="$4"
  ;;
--- 2131,2139 ----
  uts) osname=uts
  osvers="$3"
  ;;
+ unixware) osname=svr5
+ osvers="$4"
+ ;;
  qnx) osname=qnx
  osvers="$4"
  ;;
***************
*** 2454,2460 ****
  . ./usethreads.cbu
  fi
  case "$osname" in
! aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|next|openbsd|os2|solaris|vmesa)
  # Known thread-capable platforms.
  ;;
  *)
--- 2457,2463 ----
  . ./usethreads.cbu
  fi
  case "$osname" in
! aix|dec_osf|dos_djgpp|freebsd|hpux|irix|linux|next|openbsd|os2|solaris|vmesa|svr5)
  # Known thread-capable platforms.
  ;;
  *)
-----------------------------cut here-----------------------------

----------------------------hints/svr5.sh-------------------------
# svr5 hints, System V Release 5.x
# Last modified 1999/09/21 by Boyd Gerber, gerberb@​zenez.com

# Use Configure -Dcc=gcc to use gcc.
case "$cc" in
'') cc='/bin/cc'
  test -f $cc || cc='/usr/ccs/bin/cc'
  ;;
  *)
  case "$gccversion" in
  *2.95*)
  ccflags='-fno-strict-aliasing'
  ;;
  *);;
  esac
  ;;
esac

# want_ucb=''
# want_dbm='yes'
want_gdbm='yes'

# We include support for using libraries in /usr/ucblib, but the setting
# of libswanted excludes some libraries found there. If you run into
# problems, you may have to remove "ucb" from libswanted. Just delete
# the comment '#' from the sed command below.
# ldflags='-L/usr/ccs/lib -L/usr/ucblib'
# ccflags='-I/usr/include -I/usr/ucbinclude'
# Don't use problematic libraries​:
libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'`
# libmalloc.a - Probably using Perl's malloc() anyway.
# libucb.a - Remove it if you have problems ld'ing. We include it because
# it is needed for ODBM_File and NDBM_File extensions.

if [ "$want_ucb" ] ; then
  ldflags= '-L/usr/ccs/lib -L/usr/ucblib'
  ccflags='-I/usr/include -I/usr/ucbinclude'
  if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library​:
  d_Gconvert='gcvt((x),(n),(b))' # Try gcvt() before gconvert().
  # Use the "native" counterparts, not the BSD emulation stuff​:
  d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef'
  d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef'
  d_setlinebuf='undef'
  # d_setregid='undef' d_setreuid='undef' # ???
  fi
else
# libswanted=`echo " $libswanted " | sed -e 's/ ucb / /' -e 's/ dbm / /'`
  libswanted=`echo " $libswanted " | sed -e 's/ ucb / /'`
  glibpth=`echo " $glibpth " | sed -e 's/ \/usr\/ucblib / /'`

  # a non ucb native version of libdbm for /usr/local is available from
  # http​://www.sco.com/skunkware
  # if its installed (and not overidden) we'll use it.
  if [ ! -f /usr/local/lib/libdbm.so -o ! "$want_dbm" ] ; then
  libswanted=`echo " $libswanted " | sed -e 's/ dbm / /'`
  fi
fi

if [ "$want_gdbm" -a -f /usr/local/lib/libgdbm.so ] ; then
  i_gdbm='define'
else
  i_gdbm='undef'
  libswanted=`echo " $libswanted " | sed -e 's/ gdbm / /'`
fi

# Don't use problematic libraries​:
# libmalloc.a - Probably using Perl's malloc() anyway.
# libc​: on UW7 don't want -lc explicitly - cc gives warnings/errors
libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' -e 's/ c / /'`

# remove /shlib and /lib from library search path as both symlink to /usr/lib
# where runtime shared libc is
glibpth=`echo " $glibpth " | sed -e 's/ \/shlib / /' -e 's/ \/lib / /`

# UnixWare has /usr/lib/libc.so.1, /usr/lib/libc.so.1.1, and
# /usr/ccs/lib/libc.so. Configure chooses libc.so.1.1 while it
# appears that /usr/ccs/lib/libc.so contains more symbols​:
#
# Try the following if you want to use nm-extraction. We'll just
# skip the nm-extraction phase, since searching for all the different
# library versions will be hard to keep up-to-date.
#
# if [ "" = "$libc" -a -f /usr/ccs/lib/libc.so -a \
# -f /usr/lib/libc.so.1 -a -f /usr/lib/libc.so.1.1 ]; then
# if nm -h /usr/ccs/lib/libc.so | egrep '\<_?select$' >/dev/null; then
# if nm -h /usr/lib/libc.so.1 | egrep '\<_?select$'` >/dev/null ||
# nm -h /usr/lib/libc.so.1.1 | egrep '\<_?select$'` >/dev/null; then
# :
# else
# libc=/usr/ccs/lib/libc.so
# fi
# fi
# fi
#
# Don't bother with nm. Just compile & link a small C program.
case "$usenm" in
'') usenm=false;;
esac

# Broken C-Shell tests (Thanks to Tye McQueen)​:
# The OS-specific checks may be obsoleted by the this generic test.
  sh_cnt=`sh -c 'echo /*' | wc -c`
  csh_cnt=`csh -f -c 'glob /*' 2>/dev/null | wc -c`
  csh_cnt=`expr 1 + $csh_cnt`
if [ "$sh_cnt" -ne "$csh_cnt" ]; then
  echo "You're csh has a broken 'glob', disabling..." >&2
  d_csh='undef'
fi

# Unixware-specific problems. The undocumented -X argument to uname
# is probably a reasonable way of detecting UnixWare.
# UnixWare has a broken csh. (This might already be detected above).
# Configure can't detect memcpy or memset on Unixware 2 or 7
#
# Leave leading tabs on the next two lines so Configure doesn't
# propagate these variables to config.sh
  uw_ver=`uname -v`
  uw_isuw=`uname -X 2>&1 | grep Release`

if [ "$uw_isuw" = "Release = 5" ]; then
  case $uw_ver in
  7*)
  d_csh='undef'
  d_memcpy='define'
  d_memset='define'
  stdio_cnt='((fp)->__cnt)'
  d_stdio_cnt_lval='define'
  stdio_ptr='((fp)->__ptr)'
  d_stdio_ptr_lval='define'
  ;;
  esac
fi

###############################################################
# Dynamic loading section​:
#
# ccdlflags : must tell the linker to export all global symbols
# cccdlflags​: must tell the compiler to generate relocatable code
# lddlflags : must tell the linker to output a shared library
#
# /usr/local/lib is added for convenience, since additional libraries
# are usually put there
#
# use shared perl lib
useshrplib='true'

case "$cc" in
  *gcc*)
  ccdlflags='-Xlinker -Bexport -L/usr/local/lib'
  cccdlflags='-fpic'
  lddlflags='-G -L/usr/local/lib'
  ;;
  *)
  ccdlflags='-Wl,-Bexport -L/usr/local/lib'
  cccdlflags='-KPIC'
  lddlflags='-G -Wl,-Bexport -L/usr/local/lib'
  ;;
esac

###############################################################
# Use dynamic loading
usedl='define'
dlext='so'
dlsrc='dl_dlopen.xs'

# Configure may fail to find lstat() since it's a static/inline function
# in <sys/stat.h> on Unisys U6000 SVR4, UnixWare 2.x, and possibly other
# SVR4 derivatives. (Though UnixWare has it in /usr/ccs/lib/libc.so.)
d_lstat=define

# DDE SMES Supermax Enterprise Server
case "`uname -sm`" in
"UNIX_SV SMES")
  # the *grent functions are in libgen.
  libswanted="$libswanted gen"
  # csh is broken (also) in SMES
  # This may already be detected by the generic test above.
  d_csh='undef'
  case "$cc" in
  *gcc*) ;;
  *) # for cc we need -K PIC (not -K pic)
  cccdlflags="$cccdlflags -K PIC"
  ;;
  esac
  ;;
esac

# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'
case "$usethreads" in
$define|true|[yY]*)
  ccflags="$ccflags"
  set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
  shift
  libswanted="$*"
  case "$cc" in
  *gcc*)
  ccflags="-D_REENTRANT $ccflags -fpic -pthread"
  cccdlflags='-fpic'
  lddlflags='-pthread -G -L/usr/local/lib '
  ;;
  *)
  ccflags="-D_REENTRANT $ccflags -KPIC -Kthread"
  ccdlflags='-Kthread -Wl,-Bexport -L/usr/local/lib'
  cccdlflags='-KPIC -Kthread'
  lddlflags='-G -Kthread -Wl,-Bexport -L/usr/local/lib'
  ldflags='-Kthread -L/usr/local/lib -L/usr/gnu/lib'
  ;;
  esac
esac
EOCBU

# End of Unixware-specific tests.
# Configure may fail to find lstat() since it's a static/inline function
# in <sys/stat.h> on Unisys U6000 SVR4, UnixWare 2.x, and possibly other
# SVR4 derivatives. (Though UnixWare has it in /usr/ccs/lib/libc.so.)
d_lstat=define

d_suidsafe='define' # "./Configure -d" can't figure this out easilly

cat <<'EOM' >&4

If you wish to use dynamic linking, you must use
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH​:`pwd`​:; export LD_LIBRARY_PATH
or
  setenv LD_LIBRARY_PATH `pwd`
before running make.

EOM
-----------------------------cut here-----------------------------

-----------------------------hints/sco.sh.patch-------------------
*** sco.sh.org Thu Feb 11 17​:05​:49 1999
--- sco.sh Tue Sep 21 10​:00​:10 1999
***************
*** 9,14 ****
--- 9,16 ----
  # Mostly rewritten on
  # Tue Jan 19 23​:00​:00 CET 1999
  # by Francois Desarmenien <desar@​club-internet.fr>
+ # Modified by Boyd Gerber <gerberb@​zenez.com>
+ # Tue Sep 21 1999
  ###############################################################
  #
  # To use cc, use sh Configure
***************
*** 82,87 ****
--- 84,90 ----
  echo "�" >&4
  echo "�" >&4
  echo " For UnixWare, use svr4.sh hints instead" >&4
+ echo " For UnixWare 7.x, use svr5.sh hints instead" >&4
  echo "�" >&4
  echo "***********************************************************" >&4
  exit
***************
*** 102,108 ****
  then
  dlext=''
  case "$cc" in
! gcc) optimize='-O2' ;;
  *) ccflags="$ccflags -W0 -quiet"
  optimize='-O' ;;
  esac
--- 105,111 ----
  then
  dlext=''
  case "$cc" in
! *gcc*) optimize='-O2' ;;
  *) ccflags="$ccflags -W0 -quiet"
  optimize='-O' ;;
  esac
***************
*** 114,120 ****
  ###############################################################
  # In Release 5, always compile ELF objects
  case "$cc" in
! gcc)
  ccflags="$ccflags -melf"
  optimize='-O2'
  ;;
--- 117,123 ----
  ###############################################################
  # In Release 5, always compile ELF objects
  case "$cc" in
! *gcc*)
  ccflags="$ccflags -melf"
  optimize='-O2'
  ;;
***************
*** 139,145 ****
  if test "$usedl" != "n"; then
  ld='ld'
  case "$cc" in
! gcc)
  ccdlflags='-Xlinker -Bexport -L/usr/local/lib'
  cccdlflags='-fpic'
  lddlflags='-G -L/usr/local/lib'
--- 142,148 ----
  if test "$usedl" != "n"; then
  ld='ld'
  case "$cc" in
! *gcc*)
  ccdlflags='-Xlinker -Bexport -L/usr/local/lib'
  cccdlflags='-fpic'
  lddlflags='-G -L/usr/local/lib'
-----------------------------cut here-----------------------------

Thanks,

Boyd Gerber
gerberb@​zenez.com

Perl Info


This perlbug was built using Perl 5.00503 - Tue Sep 21 09:56:47 MDT 1999
It is being executed now by  Perl 5.00502 - Mon Sep 21 17:04:33 PDT 1998.

Site configuration information for perl 5.00502:

Configured by hops at Mon Sep 21 17:04:33 PDT 1998.

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=svr5, osvers=uw7, archname=i386-svr5
    uname='unixware scoot 5 7 i386 x86at sco unix_svr5 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='/bin/cc', optimize='-g', gccversion=
    cppflags='-I/usr/include -I/usr/ucbinclude -I/usr/local/include'
    ccflags ='-I/usr/include -I/usr/ucbinclude -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='/bin/cc', ldflags ='-L/usr/ccs/lib -L/usr/ucblib -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib /usr/ucblib
    libs=-lsocket -lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lucb -lx
    libc=, so=so, useshrplib=true, libperl=libperl.so.5.52
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G -L/usr/ccs/lib -L/usr/ucblib -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00502:
    /usr/local/lib/perl5/5.00502/i386-svr5
    /usr/local/lib/perl5/5.00502
    /usr/local/lib/perl5/site_perl/5.005/i386-svr5
    /usr/local/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00502:
    HOME=/
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/ccs/lib:/usr/local/lib/mysql::.:/usr/zenez/build/uw7/perl5.005_03:
    LOGDIR (unset)
    PATH=:.:/usr/local/bin:/usr/local/bin/X11:/usr/ccs/bin:/usr/local/ubin:/usr/bin:/usr/etc:/usr/local/games:/bin:/etc:/usr/bin/X11:/usr/ucb:/usr/ccs/elf/bin:/usr/sbin:/sbin:
    PERL_BADLANG (unset)
    SHELL=/sbin/sh

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 21, 1999

From @jhi

0000-Admin (0000) writes​:

This is a bug report for perl from gerberb@​zenez.com,
generated with the help of perlbug 1.26 running under perl 5.00502.

-----------------------------------------------------------------
[Please enter your report here]

I have found the following patches are necessary to build perl on
UnixWare 7.x.x and OpenServer 5.0.x with both gcc and cc for the
platform in question. I have added the changes to get threads for
UnixWare 7.1.0.

Thanks. I now applied these patches towards the Perl 5.6 release (in
developer/alpha state now). It's not impossible but not certain,
either, that these patches will appear in 5.5 (aka 5.005) maintenance
releases.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 21, 1999

From [Unknown Contact. See original ticket]

To whom it may concern,

Sorry for this new patch so soon Hops @​ sco pointed out that gccversion
was not yet set and recommended I add some info. I have attached these
changes.

Thanks,

Boyd Gerber
gerberb@​zenez.com

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 21, 1999

From [Unknown Contact. See original ticket]

svr5.sh.patch
*** svr5.sh.org	Tue Sep 21 09:49:17 1999
--- svr5.sh	Tue Sep 21 22:49:59 1999
***************
*** 1,18 ****
  # svr5 hints, System V Release 5.x
  # Last modified 1999/09/21 by Boyd Gerber, gerberb@zenez.com
! 
  # Use Configure -Dcc=gcc to use gcc.
  case "$cc" in
  '') cc='/bin/cc'
      test -f $cc || cc='/usr/ccs/bin/cc'
      ;;
!   *)
!     case "$gccversion" in
!       *2.95*) 
!         ccflags='-fno-strict-aliasing'
!       ;;
!       *);;
!     esac
    ;;
  esac
  
--- 1,23 ----
  # svr5 hints, System V Release 5.x
  # Last modified 1999/09/21 by Boyd Gerber, gerberb@zenez.com
! # with changes from Mike Hopkirk hops@sco.com
  # Use Configure -Dcc=gcc to use gcc.
  case "$cc" in
  '') cc='/bin/cc'
      test -f $cc || cc='/usr/ccs/bin/cc'
+   ;;
+ *gcc*)
+   #  "$gccversion" not set yet
+   vers=`gcc -v 2>&1 | sed -n -e 's@.*version \([^ ][^ ]*\) .*@\1@p'`
+   case $vers in
+     *2.95*) 
+       ccflags='-fno-strict-aliasing'
+       # If it coredumps when running miniperl with the above switch on 
+       # try instead without optimisation.
+       #  optimize=' '
      ;;
!   *);;
!   esac
    ;;
  esac
  
@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From @jhi

Boyd Lynn Gerber (801) 250-O795 Work writes​:

To whom it may concern,

Sorry for this new patch so soon Hops @​ sco pointed out that gccversion
was not yet set and recommended I add some info. I have attached these
changes.

Applied.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From [Unknown Contact. See original ticket]

In message <14311.63378.903437.898062@​alpha.hut.fi>
  Jarkko Hietaniemi <jhi@​iki.fi> wrote​:

I have found the following patches are necessary to build perl on
UnixWare 7.x.x and OpenServer 5.0.x with both gcc and cc for the
platform in question. I have added the changes to get threads for
UnixWare 7.1.0.

Thanks. I now applied these patches towards the Perl 5.6 release (in
developer/alpha state now). It's not impossible but not certain,
either, that these patches will appear in 5.5 (aka 5.005) maintenance
releases.

You might want to consider how that patch interacts with the
existing Unixware 7 support in the svr4 hints file.

Tom

--
Tom Hughes (tom@​compton.nu)
http​://www.compton.nu/
...You are lustworthy.

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From @jhi

Tom Hughes writes​:

In message <14311.63378.903437.898062@​alpha.hut.fi>
Jarkko Hietaniemi <jhi@​iki.fi> wrote​:

I have found the following patches are necessary to build perl on
UnixWare 7.x.x and OpenServer 5.0.x with both gcc and cc for the
platform in question. I have added the changes to get threads for
UnixWare 7.1.0.

Thanks. I now applied these patches towards the Perl 5.6 release (in
developer/alpha state now). It's not impossible but not certain,
either, that these patches will appear in 5.5 (aka 5.005) maintenance
releases.

You might want to consider how that patch interacts with the
existing Unixware 7 support in the svr4 hints file.

Tom

I'll have to let you people who have access to svr4/svr5/sco boxes
to sort out these things. I'm rather good at hacking Configure/hints
"blind" but there are limits.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From [Unknown Contact. See original ticket]

In article <14312.34625.463981.132058@​alpha.hut.fi>, Jarkko Hietaniemi <jhi@​iki.fi> writes​:

Tom Hughes writes​:

In message <14311.63378.903437.898062@​alpha.hut.fi>
Jarkko Hietaniemi <jhi@​iki.fi> wrote​:

Thanks. I now applied these patches towards the Perl 5.6 release (in
developer/alpha state now). It's not impossible but not certain,
either, that these patches will appear in 5.5 (aka 5.005) maintenance
releases.

You might want to consider how that patch interacts with the
existing Unixware 7 support in the svr4 hints file.

Tom

I'll have to let you people who have access to svr4/svr5/sco boxes
to sort out these things. I'm rather good at hacking Configure/hints
"blind" but there are limits.

Unfortunately due a terminally damaged root file system I don't have
access to a Unixware 7 box at the moment...

I suspect it's more just a question of removing the UW 7 stuff from the
svr4 hints if we're going to use a new hints file for svr5. Of course if
the svr4 hints file has UW7 things that aren't in the svr5 hints then
they might need migrating.

Tom

--
Tom Hughes (tom@​compton.nu)
http​://www.compton.nu/
... If you really want to know, you won't ask me.

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From @doughera88

On Tue, 21 Sep 1999, Boyd Lynn Gerber (801) 250-O795 Work wrote​:

Sorry for this new patch so soon Hops @​ sco pointed out that gccversion
was not yet set and recommended I add some info. I have attached these
changes.

[changes to detect gcc-2.95 and set -fno-strict-aliasing]

Thanks, but that's actually not necessary. In 5.005_62 and on, Configure
should automatically test for -fno-strict-aliasing. (No, I wouldn't
expect you to know that.)

--
  Andy Dougherty doughera@​lafayette.edu
  Dept. of Physics
  Lafayette College, Easton PA 18042

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From [Unknown Contact. See original ticket]

On 22 Sep 1999, Tom Hughes wrote​:

Unfortunately due a terminally damaged root file system I don't have
access to a Unixware 7 box at the moment...

I suspect it's more just a question of removing the UW 7 stuff from the
svr4 hints if we're going to use a new hints file for svr5. Of course if
the svr4 hints file has UW7 things that aren't in the svr5 hints then
they might need migrating.

I started with the old svr4 hints file and modified it to work and find
everything. I have not done a diff because the changes were so many. It
should be just a remove the UW 7 stuff from svr4. So here is my
recommended patch to the svr4.sh file.

Thanks,

Boyd Gerber
gerberb@​zenez.com

@p5pRT

This comment has been minimized.

Copy link
Collaborator Author

@p5pRT p5pRT commented Sep 22, 1999

From [Unknown Contact. See original ticket]

svr4.sh.patch
*** svr4.sh.org	Wed Jul 29 19:04:38 1998
--- svr4.sh	Wed Sep 22 07:48:00 1999
***************
*** 105,118 ****
  fi
  if [ "$uw_isuw" = "Release = 5" ]; then
     case $uw_ver in
!    7)
! 	d_csh='undef'
! 	d_memcpy='define'
! 	d_memset='define'
! 	stdio_cnt='((fp)->__cnt)'
! 	d_stdio_cnt_lval='define'
! 	stdio_ptr='((fp)->__ptr)'
! 	d_stdio_ptr_lval='define'
  	;;
     esac
  fi
--- 105,125 ----
  fi
  if [ "$uw_isuw" = "Release = 5" ]; then
     case $uw_ver in
!    7*)
!    # Future of SCO OSR is SCO UnixWare: there should not be new OSR releases
!    echo "************************************************************" >&4
!    echo "�" >&4
!    echo "  sco.sh hints file only supports:" >&4
!    echo "�" >&4
!    echo "    - SCO Unix 3.2v4.x (OSR 3)" >&4
!    echo "    - SCO Unix 3.2v5.x (OSR 5)" >&4
!    echo "�" >&4
!    echo "�" >&4
!    echo "  For UnixWare 1-2.1.x, use svr4.sh hints instead" >&4
!    echo "  For UnixWare 7.x.x, use svr5.sh hints instead" >&4
!    echo "�" >&4
!    echo "***********************************************************" >&4
!    exit
  	;;
     esac
  fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.