fix: undefined reference to `psl_*` while linking s3 libcurl to taosd
Environment: - os: Ubuntu 22.04 LTS - kernel: 5.19.0-051900rc8-generic #202207242130 SMP PREEMPT_DYNAMIC Sun Jul 24 21:34:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Steps: ```bash ./build.sh ``` Error: ```txt [ 88%] Linking CXX executable ../../../../build/bin/taosd /usr/bin/ld: /home/huolinhe/.cos-local.2/lib/libcurl.a(libcurl_la-psl.o): in function `Curl_psl_destroy': psl.c:(.text+0x13): undefined reference to `psl_free' /usr/bin/ld: /home/huolinhe/.cos-local.2/lib/libcurl.a(libcurl_la-psl.o): in function `Curl_psl_use': psl.c:(.text+0xad): undefined reference to `psl_latest' /usr/bin/ld: psl.c:(.text+0xe4): undefined reference to `psl_free' /usr/bin/ld: psl.c:(.text+0xfc): undefined reference to `psl_builtin' /usr/bin/ld: /home/huolinhe/.cos-local.2/lib/libcurl.a(libcurl_la-cookie.o): in function `Curl_cookie_add': cookie.c:(.text+0x11a3): undefined reference to `psl_is_cookie_domain_acceptable' collect2: error: ld returned 1 exit status ``` Disable libpsl in curl will fix the errors.
This commit is contained in:
parent
7eb5724b05
commit
a3498bacc9
|
@ -12,7 +12,7 @@ ExternalProject_Add(curl2
|
|||
BUILD_IN_SOURCE TRUE
|
||||
BUILD_ALWAYS 1
|
||||
UPDATE_COMMAND ""
|
||||
CONFIGURE_COMMAND ./configure --prefix=$ENV{HOME}/.cos-local.2 --with-ssl=$ENV{HOME}/.cos-local.2 --enable-shared=no --disable-ldap --disable-ldaps --without-brotli --without-zstd --without-libidn2 --without-nghttp2 #--enable-debug
|
||||
CONFIGURE_COMMAND ./configure --prefix=$ENV{HOME}/.cos-local.2 --with-ssl=$ENV{HOME}/.cos-local.2 --enable-shared=no --disable-ldap --disable-ldaps --without-brotli --without-zstd --without-libidn2 --without-nghttp2 --without-libpsl #--enable-debug
|
||||
BUILD_COMMAND make -j
|
||||
INSTALL_COMMAND make install
|
||||
TEST_COMMAND ""
|
||||
|
|
Loading…
Reference in New Issue