Bug 282624

Summary: devel/bear libgrpc.so.44 Undefined symbol
Product: Ports & Packages Reporter: Guillaume Bibaut <yom>
Component: Individual Port(s)Assignee: Joseph Mingrone <jrm>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (jrm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Guillaume Bibaut 2024-11-08 09:57:30 UTC
Hello

I'm using bear for a project to be able to get clangd informations in Helix editor.
I've tried this on FreeBSD 13.4-RELEASE-p1 and it's working clearly well.
But on FreeBSD 14.1-RELEASEp-5, I'm getting some interesting error messages:


ld-elf.so.1: /usr/local/lib/libgrpc.so.44: Undefined symbol "_ZN4absl12lts_202407224CordC1INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETnNS3_9enable_ifIXsr3std7is_sameIT_S9_EE5valueEiE4typeELi0EEEOSB_"
ld-elf.so.1: /usr/local/lib/libgrpc.so.44: Undefined symbol "_ZN4absl12lts_202407224CordC1INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETnNS3_9enable_ifIXsr3std7is_sameIT_S9_EE5valueEiE4typeELi0EEEOSB_"
make: "/usr/share/mk/bsd.compiler.mk" line 200: warning: "cc -v 2>&1 | grep "gcc version"" returned non-zero status
make: "/usr/share/mk/bsd.compiler.mk" line 204: Unable to determine compiler type for CC=cc.  Consider setting COMPILER_TYPE.


I've tried reinstalling the packages, and also tried on another 14.1-RELEASE machine, both output the same.
The command I'm using is:

bear --force-wrapper --append -- make CC=cc -C srcdir

is there something I'm not doing right?
Comment 1 Joseph Mingrone freebsd_committer freebsd_triage 2024-11-11 17:26:44 UTC
Hello,

Are you using the official packages?  It looks like devel/bear didn't get a PORTREVISION bump after devel/grpc was updated in 2715f16944541b6b27d121a57133347574a51ff1.

I submitted a review to the devel/grpc maintainer and author of that commit, so a new devel/bear package with a fix should be available soon.

https://reviews.freebsd.org/D47513

Thanks for reporting.
Comment 2 Guillaume Bibaut 2024-11-11 18:13:06 UTC
(In reply to Joseph Mingrone from comment #1)

I'm pretty sure to use the "latest" packages repository, here are the informations about the package locally:

bear-3.1.5_2
Name           : bear
Version        : 3.1.5_2
Installed on   : Fri Nov  8 10:40:18 2024 CET
Origin         : devel/bear
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : GPLv3+
Maintainer     : jrm@FreeBSD.org
WWW            : https://github.com/rizsotto/Bear
Comment        : Tool that generates a compilation database for clang tooling
Options        :
        DOCS           : on
[Shared libs...]
Annotations    :
        FreeBSD_version: 1401000
        build_timestamp: 2024-11-02T08:31:56+0000
        built_by       : poudriere-git-3.4.2
        port_checkout_unclean: no
        port_git_hash  : 94829e74ad
        ports_top_checkout_unclean: no
        ports_top_git_hash: 009a7c198e
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 1.21MiB
[Description...]

I'm not using a private package repository.
Comment 3 Joseph Mingrone freebsd_committer freebsd_triage 2024-11-11 18:15:37 UTC
Thanks for confirming.  Once the fix in the review I shared lands and a package for bear-3.1.5_3 is available, your problem should be fixed.
Comment 4 Guillaume Bibaut 2024-11-11 18:18:07 UTC
(In reply to Joseph Mingrone from comment #3)

Thank you
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-11-12 03:15:16 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b359e3699e7c0ceddf80d07c0855be02d689c34e

commit b359e3699e7c0ceddf80d07c0855be02d689c34e
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-11-11 16:45:39 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-11-12 03:13:54 +0000

    Bump PORTREVISIONs after grpc shlib change in 2715f16944541b6b

    PR:             282624
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D47513

 biology/ncbi-blast+/Makefile    | 2 +-
 databases/arrow/Makefile        | 2 +-
 devel/bear/Makefile             | 2 +-
 devel/google-cloud-cpp/Makefile | 2 +-
 net-mgmt/fastnetmon/Makefile    | 2 +-
 net/rubygem-grpc/Makefile       | 1 +
 science/py-tensorflow/Makefile  | 2 +-
 sysutils/syslog-ng/Makefile     | 2 +-
 www/freenginx-devel/Makefile    | 2 +-
 www/freenginx/Makefile          | 2 +-
 www/nginx-devel/Makefile        | 2 +-
 www/nginx/Makefile              | 2 +-
 12 files changed, 12 insertions(+), 11 deletions(-)
Comment 6 Joseph Mingrone freebsd_committer freebsd_triage 2024-11-13 21:58:42 UTC
It looks like a package should be ready on 14.1 for bear-3.1.5_3.

https://pkg-status.freebsd.org/beefy22/data/141amd64-default/latest-per-pkg/bear-3.1.4_3.log

Could you confirm your problem is solved?