Oh dear; I should've just attached that as a file or something.

I submitted a comment that isn't showing up. I'm editing to add it to this comment.

I configured with:

CPPFLAGS="-I/opt/csw/include" LDFLAGS="-Wl,-L/opt/csw/lib -Wl,-R/opt/csw/lib" LIBS="-lsocket -lnsl"

The LIBS thing is a necessity on solaris. You should probably add it to the build.

Stuff installed /opt/csw comes from the OpenCSW project. While not officially part of Solaris, I've yet to see a solaris install without /opt/csw (that wasn't stuck in the dark ages anyway). You'd probably be safe making the build check whether /opt/csw exists and adding those flags if it does exist.

 

Last edit: Brian Vandenberg 2015-08-25