[uClibc] uclibc compilation problem
Buday Gergely István
gergely.buday at siemens.com
Thu Apr 21 16:41:27 UTC 2005
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-trigraphs
-fno-strict-aliasing -Os -fno-builtin -nostdinc -D_LIBC
-I../../include -I.
-I/scratchbox/compilers/powerpc-gcc-3.3.2-uclibc-snapshot-20040229/lib/gcc-l
ib/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20050421/d8af729b/attachment.htm
More information about the uClibc
mailing list