Thread: Help Me Install SAC 101.6 in PC-BCD 9.1 (Freebsd 9.1)

Started: 2013-09-01 18:43:53
Last activity: 2013-09-10 22:27:39
Topics: SAC Help
Hi,

I have problem when try to install SAC using sac-101.6_source.tar.gz. My
system use PC-BSD 9.1 Release amd64 (its similiar with Freebsd
9.1Release amd64)... The problem is it cannot build libedit and I get
this error:

vi.c:920:74: error: macro "__weak_reference" requires 2 arguments, but
only 1 given
vi.c: In function 'get_alias_text':
vi.c:920: error: expected declaration specifiers before '__weak_reference'
vi.c:925: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'{' token
vi.c:955: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'{' token
vi.c:1000: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
vi.c:1057: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
vi.c:1106: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
vi.c:920: error: parameter name omitted
vi.c:1127: error: expected '{' at end of input
*** [vi.o] Error code 1

Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
*** [all] Error code 1

Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
*** [lib/libedit.a] Error code 1



When I try to install without libedit using ./configure
--disable-editline and make, I get this error:

o/select.c: In function 'sac_attempt_complete':
co/select.c:495: error: 'rl_completion_append_character' undeclared
(first use in this function)
co/select.c:495: error: (Each undeclared identifier is reported only once
co/select.c:495: error: for each function it appears in.)
co/select.c:497: warning: assignment makes pointer from integer without
a cast
co/select.c:502: error: 'rl_filename_completion_function' undeclared
(first use in this function)
co/select.c:502: warning: assignment makes pointer from integer without
a cast
co/select.c: At top level:
co/select.c:538: error: expected declaration specifiers or '...' before
'VCPFunction'
co/select.c: In function 'select_loop':
co/select.c:563: error: 'func' undeclared (first use in this function)
co/select.c:564: error: 'rl_completion_append_character' undeclared
(first use in this function)
co/select.c:565: error: 'rl_attempted_completion_function' undeclared
(first use in this function)
*** [co/select.o] Error code 1

Stop in /usr/local/sac-101.6/src.
*** [all-recursive] Error code 1



Please help to install SAC in PCBSD 9.1 Release system.. Thankyou

Regards
Fernando

  • Anyone Can help me?


    On 9/1/2013 11:43 AM, Fernando wrote:
    Hi,

    I have problem when try to install SAC using sac-101.6_source.tar.gz.
    My system use PC-BSD 9.1 Release amd64 (its similiar with Freebsd
    9.1Release amd64)... The problem is it cannot build libedit and I get
    this error:

    vi.c:920:74: error: macro "__weak_reference" requires 2 arguments, but
    only 1 given
    vi.c: In function 'get_alias_text':
    vi.c:920: error: expected declaration specifiers before
    '__weak_reference'
    vi.c:925: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '{' token
    vi.c:955: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '{' token
    vi.c:1000: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '{' token
    vi.c:1057: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '{' token
    vi.c:1106: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '{' token
    vi.c:920: error: parameter name omitted
    vi.c:1127: error: expected '{' at end of input
    *** [vi.o] Error code 1

    Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
    *** [all] Error code 1

    Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
    *** [lib/libedit.a] Error code 1



    When I try to install without libedit using ./configure
    --disable-editline and make, I get this error:

    o/select.c: In function 'sac_attempt_complete':
    co/select.c:495: error: 'rl_completion_append_character' undeclared
    (first use in this function)
    co/select.c:495: error: (Each undeclared identifier is reported only once
    co/select.c:495: error: for each function it appears in.)
    co/select.c:497: warning: assignment makes pointer from integer
    without a cast
    co/select.c:502: error: 'rl_filename_completion_function' undeclared
    (first use in this function)
    co/select.c:502: warning: assignment makes pointer from integer
    without a cast
    co/select.c: At top level:
    co/select.c:538: error: expected declaration specifiers or '...'
    before 'VCPFunction'
    co/select.c: In function 'select_loop':
    co/select.c:563: error: 'func' undeclared (first use in this function)
    co/select.c:564: error: 'rl_completion_append_character' undeclared
    (first use in this function)
    co/select.c:565: error: 'rl_attempted_completion_function' undeclared
    (first use in this function)
    *** [co/select.o] Error code 1

    Stop in /usr/local/sac-101.6/src.
    *** [all-recursive] Error code 1



    Please help to install SAC in PCBSD 9.1 Release system.. Thankyou

    Regards
    Fernando
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


  • Dear Fernando,

    When building on PC-BSD (FreeBSD variation), two files need modification.

    Attached is a patch file (text) that should work. Use it like below.

    % # Unpack the source
    % cd sac
    % ./configure
    % make
    ... errors here ....
    % patch -p1 < pcbsd.patch
    % make
    % make install

    ./sac/libedit/libedit-200090923-3.0-sac/src/vi.c
    Remove references to __weak_reference
    ./sac/src/sss/xtraveltime.c
    Replace all occurrences of "truncate" with "sac_truncate"

    You need to have the weak_reference error show up because libedit need to be unpacked and changes to its source needs to be applied.

    We will probably include these changes in the distribution provided they do not cause havoc with our supported operating systems.

    Good Luck.

    Brian Savage



    On Sep 1, 2013, at 12:43 AM, Fernando wrote:

    Hi,

    I have problem when try to install SAC using sac-101.6_source.tar.gz. My system use PC-BSD 9.1 Release amd64 (its similiar with Freebsd 9.1Release amd64)... The problem is it cannot build libedit and I get this error:

    vi.c:920:74: error: macro "__weak_reference" requires 2 arguments, but only 1 given
    vi.c: In function 'get_alias_text':
    vi.c:920: error: expected declaration specifiers before '__weak_reference'
    vi.c:925: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    vi.c:955: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    vi.c:1000: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    vi.c:1057: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    vi.c:1106: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    vi.c:920: error: parameter name omitted
    vi.c:1127: error: expected '{' at end of input
    *** [vi.o] Error code 1

    Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
    *** [all] Error code 1

    Stop in /usr/local/sac-101.6/libedit/libedit-20090923-3.0-sac/src.
    *** [lib/libedit.a] Error code 1



    When I try to install without libedit using ./configure --disable-editline and make, I get this error:

    o/select.c: In function 'sac_attempt_complete':
    co/select.c:495: error: 'rl_completion_append_character' undeclared (first use in this function)
    co/select.c:495: error: (Each undeclared identifier is reported only once
    co/select.c:495: error: for each function it appears in.)
    co/select.c:497: warning: assignment makes pointer from integer without a cast
    co/select.c:502: error: 'rl_filename_completion_function' undeclared (first use in this function)
    co/select.c:502: warning: assignment makes pointer from integer without a cast
    co/select.c: At top level:
    co/select.c:538: error: expected declaration specifiers or '...' before 'VCPFunction'
    co/select.c: In function 'select_loop':
    co/select.c:563: error: 'func' undeclared (first use in this function)
    co/select.c:564: error: 'rl_completion_append_character' undeclared (first use in this function)
    co/select.c:565: error: 'rl_attempted_completion_function' undeclared (first use in this function)
    *** [co/select.o] Error code 1

    Stop in /usr/local/sac-101.6/src.
    *** [all-recursive] Error code 1



    Please help to install SAC in PCBSD 9.1 Release system.. Thankyou

    Regards
    Fernando
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


    Attachments
Page built 08:51:58 | v.b'108166