Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 941856

Summary: dev-libs/protobuf misses USE=static-libs and absl::log_flags,abs::log_internal_check_op in cmake/abseil-cpp.cmake
Product: Gentoo Linux Reporter: Jon Daniel <joneqdaniel>
Component: Current packagesAssignee: Paul Zander <negril.nx+gentoo>
Status: RESOLVED INVALID    
Severity: normal CC: joneqdaniel, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/mehah/otclient/issues/936
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated ebuild adding absl-targets patch
Patch for missing absl::log_flags in cmake/abseil-cpp.cmake
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake
Patch for missing absl::log_flags and absl::log_internal_check_op in cmake/abseil-cpp.cmake

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.