AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  SED issues on AIX 5.3

    Posted Wed May 03, 2006 05:04 PM

    Originally posted by: SystemAdmin


    I am trying to compile cscope on AIX 5.3 and ran the ./configure

    It seems to create the config.status file and then getting errors on

    $ ./config.status
    config.status: creating Makefile
    sed: Function s,@abs_srcdir@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5,;t t cannot be parsed.
    config.status: creating doc/Makefile
    sed: Function s,@abs_srcdir@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5/doc,;t t cannot be parsed.
    config.status: creating src/Makefile
    sed: Function s,@abs_srcdir@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5/src,;t t cannot be parsed.
    config.status: creating contrib/Makefile
    sed: Function s,@abs_srcdir@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5/contrib,;t t cannot be parsed.
    The actual SED script seems to the following. Can someone tell me what else to try? Is this a SED issue?

    sed "/^[ ]*VPATH[ ]*=/{
    s/:*\$(srcdir):*/:/;
    s/:*\${srcdir}:*/:/;
    s/:*@srcdir@:*/:/;
    s/^\(^=*=[ ]*\):*/\1/;
    s/:*$//;
    s/^^=*=[ ]*$//;
    }

    :t
    /@a-zA-Z_a-zA-Z_0-9*@/!b
    s,@configure_input@,$configure_input,;t t
    s,@srcdir@,$ac_srcdir,;t t
    s,@abs_srcdir@,$ac_abs_srcdir,;t t
    s,@top_srcdir@,$ac_top_srcdir,;t t
    s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
    s,@builddir@,$ac_builddir,;t t
    s,@abs_builddir@,$ac_abs_builddir,;t t
    s,@top_builddir@,$ac_top_builddir,;t t
    s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
    s,@INSTALL@,$ac_INSTALL,;t t
    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
    rm -f $tmp/stdin
    if test x"$ac_file" != x-; then
    mv $tmp/out $ac_file
    else
    cat $tmp/out
    rm -f $tmp/out
    fi
    #AIX-Forum


  • 2.  But which sed?

    Posted Sat May 06, 2006 06:39 AM

    Originally posted by: nagger


    It is not clear which sed you are using.
    As cscope is open source it probably needs GNU sed not the default AIX sed.
    I guess you are using the AIX sed

    You can get the GNU sed from the AIX Linux Affinity site at
    http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html

    Is there some reason you are recompiling cscope instead of using the pre-compiled version at UCLA?
    i.e at http://aixpdslib.seas.ucla.edu/packages/cscope.html

    I hope this helps, N
    #AIX-Forum


  • 3.  Re: But which sed?

    Posted Mon May 08, 2006 09:22 AM

    Originally posted by: SystemAdmin


    Thank you for your time N,
    I realized the issue to be a non-SED one over the weekend.

    The main issue was the directory that I was trying to build cscope in.

    "@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5,;"
    ^^^^^^^^^^^^^^^

    the sub dir is "awas,rb200620" has our beloved "," that broke sed. I moved it to a different dir and it worked fine.

    sed: Function s,@abs_srcdir@,/ccm_wa/v617320/awas,rb200620/awas/cscope/cscope-15.5,;t t cannot be parsed.
    #AIX-Forum