You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/21 03:11:55 UTC
[GitHub] [doris] amosbird commented on a diff in pull request #14431: [Feature](Kafka) Add kerberos support for kafka
amosbird commented on code in PR #14431:
URL: https://github.com/apache/doris/pull/14431#discussion_r1027506910
##########
thirdparty/build-thirdparty.sh:
##########
@@ -817,9 +817,10 @@ build_cyrus_sasl() {
check_if_source_exist "${CYRUS_SASL_SOURCE}"
cd "${TP_SOURCE_DIR}/${CYRUS_SASL_SOURCE}"
- CPPFLAGS="-I${TP_INCLUDE_DIR}" \
+ CFLAGS="-fPIC" \
+ CPPFLAGS="-I${TP_INCLUDE_DIR}" \
LDFLAGS="-L${TP_LIB_DIR}" \
- ./configure --prefix="${TP_INSTALL_DIR}" --enable-static --enable-shared=no --with-openssl="${TP_INSTALL_DIR}" --with-pic
+ ./configure --prefix="${TP_INSTALL_DIR}" --enable-static --enable-shared=no --with-openssl="${TP_INSTALL_DIR}" --with-pic --enable-gssapi="${TP_INSTALL_DIR}" --with-gss_impl=mit --with-dblib=none
Review Comment:
It helps exclude unneeded system dependencies (gdm in my case).
##########
thirdparty/build-thirdparty.sh:
##########
@@ -836,6 +837,10 @@ build_librdkafka() {
cd "${TP_SOURCE_DIR}/${LIBRDKAFKA_SOURCE}"
+ # NOTE(amos): librdkafka uses a weird autoconf variant (mklove) which doesn't allow extending PKG_CONFIG with spaces in cmd.
+ # As a result, we use a patch to hard code "--static" into PKG_CONFIG instead.
+ # PKG_CONFIG="pkg-config --static"
+
Review Comment:
I don't think so. Linking to sasl2 will pull in all required archives.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org