How to compile varnish on Solaris 10
You need libpcre
PKG_CONFIG_PATH=/opt/varnish/lib/pkgconfig:/usr/sfw/pkgconfig \
LD_LIBRARY_PATH=/opt/varnish/lib/amd64:/usr/sfw/lib/amd64 \
CC=/opt/solstudio12.2/bin/cc CXX='CC' \
CFLAGS='-m64 -fast -g -mt' \
CXXFLAGS='-g0 -m64' \
CPPFLAGS=" -I/usr/sfw/include" \
./configure --prefix=/opt/varnish
and varnish
VCC_CC="cc -Kpic -G -m64 -o %o %s" \
CC=/opt/solstudio12.2/bin/cc \
CXX='CC' \
CXXFLAGS='-g0 -m64' \
CFLAGS="-g -fast -L/opt/varnish/lib -mt -m64" \
LDFLAGS="-lumem -mt" \
CPPFLAGS=" -I/usr/sfw/include" \
PKG_CONFIG_PATH=/opt/varnish/lib/pkgconfig \
./configure --prefix=/opt/varnish
varnish manifest
SolarisVarnishManifest