Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re:
To:
bentley@openbsd.org, ports@openbsd.org
Date:
Mon, 1 Dec 2025 17:27:31 +0000

Download raw body.

Thread
  • Stuart Henderson:

    • Kirill A. Korinsky:

      • Stuart Henderson:

        • Kirill A. Korinsky:

On 2025/12/01 11:23, Kirill A. Korinsky wrote:
> On Mon, 01 Dec 2025 10:05:10 +0100,
> Stuart Henderson <stu@spacehopper.org> wrote:
> > 
> > On 2025/11/30 16:02, Kirill A. Korinsky wrote:
> > > WANTLIB needs pthread:
> > > 
> > > lunasvg $ ldd /build/pobj/lunasvg-3.5.0/fake-amd64/usr/local/lib/*so* | grep pthread 
> > > /build/pobj/lunasvg-3.5.0/fake-amd64/usr/local/lib/liblunasvg.so.0.0: exit status 1
> > >         00000d8f39e7c000 00000d8f39e89000 rlib  0    1   0      /usr/lib/libpthread.so.28.1
> > 
> > ldd is the wrong tool to check this, it includes things pulled in
> > via inter-library dependencies. WANTLIB should only list things
> > pulled in directly by this port, see objdump -p.
> > 
> 
> It states:
> 
> Dynamic Section:
>   NEEDED      libplutovg.so.0.0
>   NEEDED      libc++.so.12.0
>   NEEDED      libc++abi.so.9.0
>   NEEDED      libpthread.so.28.1
>   NEEDED      libm.so.10.1
>   SONAME      liblunasvg.so.0.0
> 
> have I missed something?

so, the same results in this case, but it can differ:

<symphytum:~>$ ldd /usr/local/bin/vim
/usr/local/bin/vim:
        Start            End              Type  Open Ref GrpRef Name
        00000dee2e574000 00000dee2e972000 exe   2    0   0      /usr/local/bin/vim
        00000df08bfac000 00000df08bfdd000 rlib  0    1   0      /usr/lib/libm.so.10.1
        00000df049b98000 00000df049c14000 rlib  0    1   0      /usr/lib/libcurses.so.16.0
        00000df0dbb51000 00000df0dbbd5000 rlib  0    1   0      /usr/local/lib/libsodium.so.10.2
        00000df1107c7000 00000df1108d9000 rlib  0    2   0      /usr/local/lib/libiconv.so.7.1
        00000df0b4793000 00000df0b47b6000 rlib  0    1   0      /usr/local/lib/libintl.so.8.1
        00000df12ca95000 00000df12cb9c000 rlib  0    1   0      /usr/lib/libc.so.102.2
        00000df0bfc5b000 00000df0bfc68000 rlib  0    2   0      /usr/lib/libpthread.so.28.1
        00000df10b230000 00000df10b230000 ld.so 0    1   0      /usr/libexec/ld.so
<symphytum:~>$ objdump -p /usr/local/bin/vim|grep NEED
  NEEDED      libm.so.10.1
  NEEDED      libcurses.so.16.0
  NEEDED      libsodium.so.10.2
  NEEDED      libiconv.so.7.1
  NEEDED      libintl.so.8.1
  NEEDED      libc.so.102.2

this is why 'make port-lib-depends-check' / 'make lib-depends-check'
use objdump.

regarding listing pthread for lunasvg; as bentley@ said, it's already
included when COMPILER_LANGS includes c++, see "make show=WANTLIB".