[
https://issues.apache.org/jira/browse/ARROW-16520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534827#comment-17534827
]
Antoine Pitrou edited comment on ARROW-16520 at 5/11/22 11:28 AM:
------------------------------------------------------------------
Hmm, so I tried to build protobuf 3.20.1 from source...
If I use the standard Ubuntu 20.04 build tools, the symbol is exported (see
uppercase "W") by the generated {{libprotobuf.so}}:
{code}
$ nm --demangle ./src/.libs/libprotobuf.so | rg ~InternalMetadata
00000000000f8e10 W
google::protobuf::internal::InternalMetadata::~InternalMetadata()
00000000000f8e10 W
google::protobuf::internal::InternalMetadata::~InternalMetadata()
{code}
However, if I use the conda-forge build tools, the symbol is local (see
lowercase "t"):
{code}
$ nm --demangle ./src/.libs/libprotobuf.so | rg ~InternalMetadata
00000000000c3870 t
google::protobuf::internal::InternalMetadata::~InternalMetadata()
00000000000c3870 t
google::protobuf::internal::InternalMetadata::~InternalMetadata()
{code}
was (Author: pitrou):
Hmm, so I tried to build protobuf 3.20.1 from source...
If I use the standard Ubuntu 20.04 build tools, the symbol is exported (see
uppercase "W") by the generated {{libprotobuf.so}}:
{code}
$ nm --demangle ./src/.libs/libprotobuf.so | rg ~InternalMetadata
00000000000f8e10 W
google::protobuf::internal::InternalMetadata::~InternalMetadata()
00000000000f8e10 W
google::protobuf::internal::InternalMetadata::~InternalMetadata()
{code}
However, if I use the conda-forge build tools, the symbol is local (see
lowercase "t"):
{code}
$ nm --demangle --defined-only ./src/.libs/libprotobuf.so | rg
~InternalMetadata
00000000000c3870 t
google::protobuf::internal::InternalMetadata::~InternalMetadata()
00000000000c3870 t
google::protobuf::internal::InternalMetadata::~InternalMetadata()
{code}
> [C++][Flight] Symbol lookup error in tests with conda-forge g++
> ---------------------------------------------------------------
>
> Key: ARROW-16520
> URL: https://issues.apache.org/jira/browse/ARROW-16520
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, FlightRPC
> Reporter: Antoine Pitrou
> Priority: Major
>
> When building Arrow with conda-forge {{g\+\+}}, I get the following errors in
> the Flight tests. This did not seem to happen with {{clang\+\+}}.
> {code}
> 29/69 Test #51: arrow-flight-internals-test ..............***Failed 0.18
> sec
> Running arrow-flight-internals-test, redirecting output into
> /home/antoine/arrow/dev/cpp/build-test/build/test-logs/arrow-flight-internals-test.txt
> (attempt 1/1)
> /home/antoine/arrow/dev/cpp/build-test/debug/arrow-flight-internals-test:
> symbol lookup error:
> /home/antoine/miniconda3/envs/pyarrow/lib/libarrow_flight.so.900: undefined
> symbol: google::protobuf::internal::InternalMetadata::~InternalMetadata()
> ~/arrow/dev/cpp/build-test/src/arrow/flight
> Start 55: arrow-ipc-json-simple-test
> 30/69 Test #52: arrow-flight-test ........................***Failed 0.16
> sec
> Running arrow-flight-test, redirecting output into
> /home/antoine/arrow/dev/cpp/build-test/build/test-logs/arrow-flight-test.txt
> (attempt 1/1)
> /home/antoine/arrow/dev/cpp/build-test/debug/arrow-flight-test: symbol lookup
> error: /home/antoine/miniconda3/envs/pyarrow/lib/libarrow_flight.so.900:
> undefined symbol:
> google::protobuf::internal::InternalMetadata::~InternalMetadata()
> ~/arrow/dev/cpp/build-test/src/arrow/flight
> Start 56: arrow-ipc-read-write-test
> 31/69 Test #53: arrow-flight-sql-test ....................***Failed 0.17
> sec
> Running arrow-flight-sql-test, redirecting output into
> /home/antoine/arrow/dev/cpp/build-test/build/test-logs/arrow-flight-sql-test.txt
> (attempt 1/1)
> /home/antoine/arrow/dev/cpp/build-test/debug/arrow-flight-sql-test: symbol
> lookup error:
> /home/antoine/miniconda3/envs/pyarrow/lib/libarrow_flight.so.900: undefined
> symbol: google::protobuf::internal::InternalMetadata::~InternalMetadata()
> ~/arrow/dev/cpp/build-test/src/arrow/flight/sql
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)