---
** [tickets:#59] tmux-1.8 failed on SunOS 5.9**
**Status:** open
**Created:** Thu Aug 29, 2013 01:26 PM UTC by Michal Plichta
**Last Updated:** Thu Aug 29, 2013 01:26 PM UTC
**Owner:** nobody
Since I dont have a root access to machine I download and compile
libevent-2.0.21 and ncurses-5.9 myself. With:
>tar xvzf libevent-2.0.21-stable.tar.gz
>cd libevent-2.0.21-stable
>./configure --prefix=$HOME/local --disable-shared
>make && make install
and ncurses:
>tar xvzf ncurses-5.9.tar.gz
>cd ncurses-5.9
>./configure --prefix=$HOME/local
>make && make install
I apply patch tmux_1_7_solaris.patch from: <http://blog.simplex-one.com/?p=103>
I did this because without this patch I got error from make:
--------------------------------------
gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\"
-DPACKAGE_VERSION=\"1.8\" -DPACKAGE_STRING=\"tmux\ 1.8\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\"
-DVERSION=\"1.8\" -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_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1
-DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_TERM_H=1
-DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=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 -I.
-I/home/gtqk84/local/include -D_XPG6 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-iquote. -I/usr/local/include -D_XPG4_2 -D__EXTENSIONS__
-D_POSIX_PTHREAD_SEMANTICS -L/home/gtqk84/local/lib
-I/home/gtqk84/local/include -I/home/gtqk84/local/include/ncurses -std=gnu99
-O2 -MT screen.o -MD -MP -MF .
deps/screen.Tpo -c -o screen.o screen.c
mv -f .deps/screen.Tpo .deps/screen.Po
gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\"
-DPACKAGE_VERSION=\"1.8\" -DPACKAGE_STRING=\"tmux\ 1.8\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\"
-DVERSION=\"1.8\" -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_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1
-DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_TERM_H=1
-DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=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 -I.
-I/home/gtqk84/local/include -D_XPG6 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-iquote. -I/usr/local/include -D_XPG4_2 -D__EXTENSIONS__
-D_POSIX_PTHREAD_SEMANTICS -L/home/gtqk84/local/lib
-I/home/gtqk84/local/include -I/home/gtqk84/local/include/ncurses -std=gnu99
-O2 -MT server-client.o -MD -M
P -MF .deps/server-client.Tpo -c -o server-client.o server-client.c
server-client.c: In function 'server_client_assume_paste':
server-client.c:347: warning: implicit declaration of function 'timersub'
server-client.c: In function 'server_client_check_resize':
server-client.c:544: error: 'errno' undeclared (first use in this function)
server-client.c:544: error: (Each undeclared identifier is reported only once
server-client.c:544: error: for each function it appears in.)
server-client.c:544: error: 'EINVAL' undeclared (first use in this function)
make: *** [server-client.o] Error 1
--------------------------------------
so I configure tmux with:
>setenv PKG_CONFIG_PATH /home/gtqk84/local/lib/pkgconfig
>./configure CFLAGS="-L$HOME/local/lib -I$HOME/local/include
>-I$HOME/local/include/ncurses" LDFLAGS="-L$HOME/local/lib
>-L$HOME/local/include/ncurses -L$HOME/local/include" CPPFLAGS="-D_XPG6"
>LDFLAGS="-D_XPG6"
--------------------------------------
checking for a BSD-compatible install... /tools/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /tools/bin/grep
checking for egrep... /tools/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking bitstring.h usability... no
checking bitstring.h presence... no
checking for bitstring.h... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... no
configure: WARNING: ncurses.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: ncurses.h: proceeding with the compiler's result
checking for ncurses.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking pty.h usability... no
checking pty.h presence... no
checking for pty.h... no
checking for stdint.h... (cached) no
checking sys/dir.h usability... no
checking sys/dir.h presence... no
checking for sys/dir.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/tree.h usability... no
checking sys/tree.h presence... no
checking for sys/tree.h... no
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking util.h usability... no
checking util.h presence... no
checking for util.h... no
checking for gcc that whines about -I... yes
checking for glibc... no
checking for library containing clock_gettime... -lrt
checking for pkg-config... /tools/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBEVENT... yes
checking for library containing setupterm... -lcurses
checking for b64_ntop... no
checking for b64_ntop with -lresolv... yes
checking for library containing inet_ntoa... none required
checking for library containing socket... none required
checking for socket in -lxnet... yes
checking for CMSG_DATA... no
checking if CMSG_DATA needs _XOPEN_SOURCE_EXTENDED... yes
checking for library containing imsg_init... no
checking for library containing forkpty... no
checking for closefrom... yes
checking for daemon... yes
checking for setenv... no
checking for strlcpy... yes
checking for strlcat... yes
checking for asprintf... no
checking for fgetln... no
checking for strcasestr... no
checking for strsep... no
checking for strtonum... no
checking for strnvis... no
checking for getopt... yes
checking whether optarg is declared... no
checking whether optind is declared... no
checking whether optreset is declared... no
checking for bzero... yes
checking for dirfd... no
checking for setproctitle... no
checking for sysconf... yes
checking for BSD-style unsigned types... no
checking whether TAILQ_PREV is declared... no
checking whether TAILQ_REPLACE is declared... no
checking for __progname... no
checking whether F_CLOSEM is declared... no
checking for /proc/$$... yes
checking platform... sunos
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
--------------------------------------
And then I got error from make:
--------------------------------------
gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\"
-DPACKAGE_VERSION=\"1.8\" -DPACKAGE_STRING=\"tmux\ 1.8\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\"
-DVERSION=\"1.8\" -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_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1
-DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_TERM_H=1
-DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=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 -I.
-I/home/gtqk84/local/include -D_XPG6 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-iquote. -I/usr/local/include -D_XPG4_2 -D__EXTENSIONS__
-D_POSIX_PTHREAD_SEMANTICS -L/home/gtqk84/local/lib
-I/home/gtqk84/local/include -I/home/gtqk84/local/include/ncurses -std=gnu99
-O2 -MT unvis.o -MD -MP -MF .d
eps/unvis.Tpo -c -o unvis.o `test -f 'compat/unvis.c' || echo
'./'`compat/unvis.c
mv -f .deps/unvis.Tpo .deps/unvis.Po
gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\"
-DPACKAGE_VERSION=\"1.8\" -DPACKAGE_STRING=\"tmux\ 1.8\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\"
-DVERSION=\"1.8\" -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_UNISTD_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1
-DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_TERM_H=1
-DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1 -DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=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 -I.
-I/home/gtqk84/local/include -D_XPG6 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
-iquote. -I/usr/local/include -D_XPG4_2 -D__EXTENSIONS__
-D_POSIX_PTHREAD_SEMANTICS -L/home/gtqk84/local/lib
-I/home/gtqk84/local/include -I/home/gtqk84/local/include/ncurses -std=gnu99
-O2 -MT strtonum.o -MD -MP -MF
.deps/strtonum.Tpo -c -o strtonum.o `test -f 'compat/strtonum.c' || echo
'./'`compat/strtonum.c
mv -f .deps/strtonum.Tpo .deps/strtonum.Po
gcc -L/home/gtqk84/local/lib -I/home/gtqk84/local/include
-I/home/gtqk84/local/include/ncurses -std=gnu99 -O2 -D_XPG6 -o tmux
arguments.o attributes.o cfg.o client.o clock.o cmd-attach-session.o
cmd-bind-key.o cmd-break-pane.o cmd-capture-pane.o cmd-choose-buffer.o
cmd-choose-client.o cmd-choose-list.o cmd-choose-tree.o cmd-clear-history.o
cmd-clock-mode.o cmd-command-prompt.o cmd-confirm-before.o cmd-copy-mode.o
cmd-delete-buffer.o cmd-detach-client.o cmd-display-message.o
cmd-display-panes.o cmd-find-window.o cmd-has-session.o cmd-if-shell.o
cmd-join-pane.o cmd-kill-pane.o cmd-kill-server.o cmd-kill-session.o
cmd-kill-window.o cmd-link-window.o cmd-list-buffers.o cmd-list-clients.o
cmd-list-commands.o cmd-list-keys.o cmd-list-panes.o cmd-list-sessions.o
cmd-list-windows.o cmd-list.o cmd-load-buffer.o cmd-lock-server.o
cmd-move-window.o cmd-new-session.o cmd-new-window.o cmd-paste-buffer.o
cmd-pipe-pane.o cmd-queue.o cmd-refresh-client.o cmd-rename-session.o
cmd-rename-window.
o cmd-resize-pane.o cmd-respawn-pane.o cmd-respawn-window.o
cmd-rotate-window.o cmd-run-shell.o cmd-save-buffer.o cmd-select-layout.o
cmd-select-pane.o cmd-select-window.o cmd-send-keys.o cmd-server-info.o
cmd-set-buffer.o cmd-set-environment.o cmd-set-option.o cmd-show-environment.o
cmd-show-messages.o cmd-show-options.o cmd-source-file.o cmd-split-window.o
cmd-start-server.o cmd-string.o cmd-suspend-client.o cmd-swap-pane.o
cmd-swap-window.o cmd-switch-client.o cmd-unbind-key.o cmd-unlink-window.o
cmd-wait-for.o cmd.o colour.o control.o control-notify.o environ.o format.o
grid-cell.o grid-view.o grid.o input-keys.o input.o job.o key-bindings.o
key-string.o layout-custom.o layout-set.o layout.o log.o mode-key.o names.o
notify.o options-table.o options.o paste.o resize.o screen-redraw.o
screen-write.o screen.o server-client.o server-fn.o server-window.o server.o
session.o signal.o status.o tmux.o tty-acs.o tty-keys.o tty-term.o tty.o utf8.o
window-choose.o window-clock.o window-copy
.o window.o xmalloc.o xterm-keys.o osdep-sunos.o forkpty-sunos.o imsg.o
imsg-buffer.o setenv.o asprintf.o fgetln.o getopt.o strcasestr.o strsep.o
vis.o unvis.o strtonum.o -lxnet -lcurses -L/home/gtqk84/local/lib -levent
-lrt -lresolv
server-client.o(.text+0x1200): In function `server_client_assume_paste':
: undefined reference to `timersub'
/home/gtqk84/local/lib/libevent.a(buffer.o)(.text+0x2344): In function
`evbuffer_write_atmost':
/home/gtqk84/tmp/tmp/libevent-2.0.21-stable/buffer.c:2324: undefined reference
to `sendfile'
collect2: ld returned 1 exit status
make: *** [tmux] Error 1
--------------------------------------
Some details of troubleshooting are here:
<http://forums.gentoo.org/viewtopic-p-7384432.html>
---
Sent from sourceforge.net because tmux-users@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/tmux/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users