Viestiss� Lauantai 26 Hein�kuu 2003 23:08, Thomas Backlund kirjoitti:
> Viestiss� Lauantai 26. Hein�kuuta 2003 20:44, Gwenole Beauchesne kirjoitti:
> > > and since the 0.6mdk gcc had no problem compiling the 5mdk kernel,
> > > I would say it's the gcc update that wasn't good :-(
> >
> > I would say this is not a GCC bug.
> >
> > [EMAIL PROTECTED] vrac]$ rpm -q gcc
> > gcc-3.3.1-0.7mdk
> > [EMAIL PROTECTED] vrac]$ gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2
> > -fno-strict-aliasing -fno-common -pipe -fomit-frame-pointer
> > -mpreferred-stack-boundary=2 -march=i586 emufx.exp.c -c && echo $?
> > 0
> >
> > (emufx.exp.c being the preprocessing output of the above-mentioned
> > files with your options).
>
> Sorry for the delay responding, but I had to try to rebuild with different
> options...
>
> Now this is fun... or not ... :-(
>
> To minimize the compile time I used:
> LC_ALL=C rpm -ba kernel-2.4.spec --without smp --without secure --without
> enterprise --without doc --without source --without BOOT
> (since it was on the 'up' kernel I got the "bug"...)
>
> Try 1: - same options as when I got the bug above:
> Result: fails with complaints about weird characters in module.c
>
> Try 2: - change compiler options from -O2 to -Os
> Result: compiles without problem...
>
> Try 3: - change the -Os back to -O2
> Result: compiles without problem...
>
> Weird...
> it seems to be a locale problem...
> (I had to start using LC_ALL=C around the time of 2.4.21.1mdk...,
> never needed before...)
>
> I noticed that I have a: /etc/rc.d/init.d/functions.rpmnew
>
> wich has some changes to the locale / language settings,
> so I'll try to use the new settings and try to recompile a complete rpm set
>
> to see if the "bug" is still there, and if I still need "LC_ALL=C"
>
> I'll let you know how it works out...
>
Just an update: (This is why I'm cc'ing you Pablo )
I still need 'LC_ALL=C' :-(
The locale "changes" in /etc/rc.d/init.d/functions breaks initscripts so that
the "special" characters (�, �, �, ...) shows up as ?
the initscripts.po/mo is saved in UTF-8, and shows the characters
right in KBabel....
Here is my locale settings:
[EMAIL PROTECTED] thomas]$ cat /etc/sysconfig/i18n
SYSFONTACM=iso15
LC_TELEPHONE=fi_FI
LC_CTYPE=fi_FI
LANGUAGE=fi_FI:fi
LC_MONETARY=fi_FI
LC_ADDRESS=fi_FI
LC_COLLATE=fi_FI
LC_NAME=fi_FI
LC_PAPER=fi_FI
LC_NUMERIC=fi_FI
SYSFONT=lat0-16
LC_TIME=fi_FI
LC_MEASUREMENT=fi_FI
LANG=fi_FI
LC_MESSAGES=fi_FI
LC_IDENTIFICATION=fi_FI
[EMAIL PROTECTED] thomas]$
and the changes in 'functions' was:
--- cut ---
+++ /etc/rc.d/init.d/functions.rpmnew 2003-07-12 00:11:57.000000000 +0300
@@ -24,7 +24,6 @@
if [ -z "$GP_LANG" -a -z "$LANGUAGE" -a -f /etc/sysconfig/i18n -a -z
"$NOLOCALE" ]; then
. /etc/sysconfig/i18n
[ -n "$LANGUAGE" ] && GP_LANG=$LANGUAGE || GP_LANG=$LANG
- export LANG
else
if [ "$CONSOLETYPE" != "pty" ]; then
[ "$CONSOLE_NOT_LOCALIZED" = "yes" ] && GP_LANG=C
@@ -76,7 +75,7 @@
gprintf() {
if [ -x /bin/gettext -a -n "$1" ]; then
if [ -n "$GP_LANG" ]; then
- local TEXT=`LANGUAGE=$GP_LANG gettext -e --domain=$TEXTDOMAIN "$1"`
+ local TEXT=`LC_MESSAGES=$GP_LANG gettext -e --domain=$TEXTDOMAIN
"$1"`
else
local TEXT=`gettext -e --domain=$TEXTDOMAIN "$1"`
fi
--- cut ---
The '- export LANG' was not standard MDK, but a patch by Andrey to get
initscripts to actually "speak" Finnish, instead of English...
(he had the same problems with the 'ru*' language settings AFAIR,
and I also sent you this patch once to you Pablo)
But now I dont use it, so there is still some bugs atleast with the Finnish
locale...
Pablo!
Any thoughts on this? and why I suddenly need LC_ALL=C to rebuild a kernel ?
> Regards
>
> Thomas