Bug 239185 - devel/grpc Undefined Symbols in Library
Summary: devel/grpc Undefined Symbols in Library
Status: Closed DUPLICATE of bug 250238
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2019-07-13 11:08 UTC by Anthony Donnelly
Modified: 2020-10-21 17:58 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 Donnelly 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 Donnelly 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.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2020-09-13 17:44:06 UTC
^Triage: assign to current maintainer.
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2020-10-21 17:58:28 UTC
Let's follow up this issue on a new PR.

*** This bug has been marked as a duplicate of bug 250238 ***