Hi > With minimal changes to the source to tty-term.c and new Makefile I am able > to compile both tmux 0.9 and 1.0 > with SUn Studio 12.1, Sun's make and the native curses implimentation. > > This gives me a funtional tmux binary with one problem, the split-window > function, crashes the tmux server, without producing > a core file clinet just displays "server lost". This is consistent on > 32/64bit sparc and x86.
Please run with -vvvvvv and send me the logs. There is already a workaround for Solaris TIOCSWINSZ returning EINVAL unexpectedly, probably this is happening in another place too. Although it would be nice to track down why it happens. If it shows a fatal() error message, can you add an abort() to log_vfatal() and send me the backtrace? Does this still happen with gcc? > Also consistent is split-window does work if I am viewing key bindings before > executing the split windows, so: > > tmux > ctrl-b, " > > kills the tmux server, but > > tmux > ctrl-b,? > ctrl-b," > ctrl-b,o > q > > gives me a window split into two panes with a shell promt in each. > This is consistent accross sparc/x86 -m32 -m64 and tmux 0.0/1.0. Does this happen with gcc as well? I asked someone to test on Solaris 10 and they can't reproduce (with the tparm change and using gcc). > My code change is simply to pad argumets with 0s as suggested for portability > in ncurses man page at line 420 and 426 > of tty-term.c > > { > return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, > 0, 0, 0)); > } > > const char * > tty_term_string2(struct tty_term *term, enum tty_code_code code, int a, int b) > { > return (tparm((char *) tty_term_string(term, code), a, b, 0, 0, 0, 0, > 0, 0, 0)); > } I don't like this change but I've committed it. It is better to put up with this and use the system curses then be able to get rid of the equally horrible -I flags in configure. Plus half the time we were ending up using the ncurses headers but the system library. Thanks Nicholas ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users