[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #include <stdio.h> on Android clang causes an error
From: |
Lucy Phipps |
Subject: |
Re: #include <stdio.h> on Android clang causes an error |
Date: |
Wed, 8 Sep 2021 11:45:03 +0100 |
this works, but there's an additional warning now:
/home/builder/.termux-build/gzip/src/lib/free.c:48:3: warning:
implicit declaration of function 'free' is invalid in C99
[-Wimplicit-function-declaration]
free (p);
^
the only 2 warnings before were in strerror_r.c:
/home/builder/.termux-build/gzip/src/lib/strerror_r.c:205:9: warning:
incompatible pointer to integer conversion assigning to 'int' from
'char *' [-Wint-conversion]
ret = strerror_r (errnum, buf, buflen);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builder/.termux-build/gzip/src/lib/strerror_r.c:242:60: warning:
comparison between pointer and integer ('char *' and 'int')
[-Wpointer-integer-compare]
if (strerror_r (errnum, stackbuf, sizeof stackbuf) == ERANGE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~
On Wed, Sep 8, 2021 at 7:49 AM Paul Eggert <eggert@cs.ucla.edu> wrote:
>
> On 9/7/21 6:11 AM, Lucy Phipps wrote:
>
> > /home/builder/.termux-build/_cache/android-r21d-api-24-v5/bin/../sysroot/usr/include/malloc.h:168:37:
> > error: unknown type name 'FILE'
> > int malloc_info(int __must_be_zero, FILE* __fp) __INTRODUCED_IN(23);
>
> Thank you for reporting this problem. I attempted to fix this in Gnulib
> (see my recent email to you, archived at
> <https://lists.gnu.org/r/bug-gnulib/2021-09/msg00024.html>). If you have
> the time, please give the fix a try. You can do that either by building
> from the latest Git version of gzip on Savannah, or (this is probably
> easier) by building from the attached tarball which I just now generated
> from Savannah.
>
- #include <stdio.h> on Android clang causes an error, Lucy Phipps, 2021/09/07
- Re: #include <stdio.h> on Android clang causes an error, Lucy Phipps, 2021/09/07
- Re: #include <stdio.h> on Android clang causes an error, Paul Eggert, 2021/09/08
- Re: #include <stdio.h> on Android clang causes an error,
Lucy Phipps <=
- Re: #include <stdio.h> on Android clang causes an error, Paul Eggert, 2021/09/08
- Re: #include <stdio.h> on Android clang causes an error, Lucy Phipps, 2021/09/08
- Re: #include <stdio.h> on Android clang causes an error, Lucy Phipps, 2021/09/08
- Re: #include <stdio.h> on Android clang causes an error, Paul Eggert, 2021/09/09
- Message not available
- Fwd: #include <stdio.h> on Android clang causes an error, Lucy Phipps, 2021/09/09
- Re: #include <stdio.h> on Android clang causes an error, Jim Meyering, 2021/09/09