Problem with glibc test

Bill Mason billmason_sp2 at yahoo.com
Wed Oct 8 17:03:27 PDT 2008


Thanks Dan,
I'll check -Wall.

Can you add a bunch of zeros and see if it still works?  I was able to try this on another system, and the problem still existed, but it needed a bit more zeros.

Bill

--- On Wed, 10/8/08, Dan Nicholson <dbn.lists at gmail.com> wrote:

> From: Dan Nicholson <dbn.lists at gmail.com>
> Subject: Re: Problem with glibc test
> To: billmason_sp2 at yahoo.com, "LFS Support List" <lfs-support at linuxfromscratch.org>
> Date: Wednesday, October 8, 2008, 3:44 PM
> On Wed, Oct 8, 2008 at 1:36 PM, Bill Mason
> <billmason_sp2 at yahoo.com> wrote:
> >
> > I validated this by making a little program that does
> nothing but prints this using printf:
> >
> > #include <stdio.h>
> >
> > int main() {
> >    printf ("%-1.300000000s",
> "hello");
> > }
> >
> > Same thing, no output.  But if I decrease the number
> of zeros in the precision string by one (7 zeros rather than
> 8), it works fine.  Any number of zeros greater than 7
> causes the problem.  I tried the same experiments on my host
> system, and the same is true there as well.
> 
> It works on both of my systems. One is x86 with
> glibc-2.5.1. I have no
> idea what could be causing that problem. The kernel seems
> to be the
> common denominator since you get the same problem on the
> host. I don't
> recall this coming up here before. That is a bizarre issue.
> Does `gcc
> -Wall' say anything about it?
> 
> --
> Dan


      



More information about the lfs-support mailing list