bug-gnulib
[Top][All Lists]
Advanced

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

Re: XALLOC_INLINE static on HP-UX?


From: Karl Berry
Subject: Re: XALLOC_INLINE static on HP-UX?
Date: Tue, 19 Feb 2013 23:08:04 GMT

Hi Paul,

Richard Lloyd (cc'd again) followed up with the info below (on
bug-texinfo).

(Richard: Paul/et al. are not on bug-texinfo, so please keep discussion
on the gnulib/lib/xalloc.h change on this list, bug-gnulib.)

Thanks,
k

Date: Tue, 19 Feb 2013 15:56:41 +0000 (GMT)
From: Richard Lloyd <address@hidden>
To: address@hidden
Subject: Re: HP-UX 11 build issues with texinfo 5.0

Here's some answers to the questions raised by my HP-UX 11 issues with
texinfo 5.0:

* The compiler I'm using is HP's optional ANSI C (located as /opt/ansic/bin/cc)
  with a revision number of B.11.11.20 (PA-RISC) or A.06.26 (Itanium).
  The __HP_cc macro therefore returns 111120 (PA-RISC) or 62600 (Itanium). 

* If I omit the gnulib/lib/xalloc.h change I suggested, I get this sort of
  error message when compiling/linking makedoc:

cc  -O -I/usr/local/include  -Wl,+b -Wl,/usr/local/lib/hpux32 
-L/usr/local/lib/hpux32 -o makedoc makedoc.o ../gnulib/lib/libgnu.a -lncurses 
/usr/local/lib/hpux32/libintl.so /usr/local/lib/hpux32/libiconv.so -Wl,+b 
-Wl,/usr/local/lib/hpux32 
ld: Duplicate symbol "xnmalloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xmalloc.o]
ld: Duplicate symbol "xnrealloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xmalloc.o]
ld: Duplicate symbol "xcharalloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xmalloc.o]
ld: Duplicate symbol "xnmalloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xalloc-die.o]
ld: Duplicate symbol "xnrealloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xalloc-die.o]
ld: Duplicate symbol "xcharalloc" in files makedoc.o and 
../gnulib/lib/libgnu.a[xalloc-die.o]
6 errors.

   This is because the functions have been declared globally in more than
   one source file and it's why I suggested static compilation of the
   function instead.



reply via email to

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