selfserv.c error: implicit declaration of function 'PR_GetPrefLoopbackAddrInfo' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Categories
(NSS :: Build, defect)
Tracking
(Not tracked)
People
(Reporter: mps, Unassigned)
Details
Attachments
(1 file)
23.72 KB,
application/x-gzip
|
Details |
Steps to reproduce:
Building NSS 3.79 under macOS 12.4 using MacPorts (testing updated port file), Xcode 13.4.
Actual results:
make[3]: Entering directory `/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_net_nss/nss/work/nss-3.79/nss/cmd/selfserv'
../../coreconf/config.mk:138: CPU_ARCH is not x86_64, disabling -mavx2
/usr/bin/clang -Os -std=c99 -arch arm64 -o Output.OBJD/selfserv.o -c -std=c99 -Os -fPIC -Dppc -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -Wall -Wshadow -Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression -DNSS_NO_GCC48 -DXP_UNIX -DNSPR20 -UDEBUG -DNDEBUG -DNSS_DISABLE_AVX2 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/opt/local/include/nspr -I../../../dist/Output.OBJD/include -I../../../dist/public/nss -I../../../dist/private/nss -I../../../dist/public/seccmd -I../../../dist/public/dbm selfserv.c
selfserv.c:1724:16: error: implicit declaration of function 'PR_GetPrefLoopbackAddrInfo' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
prStatus = PR_GetPrefLoopbackAddrInfo(&addr, port);
^
1 error generated.
make[3]: *** [Output.OBJD/selfserv.o] Error 1
Expected results:
Clean build.
Comment 1•3 years ago
|
||
Do you have NSPR 4.34 installed? The version requirement was bumped in 3.79.
Good catch!
nspr is nomaintainer and hence hadn't been updated.
I've updated NSPR to 4.34, and then NSS to 3.79.
Comment 3•3 years ago
|
||
No problem.
Description
•