discuss-gnustep
[Top][All Lists]
Advanced

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

libxslt configure check failing due to missing -lm


From: Frederik Seiffert
Subject: libxslt configure check failing due to missing -lm
Date: Wed, 3 Jun 2020 20:03:53 +0200

Hi all,

I noticed today that libxslt is not being found when building the Android toolchain, and it seems to be because -lm is not being used when configure is checking for libxslt:

configure:12080: checking for xsltApplyStylesheet in -lxslt
configure:12105: /Users/frederik/Library/Android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android21-clang -o conftest -x objective-c -I/Users/frederik/Library/Android/GNUstep/x86_64/include -I/Users/frederik/Library/Android/GNUstep/x86_64/include/libxml2 -L/Users/frederik/Library/Android/GNUstep/x86_64/lib -fuse-ld=gold -Wl,-rpath-link,/Users/frederik/Library/Android/GNUstep/x86_64/lib -Wl,--build-id=sha1 conftest.c -lxslt -lxml2 -liconv -L/Users/frederik/Library/Android/GNUstep/x86_64/lib -lffi -ldl -lc++_shared -landroid -lc -lz >&5
libxslt.a(numbers.o):numbers.c:function xsltFormatNumberConversion: error: undefined reference to 'pow'
libxslt.a(numbers.o):numbers.c:function xsltFormatNumberConversion: error: undefined reference to 'fmod'
libxslt.a(numbers.o):numbers.c:function xsltNumberFormatDecimal: error: undefined reference to 'fmod'
libxslt.a(numbers.o):numbers.c:function xsltNumberFormatAlpha: error: undefined reference to 'fmod'
libxml2.a(xpath.o):xpath.c:function xmlXPathFormatNumber: error: undefined reference to 'log10'
libxml2.a(xpath.o):xpath.c:function xmlXPathStringEvalNumber: error: undefined reference to 'pow'
libxml2.a(xpath.o):xpath.c:function xmlXPathStringEvalNumber: error: undefined reference to 'pow'
libxml2.a(xpath.o):xpath.c:function xmlXPathModValues: error: undefined reference to 'fmod'
libxml2.a(xpath.o):xpath.c:function xmlXPathCompNumber: error: undefined reference to 'pow'
clang: error: linker command failed with exit code 1 (use -v to see invocation)



Can anyone point me in the right direction as to how to fix this? Looking through config.log I can see that -lm is being passed for various other configure checks, but not this one.

Thanks!
Frederik


reply via email to

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