From KRayWiki
Jump to navigation Jump to search

Index to SCO OpenServer 5.0.7 issues relating to building open source projects

See Also: 

Shell Environment

  • Prefer use of BASH over the native shell.
    ssh $SCO *: bash --login
  • Assume some environment variables are set in .bash_profile.
    test -n "$(which gcc-3.4.6)" && export CC=$(which gcc-3.4.6) ACCEPT_INFERIOR_RM_PROGRAM=yes export ACCEPT_INFERIOR_RM_PROGRAM CPATH=${HOME}/include export CPATH CFLAGS="-static" export CFLAGS PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:/usr/local/lib/pkgconfig PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig export PKG_CONFIG_PATH # LIBRARY_PATH="${HOME}/lib" # export LIBRARY_PATH # LDFLAGS="-L${HOME}/lib" # export LDFLAGS # LDLIBS="-l${HOME}/lib/libssl.a" # export LDLIBS

Compiler Usage

  • SCO's cc is generally not used.
    $ cc -V UX:i386cc: INFO: SCO UNIX Development System Release 5.2.0A 03Aug06 UX:i386cc: TO FIX: Usage: cc [ options ] files ...
  • SCO's gcc is generally used when possible
    $ which gcc; $(which gcc) --version /usr/gnu/bin/gcc 2.95.3
    In general, this is done by setting CC= on a ./configure command line.
    $ CC= CFLAGS= ./configure --prefix=${PKG_PRFX}
    It is sometimes necessary to specify gcc (as in the case of zlib).
    $ CC=gcc CFLAGS= ./configure --prefix=${PKG_PRFX}
  • When gcc 2.95.3 does not work, try gcc-3.4.6.
    $ which gcc-3.4.6; $(which gcc-3.4.6) --version /usr/local/bin/gcc-3.4.6 gcc-3.4.6 (GCC) 3.4.6 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    In general, this is done by setting CC= on a ./configure command line.
    $ CC=gcc-3.4.6 CFLAGS= ./configure --prefix=${PKG_PRFX}
  • Attempts at finding a newer gcc version that works on SCO have not succeeded thus far.