Re: amd64

Stefan Fent <[email protected]> Wed, 4 Feb 2004 15:34:16 +0100
Newsgroups gmane.linux.lsb.implementation
Message-ID <[email protected]>
* Wichmann, Mats D <[email protected]> [040204 14:37]:
> 
> > I'm actually working on getting the implementation 
> > running on AMD64.
> 
> Super!
> 
> > The first problem was a missing -D_GNU_SOURCE in the 
> > binutils/intl/Makefile.in, which led to a segfault calling 'as'.
> > 
> > Here is a patch for binutils in phase2:
> > 
> > --- intl/Makefile.in.ORG        2004-02-03 14:23:48.000000000 +0100
> > +++ intl/Makefile.in    2004-02-03 14:24:12.000000000 +0100
> > @@ -79,7 +79,7 @@
> >  .c.lo:
> >         $(LIBTOOL) --mode=compile $(COMPILE) $<
> >  
> > -INCLUDES = -I. -I$(srcdir)
> > +INCLUDES = -I. -I$(srcdir) -D_GNU_SOURCE
> >  
> >  all: all-@USE_INCLUDED_LIBINTL@
> 
> This isn't hard to apply.
>  
> > This is when using gettext from binutils, not from glibc.
> > 
> > Is there a special reason for not using the glibc gettext functions?
> 
> Not consciously on our part. In fact, I wasn't aware
> we were doing so. Can you explain more?  The current
> phase2 simply builds glibc, then binutils, then gcc.
> We're not configuring binutils with --with-included-gettext.
> Is it possible the binutils configure script is not
> detecting that the just-built phase2 glibc actually
> has gettext support?
> 

No, it is detected:

[...]
-: checking for LC_MESSAGES... yes
-: checking whether NLS is requested... yes
-: checking whether included gettext is requested... no
-: checking for libintl.h... yes
-: checking for gettext in libc... yes
-: checking for msgfmt... no
-: checking for msgfmt... (cached) no
-: checking for gmsgfmt... no
-: checking for xgettext... :
[...]


Stefan
-- 
Stefan Fent 
SuSE Linux AG, Maxfeldstr. 5, D-90409 Nuernberg