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 environmentI 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


