[comp.sys.hp] no output from groff 0.6 on HPUX 7.0 on series 300

gt5431b@prism.gatech.EDU (Michael J. Gourlay) (11/15/90)

Hello,

	I have not noticed anyone posting to this group about groff.  Has
anyone got groff to work on an HP?  I built it, and all of it compiled except
for groff.c, so I use groff.sh as the front end.  I compiled it with g++ 1.37.1
and it went trough make, with only a few weird errors where some object files
apparently did not get into the libgroff.a archive, so I linked the problem
object by putting the .o files in the g++ command line.

	After it was all built and installed, I tried to groff gnu's man pages
for groff with this:

groff -Tascii -man /usr/local/manman1/groff.1

and after about 10 or 20 seconds, it came back to the command prompt.  No man
age was ever printed.  I also tried using the ms macros with some files I
printed usinf ditroff, and the same thing happened; It waited, then did
nothing.  I occasionally got core dumps.  Sun folks don't seem to have this
problem.  Is it just me, or is it HP?  More to the point, what do I do now?

	Help is apreciated.

------- -- -------
Michael J. Gourlay                                gt5431b@prism.gatech.edu
	mike@penguin.gatech.edu or ...uunet!gatech!penguin!mike
                "It's me; I've been ionized...." - BB
Georgia Institute of Technology, School of Physics, Atlanta Georgia, 30332

zlsiial@uts.mcc.ac.uk (A.V. Le Blanc) (11/15/90)

I have groff 0.6 running on HP-UX 7.0 on HP9000/300's.
I had no problem with the same man page (groff.1) and the same
options (-Tascii -man).  The section in the Makefile for
compiling groff.o from groff.c is simply screwed up -- even
under bash -- and needs to be modified.  I am using g++ 1.37.1,
but with libraries from 1.37.2 (which means optimisation is
required).  The only file I had to change was the Makefile.
The installation of man pages to /tmp allows me to compress
them before moving them to /usr/contrib/man/man1.Z and such.
My diffs follow.  Hope this helps.

			Yours,
			A. V. Le Blanc
			ZLSIIAL@UK.AC.MCC.CMS

diff -rc2N groff-0.6/Makefile groff-hp/Makefile
*** groff-0.6/Makefile	Tue Sep 18 09:14:07 1990
--- groff-hp/Makefile	Thu Nov  1 11:04:49 1990
***************
*** 32,36 ****
  
  # FONTPATH says where to look for dev*/*.
! FONTPATH=.:$(FONTDIR):/usr/local/lib/font:/usr/lib/font
  
  # MACRODIR says where to install macros.
--- 32,36 ----
  
  # FONTPATH says where to look for dev*/*.
! FONTPATH=.:$(FONTDIR)
  
  # MACRODIR says where to install macros.
***************
*** 41,45 ****
  
  # DEVICE is the default device.
! DEVICE=ps
  
  # PSPRINT is the command to use for printing a PostScript file.
--- 41,45 ----
  
  # DEVICE is the default device.
! DEVICE=ascii
  
  # PSPRINT is the command to use for printing a PostScript file.
***************
*** 49,53 ****
  # DVIPRINT is the command to use for printing a TeX dvi file.
  # It must be a simple command, not a pipeline.
! DVIPRINT=lpr -d
  
  # HYPHENFILE is the file containing the hyphenation patterns.
--- 49,53 ----
  # DVIPRINT is the command to use for printing a TeX dvi file.
  # It must be a simple command, not a pipeline.
! DVIPRINT=dvi2lj
  
  # HYPHENFILE is the file containing the hyphenation patterns.
***************
*** 55,59 ****
  
  # MANROOT is the root of the man page directory tree.
! MANROOT=/usr/local/man
  
  # MAN1EXT is the man section for user commands.
--- 55,59 ----
  
  # MANROOT is the root of the man page directory tree.
! MANROOT=/tmp
  
  # MAN1EXT is the man section for user commands.
***************
*** 77,81 ****
  # Include -DHAVE_VFORK if you have vfork().
  # Include -DHAVE_SYS_SIGLIST if you have sys_siglist[].
! CPPDEFINES=-DHAVE_VFORK -DHAVE_SYS_SIGLIST #-DCFRONT_ANSI_BUG -DBROKEN_SPOOLER
  
  # Uncomment the next line if you don't have fmod in your math library.
--- 77,81 ----
  # Include -DHAVE_VFORK if you have vfork().
  # Include -DHAVE_SYS_SIGLIST if you have sys_siglist[].
! CPPDEFINES=-DHAVE_VFORK  #-DHAVE_SYS_SIGLIST -DCFRONT_ANSI_BUG -DBROKEN_SPOOLER
  
  # Uncomment the next line if you don't have fmod in your math library.
***************
*** 89,95 ****
  # Additional flags needed to compile lib/malloc.c
  # Use this with BSD.
! MALLOCFLAGS=-DBSD
  # Use this with System V
! # MALLOCFLAGS=-DUSG
  # Use this with SunOS 4.1
  # MALLOCFLAGS=-DBSD -DSUNOS_LOCALTIME_BUG
--- 89,95 ----
  # Additional flags needed to compile lib/malloc.c
  # Use this with BSD.
! # MALLOCFLAGS=-DBSD
  # Use this with System V
! MALLOCFLAGS=-DUSG
  # Use this with SunOS 4.1
  # MALLOCFLAGS=-DBSD -DSUNOS_LOCALTIME_BUG
***************
*** 99,103 ****
  MALLOC=malloc.o
  
! GROFF=
  # Comment the next line out if groff.c gives problems.
  GROFF=groff
--- 99,103 ----
  MALLOC=malloc.o
  
! # GROFF=
  # Comment the next line out if groff.c gives problems.
  GROFF=groff
***************
*** 109,116 ****
  
  # OLDCC is the C compiler.
! OLDCC=gcc
  
  PROFILE_FLAG=
! DEBUG_FLAG=-g
  OPTIMIZE_FLAG=-O
  WARNING_FLAGS=#-Wall -Wcast-qual -Wwrite-strings
--- 109,116 ----
  
  # OLDCC is the C compiler.
! OLDCC=ggcc -Detext=_etext
  
  PROFILE_FLAG=
! DEBUG_FLAG=
  OPTIMIZE_FLAG=-O
  WARNING_FLAGS=#-Wall -Wcast-qual -Wwrite-strings
***************
*** 134,141 ****
  MLIBS=$(LIBS) -lm
  
! AR=ar
  
  # Define RANLIB to be empty if you don't have ranlib.
! RANLIB=ranlib
  
  # YACC can be either yacc or bison -y
--- 134,141 ----
  MLIBS=$(LIBS) -lm
  
! AR=gar
  
  # Define RANLIB to be empty if you don't have ranlib.
! RANLIB=granlib
  
  # YACC can be either yacc or bison -y
***************
*** 147,151 ****
  ETAGSFLAGS=-p
  
! SHELL=/bin/sh
  
  SUBDIRS=lib troff pic tbl eqn etc driver ps tty dvi macros man
--- 147,151 ----
  ETAGSFLAGS=-p
  
! SHELL=/usr/local/bin/bash
  
  SUBDIRS=lib troff pic tbl eqn etc driver ps tty dvi macros man
***************
*** 247,254 ****
  groff.o: groff.c
  	$(CC) -c -Ilib $(CFLAGS) -DDEVICE=\"$(DEVICE)\" \
! 	"-DPSPRINT=`set $(PSPRINT); for arg do echo \\\"$$arg\\\", ; done \
! 	| tr -d "\012"`" \
! 	"-DDVIPRINT=`set $(DVIPRINT); for arg do echo \\\"$$arg\\\", ; done \
! 	| tr -d "\012"`" \
  	groff.c
  
--- 247,251 ----
  groff.o: groff.c
  	$(CC) -c -Ilib $(CFLAGS) -DDEVICE=\"$(DEVICE)\" \
! 	-DPSPRINT=\"$(PSPRINT)\", -DDVIPRINT=\"$(DVIPRINT)\", \
  	groff.c