Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bash and sco v5

7 views
Skip to first unread message

William Bader

unread,
Jan 5, 1996, 3:00:00 AM1/5/96
to
I am back from Uruguay. Hopefully, I won't have to go back again,
but this time, it was 100 F there when I left, and I came back to 10 F and
a foot of snow, so I wouldn't have minded staying longer...
I don't usually have to travel. They probably won't let me out of my cube
for another ten years.

bash-1.14.6 (as posted in prep.ai.mit.edu pub/gnu) built OK on my SCO ODT 2.0
(SCO Unix 3.2v4.0) system.

It did not build on my SCO v5 system.
I am using SCO's cc and make. (I have gcc, but I built it under SCO 3.2v4
before the upgrade to SCO v5, and it has the built in #defines for SCO 3.2v4.
I lost control over the v5 system in my absence, so I can't rebuild gcc for it.
I'm not even sure if gcc supports v5. I just built gcc-2.7.2 on my ODT 2.0
system.)
SCO v5 has dynamic libraries (although the compiler generates COFF by default
and only ELF supports dll's), so mksysdefs thinks it is on a USGr4 system
because "/usr/ccs/lib/libc.so" exists.
All of the modules compile, but the link fails because there is no -lucb
(easy to fix) and no sys_siglist (or something like that) (which I am
not sure how to fix).

I made the change to mksysdef below so it recognizes that it is SCOv5,
but then the compile for malloc.c fails at line 115 with
"identifier redeclared: sbrk". Unless bash depends on non-standard usages
of malloc (like referencing free'd data), SCO's malloc should be OK to use.

To fix the malloc problem, I made the change to machine.h below.

"make tests" runs cleanly.

All of the compiles get a warning about ignoring "-O" because "-g"
is specified also.

By the way, now that SCO bought out Novel, I believe that they will have
new releases of both SCO Unix and what they now call SCO UnixWare in the
near future, and a merged release maybe a year later. Since SCO v5 and
UnixWare have incompatible versions of ELF, they are recommending using
COFF. They claim that COFF executables will run on SCO 3.2v4, v5 and
the merged version. Still, it looks like a maintenance nightmare to me,
because we have to support Xenix 2.2, Xenix 2.3.[34], SCO 3.2v4.[012],
SCO v5, and now two new versions.

William Bader
Senior Analyst
Software Consulting Services
3162 Bath Pike
Nazareth, PA 18064-8978
www: http://nscs.fast.net/william.html (nscs.fast.net is 204.120.81.72)
work: 610-837-8485
fax: 610-837-8080
home: 610-868-1311
email: wba...@pluto.csee.lehigh.edu, wil...@nscs.fast.net
note: replies to wba...@csee.lehigh.edu without pluto sometimes bounce

*** ./support/mksysdefs- Tue Nov 28 13:18:53 1995
--- ./support/mksysdefs Wed Dec 27 19:34:55 1995
***************
*** 261,266 ****
--- 261,275 ----
*) SYSDEF=SCO ;;
esac
fi
+ if [ "$SYSDEF" = "USGr4" -a -f /bin/uname ]; then
+ case `/bin/uname -X 2>/dev/null | grep '^System' 2>/dev/null` in
+ *SCO_SV*)
+ case `/bin/uname -X 2>/dev/null | grep '^Release' 2>/dev/null` in
+ *3.2v5.*) SYSDEF=SCOv5 ;;
+ esac
+ ;;
+ esac
+ fi

#
# Default to cadmus for unknown SysVish systems
*** ./machines.h- Mon Dec 18 14:13:22 1995
--- ./machines.h Wed Dec 27 21:41:58 1995
***************
*** 769,775 ****
# define M_MACHINE "i386"
# define M_OS "SCO"
# define SCO_CFLAGS -DUSG -DUSGr3 -DPGRP_PIPE
! # if defined (SCOv4) || defined (SCOv5)
# define SYSDEP_CFLAGS SCO_CFLAGS -DWAITPID_BROKEN
# else /* !SCOv4 && !SCOv5 */
# define SYSDEP_CFLAGS SCO_CFLAGS -DOPENDIR_NOT_ROBUST -DMUST_UNBLOCK_CHILD
--- 769,777 ----
# define M_MACHINE "i386"
# define M_OS "SCO"
# define SCO_CFLAGS -DUSG -DUSGr3 -DPGRP_PIPE
! # if defined (SCOv5)
! # define SYSDEP_CFLAGS SCO_CFLAGS -DWAITPID_BROKEN -DNO_SBRK_DECL
! # elif defined (SCOv4)
# define SYSDEP_CFLAGS SCO_CFLAGS -DWAITPID_BROKEN
# else /* !SCOv4 && !SCOv5 */
# define SYSDEP_CFLAGS SCO_CFLAGS -DOPENDIR_NOT_ROBUST -DMUST_UNBLOCK_CHILD
***************
*** 779,785 ****
# define HAVE_GETGROUPS
# undef HAVE_GETWD
# undef HAVE_RESOURCE
! /* advice from wba...@cess.lehigh.edu and Eduard....@vse.cz */
# if !defined (HAVE_GCC)
# define REQUIRED_LIBRARIES -lc_s -lc -lPW
# else
--- 781,787 ----
# define HAVE_GETGROUPS
# undef HAVE_GETWD
# undef HAVE_RESOURCE
! /* advice from wba...@pluto.csee.lehigh.edu and Eduard....@vse.cz */
# if !defined (HAVE_GCC)
# define REQUIRED_LIBRARIES -lc_s -lc -lPW
# else


0 new messages