Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] NetworkManager 1.44.0 pk11pub.h no such file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Thu Dec 28, 2023 4:24 pm    Post subject: [Solved] NetworkManager 1.44.0 pk11pub.h no such file Reply with quote

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:
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
_________________
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


Last edited by Fulgurance on Tue Jan 02, 2024 2:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31335
Location: here

PostPosted: Thu Dec 28, 2023 5:16 pm    Post subject: Reply with quote

Code:
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.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1946

PostPosted: Thu Dec 28, 2023 5:17 pm    Post subject: Reply with quote

Fulgurance wrote:
Code:
-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.
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Thu Dec 28, 2023 8:42 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31335
Location: here

PostPosted: Thu Dec 28, 2023 9:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1233

PostPosted: Tue Jan 02, 2024 2:44 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum