Collin Funk <[email protected]> writes:

> Hi Po,
>
> Po Lu <[email protected]> writes:
>
>> `cgroup2_mount' in the nproc module expects `setmntent' to be present
>> whenever mntent.h is available, but the header itself does not define
>> `setmntent' on releases predating SDK 21, yielding such an error when
>> compiling Emacs:
>>
>> nproc.c:391:15: error: implicit declaration of function 'setmntent' is 
>> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>>   if (! (fp = setmntent ("/proc/mounts", "r")))
>>               ^
>
> Interesting. I cannot reproduce with:
>
>     $ gnulib-tool --create-testdir --dir testdir1 nproc
>     $ cd testdir1
>     $ ./configure CC='cc -target aarch64-unknown-linux-android16'

I suspect that your NDK is recent enough to have discontinued support
for Android SDK 16 and accordingly to have removed version conditionals
from mntent.h, and produces executables that will not actually link on
SDK 16.

> Can you check if the attached patch fixes it for you?

This evening.

Reply via email to