bug-gnu-utils
[Top][All Lists]
Advanced

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

Problems compiling gettext 0.10.35 on Solaris_5.5.1.


From: Mario Nigrovic on waldo
Subject: Problems compiling gettext 0.10.35 on Solaris_5.5.1.
Date: Sun, 15 Oct 2000 22:14:16 -0700 (MST)

Hello -

   I am in the middle of compiling GNU utilities for several
platforms, and I am having a problem with gettext on Solaris
5.5.1 only.

   I get many unresolved references to functions allegedly
defined in libintl.a:

gcc -g -O2 -o gettext gettextp.o ../lib/libnlsut.a ../intl/libintl.a
gettextp.o: In function `main':
/tmp/gettext.1/src/gettextp.c:95: undefined reference to `bindtextdomain'
/tmp/gettext.1/src/gettextp.c:96: undefined reference to `textdomain'
/tmp/gettext.1/src/gettextp.c:134: undefined reference to `gettext'
/tmp/gettext.1/src/gettextp.c:139: undefined reference to `gettext'
/tmp/gettext.1/src/gettextp.c:154: undefined reference to `gettext'
/tmp/gettext.1/src/gettextp.c:164: undefined reference to `gettext'
gettextp.o: In function `usage':
/tmp/gettext.1/src/gettextp.c:228: undefined reference to `gettext'
gettextp.o:/tmp/gettext.1/src/gettextp.c:233: more undefined references to 
`gettext' follow
collect2: ld returned 1 exit status
make[2]: *** [gettext] Error 1
make[2]: Leaving directory `/tmp/gettext.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gettext.1'
make: *** [all-recursive-am] Error 2

I am not using glibc, and I suspect that this is exposing a problem
with references in gettextp.c.  That function sometimes refers to
bindtextdomain__ and sometimes to bindtextdomain, although the
file intl/bindtextdom.c is very particular about the function name
is defines.

The problem is hidden under Solaris 5.6 and 5.7 because the libc's
which are provided with those versions define their own functions.

I don't know whether all these bindtextdom implementations are
interoperable, but I think it's probably wise to clean up the
code inside the gettext package to refer just to itself.

                                        Mario Nigrovic



reply via email to

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