[uClibc]Compilation problem on alpha

Rick Altherr kc8apf at kc8apf.net
Sun Sep 22 23:05:49 UTC 2002


Any other ideas on this issue?
-- 
Rick Altherr
KC8APF
kc8apf at kc8apf.net

Rick Altherr said:
> Nope, that appears to have created more problems.  From this error
> output, it doesn't appear to be the struct stat64, but rather the stat64
> function that is having conflicting types.
>
> gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -Os -fno-builtin -nostdinc  -I../../../../include -iwithprefix include
> -I. -D_LIBC  -DNDEBUG  -DL_stat syscalls.c -c -o stat.o
>
>                   In file included from syscalls.c:950:
>
>                        ../../../../include/sys/stat.h:220: warning:
> `struct stat64' declared inside parameter list
>
>
> ../../../../include/sys/stat.h:220: warning: its scope is only this
> definition or declaration, which is probably not what you want.
>
>                  ../../../../include/sys/stat.h:221: warning: `struct
> stat64' declared inside parameter list
>
>                                 ../../../../include/sys/stat.h:242:
> warning: `struct stat64' declared inside parameter list
>
>                                                  syscalls.c:953:
> conflicting types for `stat64'
> ../../../../include/sys/stat.h:220: previous declaration of `stat64'
>
> --
> Rick Altherr
> KC8APF
> kc8apf at kc8apf.net
>
> Erik Andersen said:
>> On Sat Sep 21, 2002 at 03:49:37AM -0400, Rick Altherr wrote:
>>> I'm trying to compile uClibc on an alpha system running debian
>>> unstable.  The compile fails with:
>>>
>>> gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
>>> -fno-strict-aliasing -Os -fno-builtin -nostdinc
>>> -I../../../../include -iwithprefix include -I. -D_LIBC  -DNDEBUG
>>> -DL_stat syscalls.c -c -o stat.o
>>>                   syscalls.c:953: conflicting types for `stat64'
>>>
>>>                        ../../../../include/sys/stat.h:220: previous
>>> declaration of `stat64'            make[4]: *** [stat.o] Error 1
>>
>> Hmm.   looks like for alpha __USE_LARGEFILE64 is going to
>> always be defined.  Does removing the definition of stat64
>> from uClibc/libc/sysdeps/linux/alpha/bits/kernel_stat.h
>> fix the problem?
>>
>>  -Erik
>>
>> --
>> Erik B. Andersen             http://codepoet-consulting.com/
>> --This message was written using 73% post-consumer electrons--
>
>
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc






More information about the uClibc mailing list