Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941856 - dev-libs/protobuf misses USE=static-libs and absl::log_flags,abs::log_internal_check_op in cmake/abseil-cpp.cmake
Summary: dev-libs/protobuf misses USE=static-libs and absl::log_flags,abs::log_interna...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL: https://github.com/mehah/otclient/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-19 15:02 UTC by Jon Daniel
Modified: 2024-10-20 13:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild adding absl-targets patch (protobuf-28.0-r1.ebuild,3.89 KB, application/vnd.gentoo.ebuild)
2024-10-19 17:16 UTC, Jon Daniel
Details
Patch for missing absl::log_flags in cmake/abseil-cpp.cmake (protobuf-28.0-absl-targets.patch,434 bytes, patch)
2024-10-19 17:17 UTC, Jon Daniel
Details | Diff
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake (protobuf-28.0-absl-targets.patch,467 bytes, patch)
2024-10-19 18:12 UTC, Jon Daniel
Details | Diff
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake (protobuf-28.0-absl-targets.patch,467 bytes, patch)
2024-10-19 18:16 UTC, Jon Daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Daniel 2024-10-19 15:02:50 UTC
Currently no static libraries are installed.
protobuf doesn't include all abseil-cpp linker flags.
Optional static libraries should be generated with USE=static-libs


Reproducible: Always

Steps to Reproduce:
1. emerge -v abseil-cpp protobuf
2. compile https://github.com/mehah/otclient/
Actual Results:  
Error linking otclient: unity_12_cxx.cxx.o: undefined reference to symbol '_ZN4absl12lts_2024072212log_internal17MakeCheckOpStringIllEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_T0_PKc'

Expected Results:  
Sucessful linkage of protobuf abseil-cpp dependency in otclient
Comment 1 Jon Daniel 2024-10-19 15:58:17 UTC
adding `pkg-config --libs absl_log_internal_check_op absl_log_flags` flags to linker solves the problem
Comment 2 Jon Daniel 2024-10-19 17:16:26 UTC
Created attachment 906370 [details]
Updated ebuild adding absl-targets patch
Comment 3 Jon Daniel 2024-10-19 17:17:35 UTC
Created attachment 906371 [details, diff]
Patch for missing absl::log_flags in cmake/abseil-cpp.cmake
Comment 4 Jon Daniel 2024-10-19 18:12:31 UTC
Created attachment 906380 [details, diff]
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake
Comment 5 Jon Daniel 2024-10-19 18:16:52 UTC
Created attachment 906381 [details, diff]
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake
Comment 6 Jon Daniel 2024-10-19 21:01:40 UTC
Adding absl::log_flags and abs::log_internal_check_op abseril-cpp.cmake doesn't seem to add linker flags to protobuf::libprotobuf
Comment 7 Paul Zander 2024-10-20 13:25:32 UTC
If you want, ping me on IRC (negril) and we can go over this. There is a bit more to sort out.