maintainer-feedback requested: [Bug 280580] security/nss cannot build if mpich installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 Aug 2024 21:49:46 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko (Nobody)
<gecko@FreeBSD.org> for maintainer-feedback:
Bug 280580: security/nss cannot build if mpich installed
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280580



--- Description ---
amd64 live building 14.1p2

found this happening in the past, with the same errors I found, don't think
this was an issue in 3.101 at least didn't seem to come up for me outside of
maybe that october 2023 commit in the link below. temporarily removing mpich
and nss updated fine. not sure how to resolve.

https://cgit.freebsd.org/ports/commit/?id=7fbe5fd00a138a8198b5093a5cde96b938db4
8ef


gmake[5]: Leaving directory
'/usr/ports/security/nss/work/nss-3.102/nss/lib/libpkix/pkix/util'
cc -B/usr/local/bin -o FreeBSD14.1_OPT.OBJ/pkix_pl_socket.o -c -std=c99 -O2
-pipe -march=westmere  -I/usr/local/include/nspr -Wno-error=unused-function
-fstack-protector-strong -fno-strict-aliasing	-fPIC -Wall -Wno-switch
-DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
-Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
-DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I./../dist/FreeBSD14.1_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/   -fPIC -Wall -Wno-switch -DFREEBSD
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
-Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
-DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I./../dist/FreeBSD14.1_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/   -fPIC -Wall -Wno-switch -DFREEBSD
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
-Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
-DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I../../dist/FreeBSD14.1_OPT.OBJ/include
-I../../dist/public/ -I../../dist/private/   -fPIC -Wall -Wno-switch -DFREEBSD
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
-Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
-DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I../../../dist/FreeBSD14.1_OPT.OBJ/include
-I../../../dist/public/ -I../../../dist/private/   -fPIC -Wall -Wno-switch
-DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow -Qunused-arguments
-Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression
-DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -D_THREAD_SAFE -D_REENTRANT
-DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I../../../../dist/FreeBSD14.1_OPT.OBJ/include
-I../../../../dist/public/ -I../../../../dist/private/	 -fPIC -Wall
-Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK -Wall -Wshadow
-Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds
-Wno-unevaluated-expression -DNSS_NO_GCC48 -DXP_UNIX -DSHLIB_SUFFIX=\"so\"
-DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"\" -UDEBUG -DNDEBUG -D_THREAD_SAFE
-D_REENTRANT -DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY
-DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I/usr/local/include -I../../../../../dist/FreeBSD14.1_OPT.OBJ/include
-I../../../../../dist/public/nss -I../../../../../dist/private/nss 
pkix_pl_socket.c
In file included from sha_fast.c:11:
In file included from ./sha_fast.h:9:
./blapii.h:84:26: error: unknown type name 'mp_int'; did you mean 'u_int'?
   84 | SECStatus generate_prime(mp_int *prime, int primeLen);
      | 			 ^~~~~~
      | 			 u_int
/usr/include/sys/types.h:53:22: note: 'u_int' declared here
   53 | typedef unsigned int	u_int;
      | 			^
1 error generated.
gmake[4]: *** [../../coreconf/rules.mk:292:
FreeBSD14.1_OPT.OBJ/FreeBSD_SINGLE_SHLIB/sha_fast.o] Error 1
gmake[4]: Leaving directory
'/usr/ports/security/nss/work/nss-3.102/nss/lib/freebl'
gmake[3]: *** [Makefile:712: freebl_FREEBL_BUILD_SINGLE_SHLIB] Error 2
gmake[3]: Leaving directory
'/usr/ports/security/nss/work/nss-3.102/nss/lib/freebl'
gmake[2]: *** [../coreconf/rules.mk:44: freebl] Error 2