[Users] Error while compiling on macOS

Michael Rasmussen mir at miras.org
Mon Dec 11 18:32:32 UTC 2023


On Mon, 11 Dec 2023 18:07:27 -0000
Leo <leo at heitmannruiz.org> wrote:

> ./autogen.sh --with-gnutls
> CPPFLAGS='-I /opt/homebrew/Cellar/gnutls/3.8.2/include'
> 
> Executing this I get the attached config.log and the following error
> during make:
> 
> /bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2
> -version-info 25:0:5 -lz -o libetpan.la -rpath /usr/local/lib
> data-types/libdata-types.la low-level/liblow-level.la
> driver/libdriver.la main/libmain.la engine/libengine.la  -lz
> -lpthread  -liconv  -lgnutls -lgcrypt -lgpg-error -lz -lsasl2  -lz
> -lpthread libtool: link: g++ -r -keep_private_externs -nostdlib -o
> .libs/libetpan.20.dylib-master.o
> -Wl,-force_load,data-types/.libs/libdata-types.a
> -Wl,-force_load,low-level/.libs/liblow-level.a
> -Wl,-force_load,driver/.libs/libdriver.a
> -Wl,-force_load,main/.libs/libmain.a
> -Wl,-force_load,engine/.libs/libengine.a libtool: link: g++
> -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o
> .libs/libetpan.20.dylib .libs/libetpan.20.dylib-master.o  -liconv
> -lgnutls -lgcrypt -lgpg-error -lsasl2 -lz -lpthread  -g -O2
> -install_name  /usr/local/lib/libetpan.20.dylib
> -compatibility_version 26 -current_version 26.0 ld: library 'gnutls'
> not found clang: error: linker command failed with exit code 1 (use
> -v to see invocation) make[4]: *** [libetpan.la] Error 1 make[3]: ***
> [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: ***
> [all-recursive] Error 1 make: *** [all] Error 2

I miss a direction to the library. Something like:
LDFLAGS='-L /opt/homebrew/Cellar/gnutls/3.8.2/'

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
https://keys.openpgp.org/vks/v1/by-fingerprint/A1306C5094B5E31B7721A3A66F4844C7CA7501AA
mir <at> datanom <dot> net
https://keys.openpgp.org/vks/v1/by-fingerprint/0C14CD9479667E848770C8F98417B6C5E1BB093F
mir <at> miras <dot> org
https://keys.openpgp.org/vks/v1/by-fingerprint/5F71405B571CB8EE2A414A4FC77C11E049A06E66
--------------------------------------------------------------

'During times of universal deceit, telling the truth becomes a
revolutionary act.' -George Orwell

/usr/games/fortune -es says:
You'll feel devilish tonight.  Toss dynamite caps under a flamenco
dancer's heel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20231211/dc2b001a/attachment.sig>


More information about the Users mailing list