cld2-php-ext icon indicating copy to clipboard operation
cld2-php-ext copied to clipboard

Error when installing

Open ehben83 opened this issue 4 years ago • 1 comments

Hi,

I get this error : ld: unknown option: -soname=libcld2_full.so clang: error: linker command failed with exit code 1 (use -v to see invocation)

when using the command : CFLAGS="-Wno-narrowing" ./compile_libs.sh Any ideas on how to solve this ? Thx

ehben83 avatar Aug 16 '22 23:08 ehben83

Thanks for the report! I opened pull request #9 to address this. It fixes the ld: unknown option: -soname=libcld2_full.so error by adjusting how the cld2 build is invoked, so the problematic linker flag isn’t passed to macOS/Clang. This should let CFLAGS="-Wno-narrowing" ./compile_libs.sh work again.

webbrain-one avatar Sep 01 '26 06:09 webbrain-one