Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[Solved] NetworkManager 1.44.0 pk11pub.h no such file

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Fulgurance
Veteran
Veteran
User avatar
Posts: 1287
Joined: Wed Feb 15, 2017 4:31 pm
Contact:
Contact Fulgurance
Website

[Solved] NetworkManager 1.44.0 pk11pub.h no such file

  • Quote

Post by Fulgurance » Thu Dec 28, 2023 4:24 pm

Hi everyone, I am working actually on my package manager, and I almost finished now to test all packages I need to perform some tests.
But I have actually one that give me a problem.

When I try to compile NetworkManager, I have this error:

Code: Select all

FAILED: src/libnm-crypto/libnm-crypto-nss.a.p/nm-crypto-nss.c.o
cc -Isrc/libnm-crypto/libnm-crypto-nss.a.p -Isrc/libnm-crypto -I../src/libnm-crypto -I. -I.. -Isrc -I../src -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I%includedir% -I/usr/include/nspr -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -O3 -fdata-sections -ffunction-sections -Wall -Wextra -Wcast-align=strict -Wdeclaration-after-statement -Wfloat-equal -Wformat-nonliteral -Wformat-security -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-conversion -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wshift-negative-value -Wstrict-prototypes -Wundef -Wvla -Wno-duplicate-decl-specifier -Wno-format-truncation -Wno-format-y2k -Wno-missing-field-initializers -Wno-pragmas -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -fno-strict-aliasing -Wimplicit-fallthrough -fPIC -pthread -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -MD -MQ src/libnm-crypto/libnm-crypto-nss.a.p/nm-crypto-nss.c.o -MF src/libnm-crypto/libnm-crypto-nss.a.p/nm-crypto-nss.c.o.d -o src/libnm-crypto/libnm-crypto-nss.a.p/nm-crypto-nss.c.o -c ../src/libnm-crypto/nm-crypto-nss.c
cc1: warning: %includedir%: No such file or directory [-Wmissing-include-dirs]
../src/libnm-crypto/nm-crypto-nss.c:14:10: fatal error: pk11pub.h: No such file or directory
14 | #include <pk11pub.h>
| ^~~~~~~~~~~
compilation terminated.
[323/856] Compiling C object src/libnm-platform/libnm-platform.a.p/nmp-object.c.o
[324/856] Compiling C object src/libnm-crypto/libnm-crypto-null.a.p/nm-crypto-null.c.o
[325/856] Compiling C object src/libnm-lldp/libnm-lldp.a.p/nm-lldp-rx.c.o
[326/856] Compiling C object src/libnm-systemd-core/libnm-systemd-core.a.p/src_libsystemd_sd-event_sd-event.c.o
[327/856] Compiling C object src/libnm-crypto/libnm-crypto.a.p/nm-crypto.c.o
[328/856] Compiling C object src/libnm-platform/libnm-platform.a.p/nm-linux-platform.c.o
[329/856] Compiling C object src/libnm-platform/libnm-platform.a.p/nm-platform.c.o
ninja: build stopped: subcommand failed.
[!] Failed to run ninja -j8 in /sources/NetworkingTools-Main/NetworkManager/1.44.0/Sources//mainBuild with given environment
Full log: https://textup.fr/752871hu

I did already a search, and I found this header pk11pub.h is provided by the nss library. The things strange is, actually this header exist in my generated system by my package manager, it's located at /usr/include/nss/pk11pub.h

So I am not sure to understand why I get this error actually.

Please let me know if you need more information about the environment. My system use gcc 13.2.0
Last edited by Fulgurance on Tue Jan 02, 2024 2:45 pm, edited 1 time in total.
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Dec 28, 2023 5:16 pm

Code: Select all

Run-time dependency nss found: YES %NSS_VERSION%
Your nss library probably is wrong installed, what contains /usr/lib64/pkgconfig/nss.pc file?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
grknight
Retired Dev
Retired Dev
Posts: 2557
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Thu Dec 28, 2023 5:17 pm

Fulgurance wrote:

Code: Select all

-I%includedir%
This is likely the cause of the not found. Something, likely a bad pkgconfig file or config command output, did not have a real path resolved somewhere and is feeding garbage to the compiler.
Since there is no -I/usr/include/nss, I would start there.
Top
Fulgurance
Veteran
Veteran
User avatar
Posts: 1287
Joined: Wed Feb 15, 2017 4:31 pm
Contact:
Contact Fulgurance
Website

  • Quote

Post by Fulgurance » Thu Dec 28, 2023 8:42 pm

Hmmm so the problem I suspected before is confirmed now, nss installation process have a problem.

I finally found what was wrong for nss. Thanks a lot for your help. Now I can fix that
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Dec 28, 2023 9:16 pm

Fulgurance wrote:I finally found what was wrong for nss. Thanks a lot for your help. Now I can fix that
Maybe /var/db/repos/gentoo/dev-libs/nss/files/nss-3.53-gentoo-fixups.patch?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Fulgurance
Veteran
Veteran
User avatar
Posts: 1287
Joined: Wed Feb 15, 2017 4:31 pm
Contact:
Contact Fulgurance
Website

  • Quote

Post by Fulgurance » Tue Jan 02, 2024 2:44 pm

As I said I finally find the problem because of your help, nss needed a patch yes.

Thank you very much for your help, now I can go forward in my project :)
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Top
Post Reply

6 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic