Skip to content

Fix build with OpenSSL enabled.

Collin Funk requested to merge (removed):fix-gnulib-openssl-symbols into master

Hello maintainer,

When building with ./configure --with-openssl there is redefined symbol warnings for all of the gnulib crypto modules. For the sake of not spamming, here is an example of one:

/home/collin/.local/src/wget2/lib/sha512.c:104: multiple definition of `sha512_read_ctx'; ../lib/.libs/libgnu.a(libgnu_la-sha512-stream.o):/home/collin/.local/src/wget2/lib/gl_openssl.h:104: first defined here

This patch allows me to build again with this option. It seems that GNU Octave had this problem. This patch is essentially stolen from them. 😄

https://savannah.gnu.org/bugs/index.php?62416 https://hg.savannah.gnu.org/hgweb/octave/rev/8ee6422d1292

I believe this removes the [hash-name]_stream functions from gnulib but as far as I can tell wget2 doesn't use them.

Let me know if you notice any problems with this change.

Merge request reports