I noticed a crash in a program using glob, on a line that calls mempcpy. I
then noticed the following:
glob.c:836:21: warning: implicit declaration of function 'mempcpy' is
invalid in C99 [-Wimplicit-function-declaration]
d = mempcpy (dirname, p->pw_dir, home_len);
Hi Paul,
> Le 2 nov. 2018 à 22:12, Paul Eggert a écrit :
>
> I installed the attached patch to Gnulib, which should fix the problem there.
I like `defined FOO ? FOO : 0`. Simple and clear.
> If Gnulib defines _Noreturn, doesn’t that render the _Noreturn definition in
> Bison's c.m4
Reuben Thomas wrote:
> > You need to use the same Android API value in
> > - the -D__ANDROID_API__=${ANDROID_API} option
> > - the
> > -B${ANDROID_SDK}/ndk-bundle/platforms/android-${ANDROID_API}/arch-arm/usr/lib
> > option
> >
> > as I showed in the intialization script.
> >
>
> Since
On Sat, 3 Nov 2018, 12:28 Bruno Haible Reuben Thomas wrote:
> > > You need to use the same Android API value in
> > > - the -D__ANDROID_API__=${ANDROID_API} option
> > > - the
> > >
> -B${ANDROID_SDK}/ndk-bundle/platforms/android-${ANDROID_API}/arch-arm/usr/lib
> > > option
> > >
> > > as
Hi Reuben,
> I noticed a crash in a program using glob, on a line that calls mempcpy. I
> then noticed the following:
>
> glob.c:836:21: warning: implicit declaration of function 'mempcpy' is
> invalid in C99 [-Wimplicit-function-declaration]
> d = mempcpy (dirname, p->pw_dir,
Reuben Thomas wrote:
> I'm compiling with clang natively in Termux. All the options are set by
> Termux. __ANDROID_API__ in particular is set by a Termux header that is
> included by most of the system headers, in this case string.h. The -L
> options again are all default.
And the -L options
[Re-adding bug-gnulib, sorry!]
On Sat, 3 Nov 2018, 11:32 Bruno Haible > > Could it be that the Android libraries that you are linking with are
> not
> > > in sync with the __ANDROID_API__ that you set?
> > >
> >
> > That's right. I use the default Termux setting of __ANDROID_API__. I
> > presume