Thread: installing sac101.6 on Catalina 10.15.5

Started: 2020-08-31 11:21:43
Last activity: 2020-08-31 11:21:43
Topics: SAC Help
Koroni Maria
2020-08-31 11:21:43
Hello,


I am trying to install sac101.6 on Mac OS catalina 10.15.5 and I get errors relating to the libedit (see below).

I have updated the libedit and the error remains.


sh ./makelist -bc ./vi.c ./emacs.c ./common.c > help.c
/Library/Developer/CommandLineTools/usr/bin/make all-am
CC strlcat.o
gcc -DHAVE_CONFIG_H -I. -I.. -O -Wall -pipe -g3 -c strlcat.c
strlcat.c:45:1: error: expected parameter declarator
strlcat(char *dst, const char *src, size_t siz)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:47: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
strlcat.c:45:1: error: expected ')'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:47: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
strlcat.c:45:1: note: to match this '('
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:47: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
strlcat.c:45:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
strlcat(char *dst, const char *src, size_t siz)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:47: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
^
strlcat.c:45:1: error: conflicting types for '__builtin___strlcat_chk'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
strlcat.c:45:1: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
strlcat.c:45:1: error: definition of builtin function '__builtin___strlcat_chk'
strlcat(char *dst, const char *src, size_t siz)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/secure/_string.h:119:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
^
1 warning and 4 errors generated.
make[3]: *** [strlcat.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [lib/libedit.a] Error 2
make: *** [all-recursive] Error 1




Having tried to opt out libedit at configure by:

./configure --x-libraries=/usr/X11R6/lib --without-libedit=/usr/lib/

and

./configure --x-libraries=/usr/X11R6/lib --disable-libedit

, no luck at installing SAC.

What is going wrong here? I would appreciate any help.

Many thanks!


Kind regards,

Maria


Dr. Maria Koroni | Postdoctoral researcher, Seismology and Wave Physics |

Institut für Geophysik | Department of Earth Sciences | ETH Zürich |

NO H 39.3 | Sonneggstrasse 5, 8092, Zürich, Switzerland |
http://u.ethz.ch/Whind

http://u.ethz.ch/Whind

09:09:03 v.01697673