[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coreutils-4.5.1 and gettext-0.11.5 incompatibility on DEC Alpha G
From: |
Nelson H. F. Beebe |
Subject: |
coreutils-4.5.1 and gettext-0.11.5 incompatibility on DEC Alpha GNU/Linux (Red Hat 6.2) |
Date: |
Mon, 16 Sep 2002 13:34:11 -0600 (MDT) |
A build of coreutils-4.5.1 on DEC Alpha GNU/Linux (Red Hat 6.2)
exposes an apparent incompatibility with gettext-0.11.x:
gcc -g -O2 -o uptime uptime.o ../lib/libfetish.a
../lib/libfetish.a
uptime.o: In function `print_uptime':
/local/build/coreutils-4.5.1/src/uptime.c:142: undefined reference to
`ngettext'
/local/build/coreutils-4.5.1/src/uptime.c:142: undefined reference to
`ngettext'
/local/build/coreutils-4.5.1/src/uptime.c:144: undefined reference to
`ngettext'
/local/build/coreutils-4.5.1/src/uptime.c:144: undefined reference to
`ngettext'
collect2: ld returned 1 exit status
Trapping the preprocessor output shows that there are two colliding
definitions of ngettext:
coreutils-4.5.1/lib/gettext.h has
# define ngettext(Msgid1, Msgid2, N) \
((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
while gettext-0.11.5 (via /usr/local/include/libintl.h) has
static inline char *ngettext (const char *__msgid1, const char
*__msgid2,
unsigned long int __n)
{
return libintl_ngettext (__msgid1, __msgid2, __n);
}
The result is that uptime.c gets expanded to
...
extern char *ngettext (const char *__msgid1,
const char *__msgid2,
unsigned long int __n)
__asm__ ("" "libintl_ngettext" ) ;
...
It looks like one or the other of coreutils-4.5.1 and gettext-0.11.5
may need to be changed.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- Center for Scientific Computing FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah Internet e-mail: address@hidden -
- Department of Mathematics, 110 LCB address@hidden address@hidden -
- 155 S 1400 E RM 233 address@hidden -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe -
-------------------------------------------------------------------------------
- coreutils-4.5.1 and gettext-0.11.5 incompatibility on DEC Alpha GNU/Linux (Red Hat 6.2),
Nelson H. F. Beebe <=