[Users] Error while compiling on macOS

Leo leo at heitmannruiz.org
Mon Dec 11 19:08:05 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


More information about the Users mailing list