bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

groff 1.19.1 compilation with xlC och AIX


From: Niklas Edmundsson
Subject: groff 1.19.1 compilation with xlC och AIX
Date: Tue, 25 May 2004 09:08:25 +0200 (CEST)

GROFF VERSION:
1.19.1

MACHINE:
IBM RS/6000 / pSeries

OS:
AIX 5.1 ML5

COMPILER:
VisualAge C++ Compiler 6.0.0

INPUT FILES:
N/A

COMMAND LINE:
N/A

DESCRIPTION OF INCORRECT BEHAVIOUR:
groff 1.19.1 doesn't compile when using a current xlC (VisualAge C++
Compiler) on AIX.

SUGGESTED FIX:
I have identified 2 problems:
* config.h isn't included where needed (xlC bails out when system
  include files redefines macros that groff include files has set
  "because they're missing"...
* Some functions are used without prototypes (producing very obscure
  error messages in true xlC manner ;).

The attached patch fixes the following:
* config.h is included where needed. I manually added #ifdefs to
  config.h to avoid it being processed more than once, this might be a
  good idea to add to the autoconf/automake-magic that generates it.
* Prototypes are added where needed. You will probably want to verify
  my placement of them.


/Nikke
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Niklas Edmundsson, Admin @ {acc,hpc2n,ing}.umu.se    |   address@hidden
---------------------------------------------------------------------------
 "I am the winged scourge that pecks at your nightmares!" - DarkWing
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Attachment: groff-1.19.1-xlC.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]