lidavidm commented on pull request #11889:
URL: https://github.com/apache/arrow/pull/11889#issuecomment-1057411707
This still gives me a lot of errors with the repro:
```
> ninja
(base)
[1/1] Linking CXX executable arrow_example
FAILED: arrow_example
: && /usr/bin/c++ -O3 -DNDEBUG CMakeFiles/arrow_example.dir/example.cc.o -o
arrow_example
/home/lidavidm/Code/upstream/rok-arrow-14708/install/lib/libarrow.a
/home/lidavidm/Code/upstream/rok-arrow-14708/install/lib/libarrow_flight.a
/home/lidavidm/Code/upstream/rok-arrow-14708/install/lib/libarrow_bundled_dependencies.a
-pthread && :
/home/lidavidm/Code/upstream/rok-arrow-14708/install/lib/libarrow_flight.a(server.cc.o):
In function `arrow::flight::(anonymous
namespace)::DoExchangeMessageWriter::DoExchangeMessageWriter(grpc::ServerReaderWriter<arrow::flight::protocol::FlightData,
arrow::flight::protocol::FlightData>*)':
/home/lidavidm/Code/upstream/rok-arrow-14708/cpp/src/arrow/flight/server.cc:301:
undefined reference to `arrow::ipc::IpcWriteOptions::Defaults()'
/home/lidavidm/Code/upstream/rok-arrow-14708/cpp/src/arrow/flight/server.cc:301:
undefined reference to
`arrow::ipc::DictionaryFieldMapper::DictionaryFieldMapper()'
/home/lidavidm/Code/upstream/rok-arrow-14708/install/lib/libarrow_flight.a(server.cc.o):
In function `arrow::flight::(anonymous
namespace)::DoExchangeMessageWriter::Begin(std::shared_ptr<arrow::Schema>
const&, arrow::ipc::IpcWriteOptions const&)':
...
```
The link order is still wrong - libarrow_flight.a needs to come before
libarrow.a. After that, it seems gRPC isn't getting bundled. Indeed, the .ar
file is missing gRPC:
```
CREATE
/home/lidavidm/Code/upstream/rok-arrow-14708/build/debug/libarrow_bundled_dependencies.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/snappy_ep/src/snappy_ep-install/lib/libsnappy.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/glog_ep-prefix/src/glog_ep/lib/libglogd.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/gflags_ep-prefix/src/gflags_ep/lib/libgflags_debug.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/thrift_ep-install/lib/libthriftd.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/protobuf_ep-install/lib/libprotobuf.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/zlib_ep/src/zlib_ep-install/lib/libz.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/lz4_ep-prefix/src/lz4_ep/lib/liblz4.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/re2_ep-install/lib/libre2.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/utf8proc_ep-install/lib/libutf8proc.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/cares_ep-install/lib/libcares.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/absl_ep-install/lib/libabsl_base.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/absl_ep-install/lib/libabsl_cord.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/absl_ep-install/lib/libabsl_status.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/absl_ep-install/lib/libabsl_statusor.a
ADDLIB
/home/lidavidm/Code/upstream/rok-arrow-14708/build/absl_ep-install/lib/libabsl_synchronization.a
SAVE
END
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]