Open behrangsa opened 8 years ago
Fixed by manually passing OpenSSL's location:
./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2e_1
Thanks!
Thanks! Maybe this should be mentioned in the readme...
I try:
brew install libconfig readline lua python libevent jansson
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib"
./configure --with-openssl=/usr/local/Cellar/openssl/1.0.2g
make
and I have this error:
bin/generate -g types-header auto/scheme.tlo > auto/auto-types.h || rm auto/auto-types.h
gcc -I. -I. -I./tgl -I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include -I/usr/local/opt/openssl/include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/Cellar/openssl/1.0.2g/include -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/main.d -MQ objs/main.o -o objs/main.o main.c
main.c:900:5: error: '__builtin___snprintf_chk' will always overflow destination buffer
[-Werror,-Wbuiltin-memcpy-chk-size]
snprintf (serv_addr.sun_path, 108, "%s", unix_socket);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:57:3: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [objs/main.o] Error 1
I have installed OpenSSL via Homebrew. However build fails with the following output: