[Bug 253014] net-im/telegram-desktop: Fails to build when devel/abseil is present on the system

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 27 04:36:49 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253014

--- Comment #1 from Henry Hu <henry.hu.sh at gmail.com> ---
Okay, this is the ugly problem of "2 versions of libraries".
In tg_owt's source code, there's a version of absl library. On the other hand,
you have another version installed into the system.
When compiling the code, it found the headers installed by the system version
(which carries the absl::lts_2020_09_23 namespace).
When linking, it instead linked with the object file compiled with the version
in tg_owt's source code. It carries another namespace (just absl). Thus, the
linking fails.

The ideal solution is make the tg_owt library (inside telegram-desktop) try to
use the headers in its source tree, instead of the system one. This might be
hard, as the order is determined by command line flags, which typically
includes /usr/local/include fairly early.

Meanwhile, you have some options:
1. Temporarily remove abseil pkg, build it, then install it back.
2. Build the package using poudriere / in a jail.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list