Bug 239185 - devel/grpc Undefined Symbols in Library
Summary: devel/grpc Undefined Symbols in Library
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-13 11:08 UTC by Anthony
Modified: 2019-07-13 11:15 UTC (History)
0 users

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.