Hi,
commit 57e304262262b0f483d76f9981bb4b99b8ec2869 breaks certain builds
(likely those with --disable-shared). As a side effect, the oss-fuzz
build for Wget2 fails.
Example:
./.bootstrap
./configure --enable-mini-gmp --enable-static --disable-shared
--disable-documentation
make clean && make
...
make[1]: Entering directory '/usr/oms/src/nettle/testsuite'
gcc -I.. -I.. -DHAVE_CONFIG_H -g -ggdb3 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wbad-function-cast -Wnested-externs -MT sha1-huge-test.o -MD -MP -MF
sha1-huge-test.o.d -c sha1-huge-test.c && true
gcc -I.. -I.. -DHAVE_CONFIG_H -g -ggdb3 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wbad-function-cast -Wnested-externs -MT testutils.o -MD -MP -MF
testutils.o.d -c testutils.c && true
In file included from testutils.c:3:0:
testutils.c: In function ‘tstring_hex’:
testutils.c:82:13: warning: pointer targets in passing argument 5 of
‘nettle_base16_decode_update’ differ in signedness [-Wpointer-sign]
length, hex));
^
testutils.h:293:11: note: in definition of macro ‘ASSERT’
if (!(x)) \
^
In file included from testutils.c:5:0:
../base16.h:49:30: note: expected ‘const uint8_t * {aka const unsigned
char *}’ but argument is of type ‘const char *’
#define base16_decode_update nettle_base16_decode_update
^
../base16.h:96:1: note: in expansion of macro ‘base16_decode_update’
base16_decode_update(struct base16_decode_ctx *ctx,
^~~~~~~~~~~~~~~~~~~~
gcc -g -ggdb3 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wpointer-arith -Wbad-function-cast
-Wnested-externs -L.. sha1-huge-test.o testutils.o ../nettle-internal.o
-lhogweed -lnettle -o sha1-huge-test
../libhogweed.a(mini-gmp.o): In function `mpn_zero_p':
/usr/oms/src/nettle/mini-gmp.c:391: multiple definition of `mpn_zero_p'
testutils.o:/usr/oms/src/nettle/testsuite/testutils.c:612: first defined
here
collect2: error: ld returned 1 exit status
.test-rules.make:263: recipe for target 'sha1-huge-test' failed
make[1]: *** [sha1-huge-test] Error 1
make[1]: Leaving directory '/usr/oms/src/nettle/testsuite'
Makefile:49: recipe for target 'all' failed
make: *** [all] Error 2
Regards, Tim