Re: Compiling Tmux on Solaris 10 (x86)

2011-07-28 Thread Florian Ermisch
Hi Nicholas, the Solaris-specific retardness is reasoned as follows: /* * It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application * using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b, * and POSIX.1c applications. Likewise, it is invalid to compile an XPG6 * o

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-28 Thread Nicholas Marriott
Is this using gcc? I can't remember what we use _XPG4_2 to get. I suspect changing it to _XPG6 will break Solaris 9 and possibly anything using Sun Studio 11 or earlier... On Thu, Jul 28, 2011 at 03:29:37PM +0200, Florian Ermisch wrote: > Hi Nicholas, > > the Solaris-specific retardness is rea

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Nicholas Marriott
You can typically get a suitable xterm entry (assuming you are using xterm) by doing $ infocmp xterm >x On another box, copying it to your Solaris box and then doing $ tic x Which (for ncurses) will install it in ~/.terminfo. I didn't know you are using GCC 4.6, could be a bug there, or could

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Victor Hooi
Hi, That somebody would be me then...lol. I installed GCC 4.6.1 locally into the same prefix as tmux, using the instructions here: http://jblopen.com/node/16 Is there something there that I missed, or could do to fix these sorts of issues? Neither xterm-new or xterm-color work: open terminal

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Nicholas Marriott
My guess is someone screwed up the gcc install, typically it has its own copies of any header files it doesn't like. Or could be a gcc bug (not unknown). You can build and install gcc locally if you really want to know :-). Lack of colour is probably TERM. Solaris 10 is old and IIRC TERM=xterm do

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Victor Hooi
Nicholas, Thanks for that. Yup, using CPPFLAGS and LDFLAGS helps it successfully find libevent and GCC. And forcing SunStudio using "CC=cc" - it manages to compile successfully as well =). I'm curious as to why it wouldn't compile with GCC, but I suppose you're right, it's some weirdness with

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Nicholas Marriott
you probably need to use eg CPPFLAGS="-I/path/to/libevent/include -I/path/to/ncurses/include" \ LDFLAGS="-L/path/to/libevent/lib -L/path/to/ncurses/lib" \ ./configure or install them in a standard location the #error thing sounds like you are trying to use gcc and hitting some retardness in the

Re: Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Victor Hooi
heya, Also, I should add I just noticed a fourth issue (possibly related) - the configure script seems to be finding the system curses.h, but not the ncurses.h that I've compiled in my prefix. I tried specifying "-x-includes=/db/pub/eq/tools/include" as well as "-x-includes=/db/pub/eq/tools/inclu

Compiling Tmux on Solaris 10 (x86)

2011-07-21 Thread Victor Hooi
Hi, I'm attempting to compile Tmux 1.5 on Solaris 10 (x86). The first issue I hit was finding libevent - I'd compiled libevent to a non-standard prefix, and there was no ./configure argument to specify that - I just ended up setting the LD_LIBRARY_PATH. Should I have done it a different way thoug