🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #342

make 3.54 and HP-UX

#342
From: Dave Barrett
Date: Thu, 03 Aug 1989 23:31
55 lines
2142 bytes
Greetings,

I have (I think) gotten gnu make to port to Hewlett-Packard 9000/300 HP-UX
6.5.   I had a couple of problems though, and some things I am unsure about.

HP-UX is a System V derivitive, but it has a number of BSD things and some
slight differences (enough to be a big pain actually)

The biggest problems I see are with signal handling in job.c and with
filename lengths in glob.c.  HP-UX supports both system-V style 14-char
filenames and BSD-style long filenames.  I'm havn't dived enough into it
to tell how to use what.  HP's signal handling may also be either
sys-V or BSD.  (It has sigmask, wait3, signal, and a bsd style routine
called "sigvector")

Is USG really the same as system-V?

I'm concerned whether my hacks to job.c are correct.  I don't really know
what HP-UX will do in this context.  If I sent you a man page on these
routines would it help?

In any case, here is what I had to do:

Dave Barrett 
barrett%hpisldab@hplabs.hp.com


1) Got a copy of alloca.
2) Patched job.c, and glob.c (in following messages)
3) Edited Makefile:

   CFLAGS = $(defines) -O
   LDFLAGS = -O
   defines = -O -DUSG -DHAVE_SYS_WAIT -DHPUX
   LOAD_AVG = -DKERNEL_FILE=\"/hp-ux\"
   ALLOCA = alloca.o
   ALLOCASRC = alloca.c

---Bug1: job.c won't compile.

"job.c", line 144: child_handler undefined
"job.c", line 210: operands of CAST have incompatible types
"job.c", line 210: operands of & have incompatible types
"job.c", line 210: operands of & have incompatible types
"job.c", line 879: errno undefined
"job.c", line 879: EMFILE undefined

---Bug2:

ld: Undefined external -
	_rindex
	_getdtablesize
ld: output file still contains undefined symbols

ld: (Warning) did not generate an output file
Technical Details
Message-ID: <8908032331.AA20915@hpisldab.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!HPLABS.HP.COM!barrett%hpisldab

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!HPLABS.HP.COM!barrett%hpisldab
From: barrett%hpisldab@HPLABS.HP.COM (Dave Barrett)
Newsgroups: gnu.utils.bug
Subject: make 3.54 and HP-UX
Message-ID: <8908032331.AA20915@hpisldab.HP.COM>
Date: 3 Aug 89 23:31:03 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 55