Bug 261777 - x11/nvidia-driver-390: libGL-NVIDIA.so.1 should be linked with -lpthread flag
Summary: x11/nvidia-driver-390: libGL-NVIDIA.so.1 should be linked with -lpthread flag
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-07 15:58 UTC by Yuri Victorovich
Modified: 2022-02-07 19:09 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2022-02-07 15:58:40 UTC
Based on bug#261760 libGL-NVIDIA.so.1 it looks for the symbol pthread_mutexattr_setkind_np from libthr.so and doesn't find it.

This means that it needs to be linked with -lpthread so that it would depend on libthr.so.

Same is probably true for all x11/nvidia-driver*.
Comment 1 Alex S 2022-02-07 17:05:30 UTC
Those libraries are distributed as already linked binaries.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-07 18:57:50 UTC
(In reply to Alex S from comment #1)

Then this command should be executed in post-install:
> patchelf --add-needed libthr.so libGL-NVIDIA.so.1
Comment 3 Alex S 2022-02-07 19:00:51 UTC
(In reply to Yuri Victorovich from comment #2)

Does that actually work for you?
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-07 19:09:17 UTC
(In reply to Alex S from comment #3)

No, this didn't solve the problem from bug#261760

This was just an idea. :-)

Maybe the problem isn't in libGL-NVIDIA.so.1's dependency.