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 be
you aren't pointing it to the right headers somehow. Never tried 4.6 on
Solaris but I know it builds fine with 4.3 or so.



On Fri, Jul 22, 2011 at 01:22:41PM +1000, Victor Hooi wrote:
>    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:
>    [1]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 failed: missing or unsuitable terminal: xterm-color
> 
>    I'll probably need to get the system admins, or somebody who has root
>    access on this box to update the term file. There's no way to do it as
>    non-root, is there?
>    Cheers,
>    Victor
>    On Fri, Jul 22, 2011 at 13:15, Nicholas Marriott
>    <[2]nicholas.marri...@gmail.com> wrote:
> 
>      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
>      doesn't have colour - try xterm-new or xterm-color (the first is
>      better if it exists).
> 
>      On Fri, Jul 22, 2011 at 01:00:04PM +1000, Victor Hooi wrote:
>      > * *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 Solaris headers and GCC.
>      > * *All this hacking around with compiles is quite a pain to be honest.
>      IMHO,
>      > * *the package management on Solaris 10 is archaic and painful
>      compared to
>      > * *Linux. Normally, I'd use OpenCSW or Blastwave (both of which have
>      tmux),
>      > * *were it not for the fact that I don't have root access on these
>      boxes. Ah
>      > * *well.
>      > * *Thanks heaps for your help =). At least now I have a working tmux.
>      It
>      > * *doesn't seem to have any colour, not sure why, but that might be a
>      > * *separate post.
>      > * *Cheers,
>      > * *Victor
>      >
>      > * *On Fri, Jul 22, 2011 at 11:59, Nicholas Marriott
>      > * *<[1][3]nicholas.marri...@gmail.com> wrote:
>      >
>      > * * *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 Solaris headers. probably need to either
>      upgrade your
>      > * * *gcc or try Sun cc
>      >
>      > * * *On Fri, Jul 22, 2011 at 11:36:47AM +1000, Victor Hooi wrote:
>      > * * *> * *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/include/ncurse", and it still
>      didn't
>      > * * *seem to
>      > * * *> * *find ncurses - how would I specify a non-standard path for
>      ncurses?
>      > * * *> * *Cheers,
>      > * * *> * *Victor
>      > * * *> * *On Fri, Jul 22, 2011 at 11:15, Victor Hooi
>      > * * *<[1][2][4]victorh...@yahoo.com>
>      > * * *> * *wrote:
>      > * * *>
>      > * * *> * * *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 though?
>      > * * *> * * *The second issue I hit was during compilation:
>      > * * *>
>      > * * *> * * * *In file included from /usr/include/sys/types.h:18:0,
>      > * * *> * * * ** * * * * * * * *from arguments.c:19:
>      > * * *> * * *
>      > * *
>      
> **/db/pub/eq/tools/lib/gcc/i386-pc-solaris2.10/4.6.1/include-fixed/sys/feature_tests.h:341:2:
>      > * * *> * * * *error: #error "Compiler or options invalid for pre-UNIX
>      03
>      > * * *X/Open
>      > * * *> * * * *applications * * *and pre-2001 POSIX applications"
>      > * * *> * * * *gmake: *** [arguments.o] Error 1
>      > * * *>
>      > * * *> * * *This is a bit of a hack, and I probably don't understand
>      the
>      > * * *nuances of
>      > * * *> * * *what I'm doing here, but I edited the Makefile, and
>      changed:
>      > * * *>
>      > * * *> * * * *am__append_2 = -std=c99
>      > * * *>
>      > * * *> * * *to
>      > * * *>
>      > * * *> * * * *am__append_2 = -std=gnu89
>      > * * *>
>      > * * *> * * *and the compile proceeds along a bit more, but then I hit
>      the
>      > * * *next
>      > * * *> * * *error:
>      > * * *>
>      > * * *> * * * *gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\"
>      > * * *> * * * *-DPACKAGE_VERSION=\"1.5\" -DPACKAGE_STRING=\"tmux\ 1.5\"
>      > * * *> * * * *-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
>      -DPACKAGE=\"tmux\"
>      > * * *> * * * *-DVERSION=\"1.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>      > * * *> * * * *-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>      > * * *> * * * *-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
>      > * * *> * * * *-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CURSES_H=1
>      > * * *> * * * *-DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1
>      > * * *> * * * *-DHAVE_STDINT_H=1 -DHAVE_LIBRT=1 -DHAVE_LIBXNET=1
>      > * * *-DHAVE_CLOSEFROM=1
>      > * * *> * * * *-DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_STRLCPY=1
>      > * * *-DHAVE_STRLCAT=1
>      > * * *> * * * *-DHAVE_DECL_OPTARG=0 -DHAVE_DECL_OPTIND=0
>      > * * *-DHAVE_DECL_OPTRESET=0
>      > * * *> * * * *-DHAVE_BZERO=1 -DHAVE_SYSCONF=1 -DHAVE_PROC_PID=1
>      > * * *-DHAVE_DIRFD=1 -I. *
>      > * * *> * * * *-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED *-iquote.
>      > * * *> * * * *-I/usr/local/include *-D_XPG4_2 -D__EXTENSIONS__
>      > * * *> * * * *-D_POSIX_PTHREAD_SEMANTICS * -std=gnu89 * *-MT colour.o
>      -MD -MP
>      > * * *-MF
>      > * * *> * * * *.deps/colour.Tpo -c -o colour.o colour.c
>      > * * *> * * * *colour.c: In function 'colour_rgb_find':
>      > * * *> * * * *colour.c:116:11: error: 'INFINITY' undeclared (first use
>      in
>      > * * *this
>      > * * *> * * * *function)
>      > * * *> * * * *colour.c:116:11: note: each undeclared identifier is
>      reported
>      > * * *only
>      > * * *> * * * *once for each function it appears in
>      > * * *> * * * *gmake: *** [colour.o] Error 1
>      > * * *>
>      > * * *> * * *Anyhow, I'm wondering if anybody's managed to compile Tmux
>      1.5
>      > * * *> * * *successfully on Solaris 10 (x86), or whether anybody might
>      have
>      > * * *> * * *suggested on the proper way to fix the errors above?
>      > * * *> * * *Cheers,
>      > * * *> * * *Victor
>      > * * *>
>      > * * *> References
>      > * * *>
>      > * * *> * *Visible links
>      > * * *> * *1. mailto:[3][5]victorh...@yahoo.com
>      >
>      > * * *>
>      > * *
>      
> *------------------------------------------------------------------------------
>      > * * *> 10 Tips for Better Web Security
>      > * * *> Learn 10 ways to better secure your business today. Topics
>      covered
>      > * * *include:
>      > * * *> Web security, SSL, hacker attacks & Denial of Service (DoS),
>      private
>      > * * *keys,
>      > * * *> security Microsoft Exchange, secure Instant Messaging, and much
>      more.
>      > * * *> [4][6]http://www.accelacomm.com/jaw/sfnl/114/51426210/
>      >
>      > * * *> _______________________________________________
>      > * * *> tmux-users mailing list
>      > * * *> [5][7]tmux-users@lists.sourceforge.net
>      > * * *> [6][8]https://lists.sourceforge.net/lists/listinfo/tmux-users
>      >
>      > References
>      >
>      > * *Visible links
>      > * *1. mailto:[9]nicholas.marri...@gmail.com
>      > * *2. mailto:[10]victorh...@yahoo.com
>      > * *3. mailto:[11]victorh...@yahoo.com
>      > * *4. [12]http://www.accelacomm.com/jaw/sfnl/114/51426210/
>      > * *5. mailto:[13]tmux-users@lists.sourceforge.net
>      > * *6. [14]https://lists.sourceforge.net/lists/listinfo/tmux-users
> 
> References
> 
>    Visible links
>    1. http://jblopen.com/node/16
>    2. mailto:nicholas.marri...@gmail.com
>    3. mailto:nicholas.marri...@gmail.com
>    4. mailto:victorh...@yahoo.com
>    5. mailto:victorh...@yahoo.com
>    6. http://www.accelacomm.com/jaw/sfnl/114/51426210/
>    7. mailto:tmux-users@lists.sourceforge.net
>    8. https://lists.sourceforge.net/lists/listinfo/tmux-users
>    9. mailto:nicholas.marri...@gmail.com
>   10. mailto:victorh...@yahoo.com
>   11. mailto:victorh...@yahoo.com
>   12. http://www.accelacomm.com/jaw/sfnl/114/51426210/
>   13. mailto:tmux-users@lists.sourceforge.net
>   14. https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to