After running the following commands: $ gnulib-tool --create-testdir --dir testdir1 --single-configure `gnulib-tool --list | grep -E '^crypto/gc-?' | xargs` $ cd testdir1 && ./configure --with-libgcrypt CFLAGS='-Wcalloc-transposed-args' make[4]: Entering directory '/home/collin/.local/src/gnulib/testdir1/gltests' gcc -Wno-error -Wcalloc-transposed-args -o test-gc-arcfour test-gc-arcfour.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a /usr/bin/ld: ../gllib/libgnu.a(gc-libgcrypt.o): in function `gc_init': gc-libgcrypt.c:(.text+0x39): undefined reference to `gcry_control' /usr/bin/ld: gc-libgcrypt.c:(.text+0x5b): undefined reference to `gcry_control' /usr/bin/ld: gc-libgcrypt.c:(.text+0x70): undefined reference to `gcry_check_version' /usr/bin/ld: gc-libgcrypt.c:(.text+0x95): undefined reference to `gcry_control'
This happens because the arcfour tests are not linked to @LIB_CRYPTO@ like the other crypto/gc-* tests. I used @LIB_CRYPTO@ since that seems correct for the crypto/gc-* modules. I don't think we use the openssl RC4 function anywhere. So technically it is needlessly linked when --with-openssl is used. It would be simple to add openssl support, though. Not that RC4 is very important nowadays. Collin