Pcre

From Genunix

pcre - A library that implements Perl 5-style regular expressions

Contents

Rating

4 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 pcre-6.6 on Solaris Express

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

Configure and compile steps (on x86 hardware)

/usr/bin/gzip -dc pcre-6.6.tar.gz | /usr/sfw/bin/gtar xf -

cd pcre-6.6

export CFLAGS="-i -xO4 -xspace -xstrconst -xpentium -mr -I/usr/sfw/include -DANSICPP"
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
export PERL5LIB=/usr/perl5/site_perl/5.6.1/sun4-solaris-64int
export CPPFLAGS="-I/usr/sfw/include"
export LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
export MSGFMT="/usr/bin/msgfmt"

./configure --prefix=/usr --mandir=/usr/share/man \
            --libdir=/usr/lib              \
            --libexecdir=/usr/lib      \
            --sysconfdir=/etc
make 

Other configure options

output of ./configure --help

Directory paths that pcre installs to

include
lib
share/man/man3

Other 3rd party software pcre requires

(none)