Hi!

I have a PR for this since November:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282826

It's been assigned but not committed yet. In the meantime, you can
apply the patch manually.

Laurent

On Sat, 15 Feb 2025 at 16:51, The Doctor <doc...@doctor.nl2k.ab.ca> wrote:
>
> On Sat, Feb 15, 2025 at 09:52:47PM +0100, Philipp Ost wrote:
> > Hi,
> >
> > trying to build security/nss (nss-3.108) from an up-to-date ports tree fails
> > as follows:
> >
> > ----8<----
> > [...]
> > cc -B/usr/local/bin -o FreeBSD14.2_OPT.OBJ/FreeBSD_SINGLE_SHLIB/ldvector.o
> > -c -std=c99 -O2 -pipe  -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.2_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.2_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.2_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=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DKYBER_K=3
> > -DRIJNDAEL_INCLUDE_TABLES -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
> > -DNSS_USE_64 -DFREEBL_LOWHASH -DNSS_X86_OR_X64 -DNSS_X64 -DUSE_HW_SHA2
> > -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY -DNSS_USE_COMBA
> > -DMP_IS_LITTLE_ENDIAN -DUSE_HW_AES -DINTEL_GCM -DHAVE_INT128_SUPPORT
> > -DHACL_CAN_COMPILE_VEC256 -DKRML_MUSTINLINE=inline -DMP_API_COMPATIBLE
> > -I/usr/local/include -I../../../dist/FreeBSD14.2_OPT.OBJ/include
> > -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl
> > -Iverified -Iverified/internal -Iverified/karamel/include
> > -Iverified/karamel/krmllib/dist/minimal -Iverified/eurydice -Ideprecated
> > -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=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\"
> > -DKYBER_K=3 -DRIJNDAEL_INCLUDE_TABLES -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
> > -DNSS_USE_64 -DFREEBL_LOWHASH -DNSS_X86_OR_X64 -DNSS_X64 -DUSE_HW_SHA2
> > -DNSS_BEVAND_ARCFOUR -DMPI_AMD64 -DMP_ASSEMBLY_MULTIPLY -DNSS_USE_COMBA
> > -DMP_IS_LITTLE_ENDIAN -DUSE_HW_AES -DINTEL_GCM -DHAVE_INT128_SUPPORT
> > -DHACL_CAN_COMPILE_VEC256 -DKRML_MUSTINLINE=inline -DMP_API_COMPATIBLE
> > -I/usr/local/include -I../../../dist/FreeBSD14.2_OPT.OBJ/include
> > -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl
> > -Iverified -Iverified/internal -Iverified/karamel/include
> > -Iverified/karamel/krmllib/dist/minimal -Iverified/eurydice -Ideprecated
> > ldvector.c
> > In file included from ldvector.c:17:
> > ./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:286:
> > FreeBSD14.2_OPT.OBJ/FreeBSD_SINGLE_SHLIB/ldvector.o] Error 1
> > gmake[4]: Leaving directory
> > '/usr/ports/security/nss/work/nss-3.108/nss/lib/freebl'
> > gmake[3]: *** [Makefile:711: freebl_FREEBL_BUILD_SINGLE_SHLIB] Error 2
> > gmake[3]: Leaving directory
> > '/usr/ports/security/nss/work/nss-3.108/nss/lib/freebl'
> > gmake[2]: *** [../coreconf/rules.mk:44: freebl] Error 2
> > gmake[2]: Leaving directory '/usr/ports/security/nss/work/nss-3.108/nss/lib'
> > gmake[1]: *** [coreconf/rules.mk:44: lib] Error 2
> > gmake[1]: Leaving directory '/usr/ports/security/nss/work/nss-3.108/nss'
> > gmake: *** [manifest.mn:21: all] Error 2
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /usr/ports/security/nss
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/security/nss
> > ---->8----
> >
> > This is with MAKE_JOBS_UNSAFE=yes. Building "normally", that is without
> > MAKE_JOBS_UNSAFE=yes, fails with multiple of these errors.
> >
> > This is on bare metal on a box runnning 14.2-Stable amd64; uname -K reports
> > 1402501.
> >
> > Is anyone else seeing this?
> >
> >
> > Philipp
> >
>
> You need to adjust the mpi.h  to mpi/mpi.h in blapii.h
>
> and then a second adjustment is needed
>
> --
> Member - Liberal International This is doc...@nk.ca Ici doc...@nk.ca
> Yahweh, King & country!Never Satan President Republic!Beware AntiChrist 
> rising!
> Look at Psalms 14 and 53 on Atheism ;
> Ontario vote for the Liberals - The best Anti-Trump option!
>

Reply via email to