Re: Build error with freebl: prtypes.h:556:38: error: size of array ‘arg’ is negative

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/07/2021 22.48, Paul Menzel wrote:
$ make
[…]
In file included from ../../../dist/out/include/prerror.h:9,
                  from drbg.c:9:
drbg.c: In function ‘RNG_RandomUpdate’:
../../../dist/out/include/prtypes.h:556:38: error: size of array ‘arg’ is negative
   556 |     extern void pr_static_assert(int arg[(condition) ? 1 : -1])
       |                                      ^~~
drbg.c:609:5: note: in expansion of macro ‘PR_STATIC_ASSERT’
   609 |     PR_STATIC_ASSERT(sizeof(size_t) <= 4);
       |     ^~~~~~~~~~~~~~~~

this is using the wrong branch...

in external/nss/ExternalProject_nss.mk there are these lines:

		$(if $(filter ANDROID FREEBSD LINUX MACOSX,$(OS)),$(if $(filter X86_64,$(CPUNAME)),USE_64=1)) \
		$(if $(filter AARCH64,$(CPUNAME)),USE_64=1 CPU_ARCH=aarch64) \

you probably need to add your CPU to the 1st one, or possibly even add one similar to the 2nd one, although it's not clear to me why setting CPU_ARCH is necessary in that case.
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux