Debugging install.sh on MailScanner installation - SCO

This is a discussion on Debugging install.sh on MailScanner installation - SCO ; # install.tar-fns.sh.org is the original file distributed # with MailScanner. mod.install.tar-fns.sh contains my # modifications to work around the problems to get MailScanner # distribution to compile/install on SCO 5.0.7 with SCO Dev Sys. # diff install.tar-fns.sh.orig mod.install.tar-fns.sh 12a13 > ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Debugging install.sh on MailScanner installation

  1. Debugging install.sh on MailScanner installation


    # install.tar-fns.sh.org is the original file distributed
    # with MailScanner. mod.install.tar-fns.sh contains my
    # modifications to work around the problems to get MailScanner
    # distribution to compile/install on SCO 5.0.7 with SCO Dev Sys.

    # diff install.tar-fns.sh.orig mod.install.tar-fns.sh

    12a13
    > LDFLAGS="-L/usr/local/lib -L/usr/gnu/lib";export LDFLAGS

    115c116
    < ( cd $DIR && $TAR xzBpf - ) < $SOURCE
    ---
    > ( cd $DIR && $TAR xf - ) < `gzcat $SOURCE`

    121c122
    < ( cd $DIR && $TAR xBpf - ) < $SOURCE2
    ---
    > ( cd $DIR && $TAR xf - ) < `gzcat $SOURCE`

    130c131
    < $GUNZIP -c $SOURCE | ( cd $DIR && $TAR xBpf - )
    ---
    > $GUNZIP -c $SOURCE | ( cd $DIR && $TAR xf - )

    ~

    I then ran the install.sh as:

    # sh -x install.sh > /tmp/badbob.log 2>&1

    This is a part of badbob.log showing a typical
    error message that I am at a loss to resolve:

    /usr/bin/perl mkhctype >hctype.h
    /usr/bin/perl mkpfunc >pfunc.h
    /usr/bin/perl /usr/lib/perl5/5.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
    cc -c -DPERL_SCO -DPERL_SCO507 -DHAS_FPSETMASK -D_REENTRANT -DMAXPATHLEN=1024 -march=i586 -mcpu=i586 -O6 -fomit-frame-pointer -DVERSION=\"3.56\"
    -DXS_VERSION=\"3.56\" -fPIC "-I/usr/lib/perl5/5.8/i586-pc-sco3.2v5.0/CORE" -DMARKED_SECTION Parser.c

    UX:i386cc: WARNING: warning: obsolete option "-march=i586" now interpreted as "-m -a rch=i586"
    UX:i386cc: ERROR: error: unknown -a option: rch=i586
    > *** Error code 1 (bu21) <-- Fatal error I believe.

    + rm -rf /tmp/HTML-Parser-3.56
    + timewait 2
    DELAY=2
    + [ x = x ]
    + sleep 2
    + echo

    Where do I look to try to identify the code that is setting "-march=i586"
    and is there any environmental variable setting to tell the compiler
    to ignore "-march=i586" in any make file?
    --

    Steve Fabac
    S.M. Fabac & Associates
    816/765-1670

  2. Re: Debugging install.sh on MailScanner installation

    On Aug 24, 12:41 pm, "Steve M. Fabac, Jr." wrote:
    > # install.tar-fns.sh.org is the original file distributed
    > # with MailScanner. mod.install.tar-fns.sh contains my
    > # modifications to work around the problems to get MailScanner
    > # distribution to compile/install on SCO 5.0.7 with SCO Dev Sys.
    >
    > # diff install.tar-fns.sh.orig mod.install.tar-fns.sh
    >
    > 12a13> LDFLAGS="-L/usr/local/lib -L/usr/gnu/lib";export LDFLAGS
    >
    > 115c116
    > < ( cd $DIR && $TAR xzBpf - ) < $SOURCE
    > ---> ( cd $DIR && $TAR xf - ) < `gzcat $SOURCE`
    >
    > 121c122
    > < ( cd $DIR && $TAR xBpf - ) < $SOURCE2
    > ---> ( cd $DIR && $TAR xf - ) < `gzcat $SOURCE`
    >
    > 130c131
    > < $GUNZIP -c $SOURCE | ( cd $DIR && $TAR xBpf - )
    > ---> $GUNZIP -c $SOURCE | ( cd $DIR && $TAR xf - )
    >
    > ~
    >
    > I then ran the install.sh as:
    >
    > # sh -x install.sh > /tmp/badbob.log 2>&1
    >
    > This is a part of badbob.log showing a typical
    > error message that I am at a loss to resolve:
    >
    > /usr/bin/perl mkhctype >hctype.h
    > /usr/bin/perl mkpfunc >pfunc.h
    > /usr/bin/perl /usr/lib/perl5/5.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
    > cc -c -DPERL_SCO -DPERL_SCO507 -DHAS_FPSETMASK -D_REENTRANT -DMAXPATHLEN=1024 -march=i586 -mcpu=i586 -O6 -fomit-frame-pointer -DVERSION=\"3.56\"
    > -DXS_VERSION=\"3.56\" -fPIC "-I/usr/lib/perl5/5.8/i586-pc-sco3.2v5.0/CORE" -DMARKED_SECTION Parser.c
    >
    > UX:i386cc: WARNING: warning: obsolete option "-march=i586" now interpreted as "-m -a rch=i586"
    > UX:i386cc: ERROR: error: unknown -a option: rch=i586> *** Error code 1 (bu21) <-- Fatal error I believe.
    >
    > + rm -rf /tmp/HTML-Parser-3.56
    > + timewait 2
    > DELAY=2
    > + [ x = x ]
    > + sleep 2
    > + echo
    >
    > Where do I look to try to identify the code that is setting "-march=i586"
    > and is there any environmental variable setting to tell the compiler
    > to ignore "-march=i586" in any make file?
    > --
    >
    > Steve Fabac
    > S.M. Fabac & Associates
    > 816/765-1670


    -march is a gcc option, not known to SCO's cc compiler. At the least
    the PATH may need adjusting to pick up the desired compiler.

    In another recent thread in this group on installing the C Compiler
    there are some general references to setting up a GCC environment on
    OpenServer.

    --RLR



+ Reply to Thread