Bug 239185 - devel/grpc Undefined Symbols in Library
Summary: devel/grpc Undefined Symbols in Library
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Neel Chauhan
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2019-07-13 11:08 UTC by Anthony
Modified: 2019-09-05 16:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony 2019-07-13 11:08:27 UTC
When trying to link against the library provided by devel/grpc there is undefined symbols to gpr_log.

readelf -s ../../work/stage/usr/local/lib/libgrpc.so | grep gpr_log

36: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND gpr_log

This causes programs which link with libgrpc to fail which need gpr_log.

To reproduce just build from the port tree.
Comment 1 Anthony 2019-07-13 11:15:19 UTC
I've solved the linking as they are defined in lib/libgpr.so however as no pc file are provided, buidl system can't get the correct linking order. -lgpr -lgrpc.

Maybe the port should provide some libdata/pkgconfig/*.pc files.
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-08-11 14:07:57 UTC
Can you provide a patch?
Comment 3 Walter Schwarzenfeld freebsd_triage 2019-09-05 16:15:15 UTC
Assign to new maintainer.