[ 
https://issues.apache.org/jira/browse/ARROW-5193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16823270#comment-16823270
 ] 

Antoine Pitrou commented on ARROW-5193:
---------------------------------------

Passing {{-DZLIB_SOURCE=SYSTEM}} works around the issue.

> [C++] Linker error with bundled zlib
> ------------------------------------
>
>                 Key: ARROW-5193
>                 URL: https://issues.apache.org/jira/browse/ARROW-5193
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, FlightRPC
>            Reporter: Antoine Pitrou
>            Priority: Major
>
> {code}
> [98/146] Linking CXX executable debug/flight-test-integration-server
> FAILED: debug/flight-test-integration-server 
> : && /usr/bin/ccache /usr/lib/ccache/c++  -Wno-noexcept-type  
> -fdiagnostics-color=always -ggdb -O0  -Wall -Wno-conversion 
> -Wno-sign-conversion -Wno-unused-variable -Werror -msse4.2  -g  -rdynamic 
> src/arrow/flight/CMakeFiles/flight-test-integration-server.dir/test-integration-server.cc.o
>   -o debug/flight-test-integration-server  
> -Wl,-rpath,/home/antoine/arrow/bundledeps/cpp/build-test/debug 
> debug/libarrow_flight_testing.so.14.0.0 debug/libarrow_testing.so.14.0.0 
> double-conversion_ep/src/double-conversion_ep/lib/libdouble-conversion.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlienc-static.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlidec-static.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlicommon-static.a -ldl 
> double-conversion_ep/src/double-conversion_ep/lib/libdouble-conversion.a 
> /usr/lib/x86_64-linux-gnu/libboost_system.so 
> /usr/lib/x86_64-linux-gnu/libboost_filesystem.so 
> /usr/lib/x86_64-linux-gnu/libboost_regex.so 
> googletest_ep-prefix/src/googletest_ep/lib/libgtest_maind.a 
> googletest_ep-prefix/src/googletest_ep/lib/libgtestd.a 
> googletest_ep-prefix/src/googletest_ep/lib/libgmockd.a -ldl 
> ../thirdparty/protobuf_ep-install/lib/libprotobuf.a 
> ../thirdparty/grpc_ep-install/lib/libgrpc++.a 
> ../thirdparty/grpc_ep-install/lib/libgrpc.a 
> ../thirdparty/grpc_ep-install/lib/libgpr.a 
> ../thirdparty/cares_ep-install/lib/libcares.a 
> ../thirdparty/grpc_ep-install/lib/libaddress_sorting.a 
> gflags_ep-prefix/src/gflags_ep/lib/libgflags.a 
> googletest_ep-prefix/src/googletest_ep/lib/libgtestd.a 
> debug/libarrow_flight.so.14.0.0 
> ../thirdparty/protobuf_ep-install/lib/libprotobuf.a 
> ../thirdparty/grpc_ep-install/lib/libgrpc++.a 
> ../thirdparty/grpc_ep-install/lib/libgrpc.a 
> ../thirdparty/grpc_ep-install/lib/libgpr.a 
> ../thirdparty/cares_ep-install/lib/libcares.a 
> ../thirdparty/grpc_ep-install/lib/libaddress_sorting.a 
> /usr/lib/x86_64-linux-gnu/libboost_system.so debug/libarrow.so.14.0.0 
> double-conversion_ep/src/double-conversion_ep/lib/libdouble-conversion.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlienc-static.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlidec-static.a 
> brotli_ep/src/brotli_ep-install/lib/libbrotlicommon-static.a -ldl 
> jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a -pthread -lrt 
> && :
> debug/libarrow_flight.so.14.0.0: undefined reference to `inflateInit2_'
> debug/libarrow_flight.so.14.0.0: undefined reference to `inflate'
> debug/libarrow_flight.so.14.0.0: undefined reference to `deflateInit2_'
> debug/libarrow_flight.so.14.0.0: undefined reference to `deflate'
> debug/libarrow_flight.so.14.0.0: undefined reference to `deflateEnd'
> debug/libarrow_flight.so.14.0.0: undefined reference to `inflateEnd'
> collect2: error: ld returned 1 exit status
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to