Bug 239185

Summary: devel/grpc Undefined Symbols in Library
Product: Ports & Packages Reporter: Anthony <amzo1337>
Component: Individual Port(s)Assignee: Neel Chauhan <neel>
Status: Open ---    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: amd64   
OS: Any   

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.