Thread: Install SAC in MAC 10.13.6

Started: 2018-09-13 19:47:45
Last activity: 2018-09-14 10:47:43
Topics: SAC Help
Prateek Mondal
2018-09-13 19:47:45
I am installing SAC from source code in my macOS High Sierra (10.13.6) but getting the following error. I have updated libedit library with libedit-20180525-3.1 and changed the makefile accordingly for libedit only.
Please help me.

Error is attached below

../../sac-101.6a/inc/select.h:80:28: error: unknown type name 'VCPFunction'; did you mean 'VFunction'?
struct timeval *timeout, VCPFunction *func);
^~~~~~~~~~~
VFunction
../libedit/include/editline/readline.h:41:16: note: 'VFunction' declared here
typedef void VFunction(void);
^
../../sac-101.6a/src/co/select.c:538:6: error: unknown type name 'VCPFunction'; did you mean 'VFunction'?
VCPFunction *func) {
^~~~~~~~~~~
VFunction
../libedit/include/editline/readline.h:41:16: note: 'VFunction' declared here
typedef void VFunction(void);
^
../../sac-101.6a/src/co/select.c:563:40: warning: incompatible function pointer types passing 'VFunction *' (aka 'void (*)(void)') to parameter of type 'rl_vcpfunc_t *'
(aka 'void (*)(char *)') [-Wincompatible-function-pointer-types]
rl_callback_handler_install(kprmt, func);
^~~~
../libedit/include/editline/readline.h:190:64: note: passing argument to parameter here
void rl_callback_handler_install(const char *, rl_vcpfunc_t *);
^
1 warning and 2 errors generated.
make[1]: *** [co/select.o] Error 1
make: *** [all-recursive] Error 1
  • Milton Plasencia
    2018-09-14 10:47:43
    Hi,

    I resend the e-mail of Brian Savage (Tue, May 5, 2015, 3:48 AM) to another
    user with the “same” problem.

    ————
    Compiling 101.6 on 10.9 will require and updated version of libedit. This
    problem was reported to me by another user.
    Alternatively you can try to compile without libedit. This can be done
    through configure.

    Brian
    ________

    Cheers,

    Milton
    ************************************
    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 Thu, 13 Sep 2018 at 21:50, Prateek Mondal <prateekmondal<at>hotmail.com>
    wrote:

    I am installing SAC from source code in my macOS High Sierra (10.13.6) but
    getting the following error. I have updated libedit library with
    libedit-20180525-3.1 and changed the makefile accordingly for libedit only.
    Please help me.

    Error is attached below

    ../../sac-101.6a/inc/select.h:80:28: error: unknown type name
    'VCPFunction'; did you mean 'VFunction'?
    struct timeval *timeout, VCPFunction *func);
    ^~~~~~~~~~~
    VFunction
    ../libedit/include/editline/readline.h:41:16: note: 'VFunction' declared
    here
    typedef void VFunction(void);
    ^
    ../../sac-101.6a/src/co/select.c:538:6: error: unknown type name
    'VCPFunction'; did you mean 'VFunction'?
    VCPFunction *func) {
    ^~~~~~~~~~~
    VFunction
    ../libedit/include/editline/readline.h:41:16: note: 'VFunction' declared
    here
    typedef void VFunction(void);
    ^
    ../../sac-101.6a/src/co/select.c:563:40: warning: incompatible function
    pointer types passing 'VFunction *' (aka 'void (*)(void)') to parameter of
    type 'rl_vcpfunc_t *'
    (aka 'void (*)(char *)') [-Wincompatible-function-pointer-types]
    rl_callback_handler_install(kprmt, func);
    ^~~~
    ../libedit/include/editline/readline.h:190:64: note: passing argument to
    parameter here
    void rl_callback_handler_install(const char *, rl_vcpfunc_t *);
    ^
    1 warning and 2 errors generated.
    make[1]: *** [co/select.o] Error 1
    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 05:50:28 | v.090361a2