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

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

wrong gnu_getline definition


From: Nils Magnus Larsgard
Subject: wrong gnu_getline definition
Date: Wed, 19 Jul 2006 11:26:48 +0200

Hi,

When I compiled gettext-0.14.6 the other day, I got some compiling
errors(at the end of the mail). I found that the definition of 'getline'
in 'gettext-tools/config.h' was set to 'gnu_getline':

#define getline gnu_getline

So I changed it into

#define gnu_getline getline

And everything compiles cleanly by now, and the gettext library seems to
work perfectly. I also tried to compile it statically, wich gave no
compiler errors, but runtime errors of the kind "undefined referrence to
'gnu_getline' ".


Please correct me if I am wrong.


Compilation error:

avr32-linux-gcc -g -O2 -o .libs/testlocale
testlocale.o  ../intl/.libs/libintl.so
-L/usr/avr32-linux/lib /usr/avr32-linux/lib/libiconv.so -lc -Wl,--rpath
-Wl,/usr/avr32-linux/lib
../intl/.libs/libintl.so: undefined reference to `gnu_getline'
collect2: ld returned 1 exit status
distcc[1869] ERROR: compile (null) on localhost failed
make[3]: *** [testlocale] Error 1
make[3]: Leaving directory
`/home/nilsmagnus/directFB/gettext-0.14.5/gettext-tools/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/nilsmagnus/directFB/gettext-0.14.5/gettext-tools'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/nilsmagnus/directFB/gettext-0.14.5/gettext-tools'
make: *** [all-recursive] Error 1

-- 
Kind regards, 
Vennlig hilsen,

Nils Magnus Larsgård 
Summer intern - AVR APPS Group
Atmel Norway







reply via email to

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