USE_QT= . . . webengine . . . and libQt5WebEngine.so.5 vs. libQt5WebEngineCore.so.5 dependency failures in builds

Robert Clausecker fuz at fuz.su
Fri May 30 08:50:45 BST 2025


Hi Mark,

Am Wed, May 28, 2025 at 09:21:06PM -0700 schrieb Mark Millard:
> On May 28, 2025, at 20:00, Tatsuki Makino <tatsuki_makino at hotmail.com> wrote:
> 
> > Hello.
> 
> Hi.
> 
> I've a little more information later below, with the summary: The
> 
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18
> 
> installed is the wrong type of file by its content.

> > pkg-static: Missing shlib dependency: libQt5WebEngineCore.so.5
> > 
> > Failed to install the following 1 package(s): /packages/All/py311-qt5-webengine-5.15.7.pkg
> > *** Error code 1
> > 
> > Stop.
> > make: stopped in /usr/ports/multimedia/openshot
> 
> Turns out that the install in my test build does end
> up with:
> 
>  # ls -lodT /usr/local/lib/qt5/libQt5WebEngineCore*
> -rw-r--r--  1 root wheel -      1670 May 11 02:05:59 2025 /usr/local/lib/qt5/libQt5WebEngineCore.prl
> lrwxr-xr-x  1 root wheel -        30 May 11 02:05:59 2025 /usr/local/lib/qt5/libQt5WebEngineCore.so -> libQt5WebEngineCore.so.5.15.18
> lrwxr-xr-x  1 root wheel -        30 May 11 02:05:59 2025 /usr/local/lib/qt5/libQt5WebEngineCore.so.5 -> libQt5WebEngineCore.so.5.15.18
> lrwxr-xr-x  1 root wheel -        30 May 11 02:05:59 2025 /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15 -> libQt5WebEngineCore.so.5.15.18
> -rwxr-xr-x  1 root wheel - 111552776 May 11 02:05:58 2025 /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18
> 
> But ldd reports:
> 
> # ldd -a /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18 
> ldd: /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18: not a FreeBSD ELF shared object
> 
> Looking . . .
> 
> # file /usr/local/lib/qt5/libQt5WebEngineCore*
> /usr/local/lib/qt5/libQt5WebEngineCore.prl:        ASCII text, with very long lines (770)
> /usr/local/lib/qt5/libQt5WebEngineCore.so:         symbolic link to libQt5WebEngineCore.so.5.15.18
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5:       symbolic link to libQt5WebEngineCore.so.5.15.18
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15:    symbolic link to libQt5WebEngineCore.so.5.15.18
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=9fbd42a76a98b569f691f96e85cb5dad1fc5ca81, stripped
> 
> That last is not correct for FreeBSD. Using libc.so.7 as an example:
> 
> # file /lib/libc.so.7
> /lib/libc.so.7: ELF 64-bit LSB shared object, ARM aarch64, version 1 (FreeBSD), dynamically linked, for FreeBSD 14.2, stripped
> 
> Note the "(FreeBSD)" and "for FreeBSD 14.2" vs.  the "(SYSV)"
> and the lack of an indication of a FreeBSD version.
> 
> By content, the wrong kind of file was built. More files have
> that problem:
> 
> 
> Lack of FreeBSD:
> # file /usr/local/lib/qt5/*.so* | grep -v -e FreeBSD -e "symbolic link to "
> /usr/local/lib/qt5/libQt5Pdf.so.5.15.18:              ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7fa8f7cb66ef21beab52258eeba682910073ad4c, stripped
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18:    ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=9fbd42a76a98b569f691f96e85cb5dad1fc5ca81, stripped
> 
> Use of SYSV (with or without FreeBSD)
> # file /usr/local/lib/qt5/*.so* | grep SYSV
> /usr/local/lib/qt5/libQt5Pdf.so.5.15.18:              ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7fa8f7cb66ef21beab52258eeba682910073ad4c, stripped
> /usr/local/lib/qt5/libQt5PdfWidgets.so.5.15.18:       ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, for FreeBSD 14.2, stripped
> /usr/local/lib/qt5/libQt5WebEngine.so.5.15.18:        ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, for FreeBSD 14.2, stripped
> /usr/local/lib/qt5/libQt5WebEngineCore.so.5.15.18:    ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=9fbd42a76a98b569f691f96e85cb5dad1fc5ca81, stripped
> /usr/local/lib/qt5/libQt5WebEngineWidgets.so.5.15.18: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, for FreeBSD 14.2, stripped
> 
> (I am not sure of the status for the combination
> "(SYSV)" with "for FreeBSD 14.2".)

This can be worked around using the brandelf(1) tool on the installed
library.  May be worth adding as a post-install step?

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an encoding-agnostic world
/\  - against html email  - against proprietary attachments


More information about the kde-freebsd mailing list