Thread: error installing SAC on Mac

Started: 2018-07-30 08:40:46
Last activity: 2018-07-30 16:52:20
Topics: SAC Help
claudia pavez
2018-07-30 08:40:46
Dear SAC users:
I am trying to install SAC on Mac 10.13.5. Everything it's ok until the
make step, when I am having problems. The error is in red.

I will appreciate some help!
Regards,

Claudia Pavez


*strlcat.c:45:1: **error: **expected parameter declarator*

strlcat(char *dst, const char *src, size_t siz)

*^*

*/usr/include/secure/_string.h:115:47: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*/usr/include/secure/_common.h:39:62: note: *expanded from macro
'__darwin_obsz'

#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

* ^*

*/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 ')'*

*/usr/include/secure/_string.h:115:47: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*/usr/include/secure/_common.h:39:62: note: *expanded from macro
'__darwin_obsz'

#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

* ^*

*/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 '('

*/usr/include/secure/_string.h:115:47: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*/usr/include/secure/_common.h:39:53: note: *expanded from macro
'__darwin_obsz'

#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

* ^*

*strlcat.c:45:1: **warning: **type specifier missing, defaults to 'int'*

* [-Wimplicit-int]*

strlcat(char *dst, const char *src, size_t siz)

*^*

*/usr/include/secure/_string.h:115:47: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*/usr/include/secure/_common.h:39:31: note: *expanded from macro
'__darwin_obsz'

#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

* ^*

*strlcat.c:45:1: **error: **conflicting types for '__builtin___strlcat_chk'*

*/usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*strlcat.c:45:1: note: *'__builtin___strlcat_chk' is a builtin with type
'unsigned

long (char *, const char *, unsigned long, unsigned long)'

*/usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

*strlcat.c:45:1: **error: **definition of builtin function
'__builtin___strlcat_chk'*

strlcat(char *dst, const char *src, size_t siz)

*^*

*/usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

__builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

* ^*

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

  • Milton Plasencia
    2018-07-30 13:35:27
    Hi,

    Seems as you not have installed Xcode in your system.

    In Terminal windows you must execute xcode-select --install (using sudo).
    Obviously that string.h and common. h etc headers not exits in your system,
    so after install
    verify if Xcode has installed these headers in /usr/include/secure folder.

    HTH,

    M.
    ************************************
    Milton P. PLASENCIA LINARES

    Centro di Ricerche Sismologiche (CRS)
    OGS - Istituto Nazionale di Oceanografia e di Geofisica Sperimentale

    Borgo Grotta Gigante 42/C
    (34010) Sgonico - Trieste - Italia
    Tel: +39 040 2140 156 (Udine)
    Tel: +39 040 2140 256 (Trieste)
    Cel.: +39 331 6481 935

    E-mail: mplasencia<at>inogs.it

    GPG Key: 22FCFFA8

    ASAIN (Antarctic Seismographic Argentinean Italian Network)
    **************************************


    On Mon, 30 Jul 2018 at 01:42, claudia pavez <cv.pavez.o<at>gmail.com> wrote:

    Dear SAC users:
    I am trying to install SAC on Mac 10.13.5. Everything it's ok until the
    make step, when I am having problems. The error is in red.

    I will appreciate some help!
    Regards,

    Claudia Pavez


    *strlcat.c:45:1: **error: **expected parameter declarator*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:62: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    */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 ')'*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:62: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    */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 '('

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:53: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    *strlcat.c:45:1: **warning: **type specifier missing, defaults to 'int'*

    * [-Wimplicit-int]*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:31: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    *strlcat.c:45:1: **error: **conflicting types for
    '__builtin___strlcat_chk'*

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    *strlcat.c:45:1: note: *'__builtin___strlcat_chk' is a builtin with type
    'unsigned

    long (char *, const char *, unsigned long, unsigned long)'

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    *strlcat.c:45:1: **error: **definition of builtin function
    '__builtin___strlcat_chk'*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    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

    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


  • Geo .
    2018-07-30 16:52:20
    Hi Claudia,
    Are you using a .dmg to install SAC? If yes, I suggest that you try
    installing the SAC for Linux on your Mac instead of using the .dmg. It only
    amounts to moving a couple of folders around.

    Januka

    Januka Attanayake
    Research Fellow | Earthquake Seismology
    Homepage: http://sites.google.com/site/janukaattanayake

    School of Earth Sciences | McCoy Bldg. 200
    University of Melbourne | Parkville 3010 VIC
    Australia



    On 30 July 2018 at 09:41, claudia pavez <cv.pavez.o<at>gmail.com> wrote:

    Dear SAC users:
    I am trying to install SAC on Mac 10.13.5. Everything it's ok until the
    make step, when I am having problems. The error is in red.

    I will appreciate some help!
    Regards,

    Claudia Pavez


    *strlcat.c:45:1: **error: **expected parameter declarator*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:62: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    */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 ')'*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:62: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    */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 '('

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:53: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    *strlcat.c:45:1: **warning: **type specifier missing, defaults to 'int'*

    * [-Wimplicit-int]*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:47: note: *expanded from macro
    'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    */usr/include/secure/_common.h:39:31: note: *expanded from macro
    '__darwin_obsz'

    #define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...

    * ^*

    *strlcat.c:45:1: **error: **conflicting types for
    '__builtin___strlcat_chk'*

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    *strlcat.c:45:1: note: *'__builtin___strlcat_chk' is a builtin with type
    'unsigned

    long (char *, const char *, unsigned long, unsigned long)'

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    *strlcat.c:45:1: **error: **definition of builtin function
    '__builtin___strlcat_chk'*

    strlcat(char *dst, const char *src, size_t siz)

    *^*

    */usr/include/secure/_string.h:115:3: note: *expanded from macro 'strlcat'

    __builtin___strlcat_chk (dest, __VA_ARGS__, __darwin_obs...

    * ^*

    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


    ----------------------
    SAC Help
    Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
    Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/



Page built 08:06:05 | v.b'108166