bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ffs, ffsl, ffsll workarounds for Android


From: Bruno Haible
Subject: ffs, ffsl, ffsll workarounds for Android
Date: Tue, 03 Jan 2023 21:37:23 +0100

Building a Gnulib testdir on Android (via Termux), I see these errors:


clang -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" 
-I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-I/data/data/com.termux/files/home/local/include -Wall -fvisibility=hidden -g 
-O2 -c -o ffsl.o ../../gllib/ffsl.c
In file included from ../../gllib/ffsl.c:22:
../../gllib/ffsl.h:51:1: error: redefinition of 'ffsl'
FUNC (TYPE i)
^
../../gllib/ffsl.c:18:14: note: expanded from macro 'FUNC'
#define FUNC ffsl
             ^
/data/data/com.termux/files/usr/include/strings.h:92:29: note: previous 
definition is here
__BIONIC_STRINGS_INLINE int ffsl(long __n) {
                            ^
1 error generated.

make[4]: *** [Makefile:10687: ffsl.o] Error 1
clang -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\" 
-I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-I/data/data/com.termux/files/home/local/include -Wall -fvisibility=hidden -g 
-O2 -c -o ffsll.o ../../gllib/ffsll.c
In file included from ../../gllib/ffsll.c:24:
../../gllib/ffsl.h:51:1: error: redefinition of 'ffsll'
FUNC (TYPE i)
^
../../gllib/ffsll.c:18:14: note: expanded from macro 'FUNC'
#define FUNC ffsll
             ^
/data/data/com.termux/files/usr/include/strings.h:103:29: note: previous 
definition is here
__BIONIC_STRINGS_INLINE int ffsll(long long __n) {
                            ^
1 error generated.
make[4]: *** [Makefile:10687: ffsll.o] Error 1


The attached patches fixes them.

Attachment: 0001-ffs-Document-Android-problem.patch
Description: Text Data

Attachment: 0002-ffsl-ffsll-Fix-compilation-error-on-Android.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]