[Users] Error while compiling on macOS

David Fletcher David at megapico.co.uk
Tue Dec 12 10:56:08 UTC 2023


>> I miss a direction to the library. Something like:
>> LDFLAGS='-L /opt/homebrew/Cellar/gnutls/3.8.2/'
>
>I get this error:
>
>libtool:   error: require no space between '-L' and
>'/opt/homebrew/Cellar/gnutls/3.8.2/'
>
>Removing the space I get the same error as before.
>
>I also tried this LDFLAGS='-L/opt/homebrew/Cellar/gnutls/3.8.2/lib',
>which resulted in the following error:
>
>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  -L/opt/homebrew/Cellar/gnutls/3.8.2/lib -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 'gcrypt' 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
>

Hi Leo,

Looking at my install I was using the 1.9.4 release of libetpan rather
than the git download. But that probably doesn't make any difference.
The above mentions not being able to find libgcrypt.

Can you try this for libetpan:

  ./configure --with-gnutls=/opt/homebrew/lib/libgnutls.30.dylib

I tried that just now and that's working for me.

Best regards, David.


More information about the Users mailing list