Ndk r26/clang 17 uses --no-undefined-version per default and gives
this error when compiling libpopt:
libtool: link: aarch64-linux-android-clang -shared -fPIC -DPIC .libs/popt.o .libs/poptparse.o .libs/poptconfig.o .libs/popthelp.o .libs/poptint.o -L/data/data/com.termux/files/usr/lib -landroid-glob -fstack-protector-strong -Oz -Wl,--version-script=/home/builder/.termux-build/libpopt/src/src/libpopt.vers -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -fopenmp -Wl,-soname -Wl,libpopt.so -o .libs/libpopt.so
ld.lld: error: version script assignment of 'LIBPOPT_0' to symbol '_fini' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBPOPT_0' to symbol '_init' failed: symbol not defined
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
The culprits, _init and _fini, seem to have never been part of
libpopt, but have been in the version script since the beginning.
Remove them from the version script to fix the error.