Okay, I've done a complete build now ( Hiawatha v5.12, SSL, cache, URL rewrite ).
I needed to set the following:
MAKE=dmake
CPPFLAGS=-I/usr/sfw/include
LDFLAGS=-L/usr/sfw/lib -R/usr/sfw/lib
LIBS=-lcrypto -lssl -lsocket -lnsl
CFLAGS=-xc99
PATH=/opt/SUNWspro/bin:$PATH
Notes:
OpenSSL lives under /usr/sfw, and the flags are described in
man openssl.
Sun Studio 12 path should be ahead of /usr/ucb path.
The code changes were:
At line 1346 of target.c
/* if (flock(handle_write, LOCK_EX) == -1) { */
if (fcntl(handle_write, F_SETLK, F_WRLCK ) == -1 ) {
At line 1433 of target.c
/* flock(handle_write, LOCK_UN); */
fcntl(handle_write, F_SETLK, F_UNLCK);