[Top][All Lists]

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

HP-UX 11 build issues with texinfo 5.0

From: Richard Lloyd
Subject: HP-UX 11 build issues with texinfo 5.0
Date: Mon, 18 Feb 2013 11:52:10 +0000 (GMT)

I've been building texinfo 5.0 using HP-UX 11.11/11.23/11.31 on PA-RISC
platforms with HP's ANSI C compiler and have come across some issues
that may need fixing (they're mainly for non-GNU environments obviously).

The changes I suggest below are probably not the most "correct" (e.g. some
should be done via configure testing etc.), but hopefully they'll provide
at least a starting point.

* gnulib/lib/xalloc.h:
  XALLOC_INLINE needed to be be defined as static (rather than extern inline)
  to avoid multiple defintions of *alloc() routines. I just put this in
  xalloc.h as follows (line 30):

#ifdef __hpux
#define XALLOC_INLINE static

* HP-UX has never had the va_copy() function, so I defined one to use memcpy()
  at line 28 of info/info-utils.c:

#ifdef __hpux
#define va_copy(ap1,ap2) memcpy((&ap1),(&ap2),sizeof(va_list))

* HP-UX 11 ships with two zdiff binaries (in /usr/bin and /usr/contrib/bin) and 
  to pick the "non-gzip" version in /usr/bin with the default PATH. To get 
  this, I put /usr/contrib/bin in front of the PATH just before zdiff is run
  (line 21 in install-info/tests/ii-0041-test and line 22 in

export PATH=/usr/contrib/bin:$PATH

* Non-gcc compilers, including HP's ANSI C, probably won't like the
  TEXINFO_PRINTFLIKE() macro definition in system.h, so for non-gcc systems,
  I defined it to be nothing (line 232):

#ifdef __GNUC__
# define TEXINFO_PRINTFLIKE(fmt,narg) __attribute__ ((__format__ (__printf__, 
fmt, narg)))
# define TEXINFO_PRINTFLIKE(fmt,narg)
* GNU diff-only flags (-a, -U, -u, --exclude=) were used in the following
  scripts and were removed to improve portability for non-GNU diff:


  All the "gmake check" diff tests worked correctly without those
  GNU diff-only flags.

Richard K. Lloyd,           E-mail: address@hidden
Connect Internet Solutions,    WWW: http://www.connectinternetsolutions.com/
4th Floor, New Barratt House,
47, North John Street,
Merseyside, UK. L2 6SG

This e-mail (and any attachments) is private and confidential. If you have 
received it in error, please notify the sender immediately and delete it 
from your system. Do not use, copy or disclose the information in any way 
nor act in reliance on it.

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Connect
Internet Solutions Ltd. This e-mail and any attachments are believed to be
virus free but it is the recipient's responsibility to ensure that they are.

Connect Internet Solutions Ltd
(A company registered in England No: 04424350)
Registered Office: 4th Floor, New Barratt House, 47 North John Street,
Liverpool, L2 6SG
Telephone: +44 (0) 151 282 4321
Fax: +44 (0) 151 282 4322
VAT registration number: 758 2838 85

reply via email to

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