Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

no package 'nss' found during build.



  • After several hours of compiling QT-everywhere, this error came up:
    Could not run pkg-config.

    See //build/config/linux/nss/BUILD.gn:15:3: whence it was called.
    pkg_config("system_nss_no_ssl_config") {
    ^---------------------------------------
    See //crypto/BUILD.gn:214:25: which caused the file to be included.
    public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
    ^--------------------------------------------------
    Project ERROR: GN run error!
    make[3]: *** [Makefile:65: sub-gn_run-pro-make_first] Error 3
    make[3]: Leaving directory '/home/owner/Qt5.15.2/qtwebengine/src/pdf'
    make[2]: *** [Makefile:101: sub-pdf-make_first] Error 2
    make[2]: Leaving directory '/home/owner/Qt5.15.2/qtwebengine/src'
    make[1]: *** [Makefile:49: sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/owner/Qt5.15.2/qtwebengine'
    make: *** [Makefile:1088: module-qtwebengine-make_first] Error 2
    owner@localhost:~/Qt5.15.2>

    Can someone please tell me how to fix this error? Thank you.


  • Moderators

    @Randall-0 said in no package 'nss' found during build.:

    Can someone please tell me how to fix this error? Thank you.

    install the missing dependency ;)
    Depending on your distribution for example: "apt install libnss3-dev"



  • @raven-worx Hi. I did specifically have all the nss I could find installed, but still failed the Qt5 v5.15.2 build.
    Here's what zypper lists:
    Name : libnss_slurm2-debuginfo
    Name : libnss_nis2
    Name : libnss_nis2-32bit
    Name : libnss_slurm2
    Name : libnss_usrfiles2
    Name : libnss_usrfiles2-32bit
    Name : libnsssharedhelper0
    Name : libnsssharedhelper0-32bit
    localhost:/home/owner # cat nss-comment
    owner@localhost:~> sudo zypper info nss | grep Name
    Looking specifically for "nss" shows 50 items, but not strictly "libnss"
    Name : libKF5DNSSD5
    Name : libKF5DNSSD5-lang
    Name : libxmlsec1-nss1
    Name : mozilla-nss
    Name : mozilla-nss-certs
    Name : nss-mdns
    Name : nss-mdns-32bit
    Name : libnss_slurm2-debuginfo
    Name : libvirt-nss-debuginfo
    Name : mozilla-nss-32bit-debuginfo
    Name : mozilla-nss-certs-32bit-debuginfo
    Name : mozilla-nss-certs-debuginfo
    Name : mozilla-nss-debuginfo
    Name : mozilla-nss-debugsource
    Name : mozilla-nss-sysinit-32bit-debuginfo
    Name : mozilla-nss-sysinit-debuginfo
    Name : mozilla-nss-tools-debuginfo
    Name : nss-myhostname-32bit-debuginfo
    Name : nss-myhostname-debuginfo
    Name : nss-mymachines-32bit-debuginfo
    Name : nss-mymachines-debuginfo
    Name : nss-systemd-debuginfo
    Name : apache2-mod_nss
    Name : libnss_nis2
    Name : libnss_nis2-32bit
    Name : libnss_slurm2
    Name : libnss_usrfiles2
    Name : libnss_usrfiles2-32bit
    Name : libnsssharedhelper0
    Name : libnsssharedhelper0-32bit
    Name : mozilla-nss-32bit
    Name : mozilla-nss-certs-32bit
    Name : mozilla-nss-devel
    Name : mozilla-nss-sysinit
    Name : mozilla-nss-sysinit-32bit
    Name : mozilla-nss-tools
    Name : nss-myhostname
    Name : nss-myhostname-32bit
    Name : nss-mymachines
    Name : nss-mymachines-32bit
    Name : nss-pam-ldapd
    Name : nss-pam-ldapd-32bit
    Name : nss-shared-helper-devel
    Name : nss-systemd
    Name : nss_ldap
    Name : nss_ldap-32bit
    Name : nss_wrapper
    Name : python2-nss
    Name : python3-nss
    Name : xmlsec1-nss-devel
    but even searching on the build opensuse page for libnss fails to turn it up specifically. See https://build.opensuse.org/search?search_text=libnss, so I am left to guess whether or not the nss package which Qt5 expects to find has been provided by the openSuse repositories.


Log in to reply