This works for me on "SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris":
./configure CFLAGS="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__"
Also if make throws an error like this:
make: Fatal error in reader: Makefile, line 30: Unexpected end of line seen
Edit Makefile lines:
29 ifeq (${ETCSCREENRC}, )
30 ETCSCREENRC=$(prefix)/etc/screenrc
31 endif
To:
ETCSCREENRC=$(prefix)/etc/screenrc
On Tue, 1 Nov 2011, Clark J. Wang wrote:
I'm new to Solaris, please help me compile screen from src. Following are my
steps: