FYI, the issue below also happens with --disable-threads. Using --enable-threads=isoc fixes it (found in an earlier post on this ML). Regards, Tim On 1/7/20 4:03 PM, Tim Rühsen wrote: > Hi, > > with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on > FreeBSD 11.2-RELEASE-p4 (with clang 6.0): > > CCLD wget2 > /usr/bin/ld: undefined reference to symbol > `pthread_mutexattr_gettype@@FBSD_1.0' (try adding -lthr) > //lib/libthr.so.3: could not read symbols: Bad value > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > gmake[2]: *** [Makefile:1697: wget2] Error 1 > > I have no direct access to that machine or to any other FreeBSD > installation. > > LIBMULTITHREAD='' > LIBPMULTITHREAD='-lpthread' > LIBPTHREAD='' > LIBSTDTHREAD='' > LIBTHREAD='' > LIB_PTHREAD_SIGMASK='' > > gnulib-tool tells me to add $(LIBMULTITHREAD), $(LIBTHREAD) and > $(LIB_PTHREAD_SIGMASK) to LDADD. > > config.log is at > https://gitlab.com/gnuwget/wget2/-/jobs/395869770/artifacts/file/config.log >