Screen

From Genunix

screen - A window manager that multiplexes a physical terminal

Contents

Rating

3 points (out of 4)

Rating scheme: 4 points means the source builds seamlessly on Solaris Express (OpenSolaris). Points are subtracted as follows:

  • Minus 1 if the source doesn't come with an automated way to localize the build (e.g. configure)
  • Minus 1 if the source won't compile with Sun's cc (this usually means the code is gcc-centric)
  • Minus 1 if a minor patch is required, or
  • Minus 2 if a major patch(es) is required

How to build screen-4.0.3 on Solaris Express

Build Environment (platform, compiler, tools, PATH, ld)

Configure and compile steps (on x86 hardware)

/usr/bin/gzip -dc screen-4.0.3.tar.gz | /usr/sfw/bin/gtar xf -

cd screen-4.0.3


export CFLAGS="-i -xO4 -xspace -xstrconst -xpentium -mr"
export LDFLAGS="-Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect"

./configure --prefix=/usr  \
            --mandir=/usr/share/man \
            --infodir=/usr/share/info

# Invocation of setenv in misc.c source file is coded to
# be platform dependent, but it doesn't treat sun platform
# properly. Fixed by appending ` || defined(sun)' to the end
# of the if statement at line 616, thusly...
# (TODO: Report this bug upstream.)

perl -i.orig -lpe 's/$/ || defined(sun)/ if $. == 616' misc.c

make

Other configure options

output of ./configure --help

Directory paths that screen installs to

bin
share/info
share/man/man1
share/screen/utf8encodings

Other 3rd party software screen requires

(none)