Subject: bin/30196: gettext 0.14.4 does not compile with -Os optimisation
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <adam@NetBSD.org>
List: netbsd-bugs
Date: 05/11/2005 09:46:00
>Number: 30196
>Category: bin
>Synopsis: gettext 0.14.4 does not compile with -Os optimisation
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 11 09:46:00 +0000 2005
>Originator: Adam Ciarcinski
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD adamnb 3.99.3 NetBSD 3.99.3 (ADAMI4000) #0: Mon May 9 12:30:31 UTC 2005 root@adamnb:/usr/src/sys/arch/i386/compile/ADAMI4000 i386
Architecture: i386
Machine: i386
>Description:
gettext 0.14.4 does not compile with -Os optimisation
-O and -O2 optimisation options are fine
the error message is:
# compile msgattrib/msgattrib.o
cc -Os -DHAVE_CONFIG_H -I/usr/src/gnu/usr.bin/gettext/msgattrib -I/usr/src/gnu/usr.bin/gettext/msgattrib/../include -I/usr/src/gnu/dist/gettext/gettext-tools/lib -DLOCALEDIR=\"/usr/share/locale\" -I/usr/src/gnu/dist/gettext/gettext-tools/src -c /usr/src/gnu/dist/gettext/gettext-tools/src/msgattrib.c
# link msgattrib/msgattrib
cc -o msgattrib -Wl,-rpath-link,/lib:/usr/lib -L/lib msgattrib.o -L/usr/src/gnu/usr.bin/gettext/libnlspr -lnlspr -L/usr/src/gnu/usr.bin/gettext/libnlsut -lnlsut -lintl
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(write-po.o)(.text+0x6ee): In function `message_print_syntax_stringtable':
: undefined reference to `c_isprint'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(write-po.o)(.text+0x901): In function `message_print_syntax_stringtable':
: undefined reference to `c_isprint'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(msgl-ascii.o)(.text+0x11): In function `is_ascii_string':
: undefined reference to `c_isascii'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(msgl-ascii.o)(.text+0x80): In function `is_ascii_message':
: undefined reference to `c_isascii'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(po-lex.o)(.text+0xb74): In function `lex_end':
: undefined reference to `c_isxdigit'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(po-lex.o)(.text+0xb85): In function `lex_end':
: undefined reference to `c_isdigit'
/usr/src/gnu/usr.bin/gettext/libnlspr/libnlspr.a(po-lex.o)(.text+0xb99): In function `lex_end':
: undefined reference to `c_isupper'
/usr/src/gnu/usr.bin/gettext/libnlsut/libnlsut.a(linebreak.o)(.text+0x92c): In function `u8_width_linebreaks':
: undefined reference to `c_isprint'
/usr/src/gnu/usr.bin/gettext/libnlsut/libnlsut.a(linebreak.o)(.text+0x937): In function `u8_width_linebreaks':
: undefined reference to `c_isspace'
/usr/src/gnu/usr.bin/gettext/libnlsut/libnlsut.a(c-strcasecmp.o)(.text+0x17): In function `c_strcasecmp':
: undefined reference to `c_tolower'
/usr/src/gnu/usr.bin/gettext/libnlsut/libnlsut.a(c-strcasecmp.o)(.text+0x22): In function `c_strcasecmp':
: undefined reference to `c_tolower'
>How-To-Repeat:
cd /usr/src/gnu/usr.bin/gettext && make dependall CFLAGS=-Os
>Fix:
Update GCC to the latest version? :)