[uClibc] uclibc compilation problem

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Thu Apr 21 17:05:37 UTC 2005


Why don't you check in SVN repo? This appears to be fixed 4 weeks ago.

 Jocke
PS.
   Don't post HTML

-----Original Message-----
From: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org]On Behalf Of Buday Gergely István
Sent: den 21 april 2005 18:41
To: 'uclibc at uclibc.org'
Subject: [uClibc] uclibc compilation problem


Hi there,
is there any developer out there?
I'm trying to create a powerpc-uclibc-gcc. I got:
/scratchbox/compilers/powerpc-gcc-3.3.2-uclibc-snapshot-20040229/bin/powerpc-linux-uclibc-gcc  -Wall -Wstrict-prototypes -Wno-trigra
phs -fno-strict-aliasing  -Os      -fno-builtin -nostdinc -D_LIBC -I../../include -I. -I/scratchbox/compilers/powerpc-gcc-3.3.2-ucli
bc-snapshot-20040229/lib/gcc-lib/powerpc-linux-uclibc/3.3.2/include -DNDEBUG -fPIC -c _fopen.c -o _fopen.o
In file included from ../../include/stdio.h:65,
                 from _stdio.h:16,
                 from _fopen.c:8:
../../include/bits/uClibc_stdio.h:528:1: warning: "__FPUTC" redefined
../../include/bits/uClibc_stdio.h:417:1: warning: this is the location of the previous definition
_fopen.c:168:2: warning: #warning if builtin buffer, then need probably want to test vs that too
_fopen.c: In function `_stdio_fopen':
_fopen.c:169: error: structure has no member named `unbuf'
_fopen.c:170: error: structure has no member named `unbuf'
_fopen.c:170: error: structure has no member named `unbuf'
make[6]: *** [_fopen.o] Error 1
Looking at the source,
# if __STDIO_BUILTIN_BUF_SIZE > 0
#warning if builtin buffer, then need probably want to test vs that too
                stream->__bufstart = stream->unbuf;
                        stream->__bufend = stream->unbuf + sizeof(stream->unbuf);
# else  /* __STDIO_BUILTIN_BUF_SIZE > 0 */
                        stream->__bufend = stream->__bufstart;
# endif /* __STDIO_BUILTIN_BUF_SIZE > 0 */
stream is of type FILE *, and FILE is defined as "typedef struct __STDIO_FILE_STRUCT FILE;" in include/stdio.h .
include/bits/uClibc_stdio.h contains the definition of __STDIO_FILE_STRUCT but it has _no_ unbuf member - as the error message above
said. Not with any compiler option. Could anybody explain me then why is this reference to this non-existing member? May I safely
ignore that part of the code?
Thanks in advance.

Best wishes
- Gergely




More information about the uClibc mailing list