🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #871

Re: BASH Under Solaris 2.0 ???

#871
From: Dave Brennan
Date: Sat, 05 Sep 1992 10:00
46 lines
2277 bytes
I just took a quick pass at building 1.12 under SunOS 5.0 (ie: USG V.4).
Since I don't have a lot of time to mess with this I operated in quick
port/hack mode.

Because I'm not sure what cc or cpp defines I replaced the old sparc
definitions in machines.h with:

#  define M_OS USG
#  define SunOS4_SYSDEP_CFLAGS -DUSGr4
#    define HAVE_SYS_SIGLIST
#    define HAVE_VFPRINTF
#    define VOID_SIGHANDLER
#    define HAVE_ALLOCA
#    define HAVE_STRERROR
#    define HAVE_GETGROUPS

Here's the problems I encountered:

* For some reason the PPROPMT and SPROMPT macros defined on the "cc" line
  got substituted without the closing quote.  For now I just hacked up the
  "cc -E" output so that it would compile.  I don't know why, but somewhere
  the quote was getting eaten.  I'd like to know why, but don't have time
  to chase it down.

* All instances of the "ar" command in the library Makefiles use the 
  depreciated 'l' flag which isn't supported anymore.

* readline.c didn't compile at first because /usr/include/sys/reg.h defines
  "PC" as "(1)" and PC is used as a variable.  I just threw #ifdef PC / 
  #undef PC in readline.c to fix it.

* Trying to link -Bstatic caused cc to look for libaio.a, which was missing.
  Removing -Bstatic fixed this.

* globbing is messed up and always seems to chop the first 2 characters off
  file names.  Unfortunately this makes bash highly unusable.

If anyone else has had any luck or has time to track this last problem down
you'd be doing everyone a favor.  Please send me mail or post if you
need or have more info.

--
Dave Brennan                                      HaL Computer Systems
brennan@hal.com                                         (512) 794-2855

Visit the Emacs Lisp Archive: archive.cis.ohio-state.edu:pub/gnu/emacs
Technical Details
Message-ID: <BRENNAN.92Sep5040044@yosemite.hal.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hal.com!brennan
References: <9208292309.AA17030@yahoo.cirrus.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hal.com!brennan
From: brennan@hal.com (Dave Brennan)
Subject: Re: BASH Under Solaris 2.0 ???
Message-ID: <BRENNAN.92Sep5040044@yosemite.hal.com>
Sender: gnulists@ai.mit.edu
Organization: HaL Computer Systems, Austin, TX
References: <9208292309.AA17030@yahoo.cirrus.com>
Distribution: gnu
Date: Sat, 5 Sep 1992 10:00:44 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 47