🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #424

Req help bldg GNU gas 1.34 on hpux

#424
From: unknown
Date: Fri, 15 Sep 1989 14:58
23 lines
1156 bytes
(Building on HP 9000/300)

I'm having problems building write.c from the gas-1.34 distribution on
prep.ai.mit.edu.  The offending section is

   md_number_to_chars((char *)&the_exec.a_machtype, EXEC_MACHINE_TYPE, sizeof(the_exec.a_machtype));

What I've fixed so far is the original definition

#define EXEC_MACHINE_TYPE HP9000S200_ID

which only makes sense when you rewrite as

#ifdef hpux
#include <magic.h>
#define EXEC_MACHINE_TYPE HP9000S200_ID
#endif

(HP9000S200_ID is defined in HP's include only).  Also, there is
neither a a_machtype member in GNU a.out.h definition of the exec
structure, nor in the a_out.h on the HP.  The .o' that result from
this do not pass either GNU nm or HP-UX nm.  Can anyone offer to post
their working write.c etc for HP-UX?
Technical Details
Message-ID: <PNH.89Sep15105824@morocco.osf.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!brutus.cs.uiuc.edu!psuvax1!husc6!paperboy!pnh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!brutus.cs.uiuc.edu!psuvax1!husc6!paperboy!pnh
From: pnh@morocco.osf.org (unknown)
Newsgroups: gnu.utils.bug
Subject: Req help bldg GNU gas 1.34 on hpux
Message-ID: <PNH.89Sep15105824@morocco.osf.org>
Date: 15 Sep 89 14:58:24 GMT
Sender: news@OSF.ORG
Distribution: gnu
Organization: Open Software Foundation
Lines: 23