View previous topic :: View next topic |
Author |
Message |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 6:54 am Post subject: tmux - compilation |
|
|
Hi,
I post here since gentoo is all about compilation and I have some problems with compiling tmux (libevent and ncurses) on SunOS 5.9 without root.
Code: | # uname -a
SunOS kronos 5.9 Generic_118558-35 sun4u sparc SUNW,Sun-Fire-480R |
So first thing first I compile libevent:
Code: | tar xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=$HOME/local --disable-shared
make && make install |
log from configure: http://pastebin.com/WkVqKwNu
log from make: http://pastebin.com/pVynEmn1
log from make install: http://pastebin.com/zGG66c8P
then ncurses:
Code: | tar xvzf ncurses-5.9.tar.gz
cd ncurses-5.9
./configure --prefix=$HOME/local
make && make install |
log from configure: http://pastebin.com/HeFtSNu5
log from make: http://pastebin.com/Fci92jCd
log from make install: http://pastebin.com/C1iB9eGN
And finally i run configure for tmux:
Code: | tar xvzf tmux-1.8.tar.gz
cd tmux-1.8
./configure CFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-L$HOME/local/lib -L$HOME/local/include/ncurses -L$HOME/local/include" |
and it failed no ncurses and no libevent were found:
Code: | ...
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 for LIBEVENT... no
checking for library containing event_init... no
configure: error: "libevent not found" |
log from configure: http://pastebin.com/YtKkGHXm
What is wrong? Any ideas? |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1219
|
Posted: Thu Aug 29, 2013 7:22 am Post subject: Re: tmux - compilation |
|
|
Does it work if you put -L$HOME/local/lib in your CFLAGS? _________________ Hello 911? How are you? |
|
Back to top |
|
 |
VoidMage Watchman


Joined: 14 Oct 2006 Posts: 6193
|
Posted: Thu Aug 29, 2013 7:53 am Post subject: |
|
|
What about config.log from tmux ? |
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 8:02 am Post subject: Re: tmux - compilation |
|
|
massimo wrote: | Does it work if you put -L$HOME/local/lib in your CFLAGS? |
No...
Code: | [# ~/tmp/tmp/tmux-1.8 ] ./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"
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... no
checking for library containing event_init... no
configure: error: "libevent not found" |
|
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
|
Back to top |
|
 |
franzf Advocate


Joined: 29 Mar 2005 Posts: 4357
|
Posted: Thu Aug 29, 2013 8:28 am Post subject: |
|
|
Code: | Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable |
|
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 9:28 am Post subject: |
|
|
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] ls -la /home/gtqk84/local/lib/pkgconfig
total 8
drwxrwxr-x 2 gtqk84 zpl02cu02 96 Aug 29 08:31 ./
drwxrwxr-x 3 gtqk84 zpl02cu02 1024 Aug 29 08:45 ../
-rw-r--r-- 1 gtqk84 zpl02cu02 376 Aug 29 08:31 libevent.pc
-rw-r--r-- 1 gtqk84 zpl02cu02 416 Aug 29 08:31 libevent_openssl.pc
-rw-r--r-- 1 gtqk84 zpl02cu02 435 Aug 29 08:31 libevent_pthreads.pc
[gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] echo $PKG_CONFIG_PATH
PKG_CONFIG_PATH: Undefined variable. |
I will try define variable and configure tmux once more |
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 9:38 am Post subject: |
|
|
no luck...
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] set PKG_CONFIG_PATH=/home/gtqk84/local/lib/pkgconfig
[gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] echo $PKG_CONFIG_PATH
/home/gtqk84/local/lib/pkgconfig
[gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] ./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"
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... no
checking for library containing event_init... no
configure: error: "libevent not found" |
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] grep PKG_CONFIG_PATH -A 10 -B 10 config.log
configure:4651: checking for pkg-config
configure:4669: found /tools/bin/pkg-config
configure:4681: result: /tools/bin/pkg-config
configure:4706: checking pkg-config is at least version 0.9.0
configure:4709: result: yes
configure:4719: checking for LIBEVENT
configure:4726: $PKG_CONFIG --exists --print-errors "libevent"
sh: gnome-config: not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent' found
configure:4729: $? = 1
configure:4743: $PKG_CONFIG --exists --print-errors "libevent"
sh: gnome-config: not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent' found
configure:4746: $? = 1
configure:4760: result: no
sh: gnome-config: not found
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libevent' found
configure:4777: checking for library containing event_init
configure:4808: gcc -o conftest -L/home/gtqk84/local/lib -I/home/gtqk84/local/include -I/home/gtqk84/local/include/ncurses -L/home/gtqk84/local/lib -L/home/gtqk84/local/include/ncurses -L/home/gtqk84/local/include conftest.c -lrt >&5
/var/tmp//ccqiQe1H.o(.text+0x4): In function `main':
: undefined reference to `event_init'
collect2: ld returned 1 exit status
configure:4808: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tmux"
--
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/gtqk84/local/lib -L/home/gtqk84/local/include/ncurses -L/home/gtqk84/local/include'
ac_cv_env_LIBEVENT_CFLAGS_set=
ac_cv_env_LIBEVENT_CFLAGS_value=
ac_cv_env_LIBEVENT_LIBS_set=
ac_cv_env_LIBEVENT_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_bitstring_h=no
ac_cv_header_curses_h=yes
--
PACKAGE='tmux'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='tmux'
PACKAGE_STRING='tmux 1.8'
PACKAGE_TARNAME='tmux'
PACKAGE_URL=''
PACKAGE_VERSION='1.8'
PATH_SEPARATOR=':'
PKG_CONFIG='/tools/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PLATFORM=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='1.8'
XOPEN_DEFINES=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#' |
Maybe setting variable do not apply to configure script? |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1219
|
Posted: Thu Aug 29, 2013 10:34 am Post subject: |
|
|
Use export and not set:
Code: | export PKG_CONFIG_PATH=/home/gtqk84/local/lib/pkgconfig |
_________________ Hello 911? How are you? |
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 10:43 am Post subject: |
|
|
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] echo $SHELL
/usr/local/bin/tcsh
[gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] export PKG_CONFIG_PATH=/home/gtqk84/local/lib/pkgconfig
export: Command not found. |
so I did:
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] setenv PKG_CONFIG_PATH /home/gtqk84/local/lib/pkgconfig
[gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] env | grep CONFIG
PKG_CONFIG_PATH=/home/gtqk84/local/lib/pkgconfig |
and configure looks better:
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] ./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"
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 |
but:
Code: | [gtqk84@plkraaa-kronos ~/tmp/tmp/tmux-1.8 ] 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_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 arguments.o -MD -MP -MF .deps/arguments.Tpo -c -o arguments.o arguments.c
mv -f .deps/arguments.Tpo .deps/arguments.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_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 attributes.o -MD -MP -MF .deps/attributes.Tpo -c -o attributes.o attributes.c
mv -f .deps/attributes.Tpo .deps/attributes.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_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 cfg.o -MD -MP -MF .deps/cfg.Tpo -c -o cfg.o cfg.c
mv -f .deps/cfg.Tpo .deps/cfg.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_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 client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c
client.c: In function 'client_get_lock':
client.c:81: warning: implicit declaration of function 'flock'
client.c:81: error: 'LOCK_EX' undeclared (first use in this function)
client.c:81: error: (Each undeclared identifier is reported only once
client.c:81: error: for each function it appears in.)
client.c:81: error: 'LOCK_NB' undeclared (first use in this function)
client.c: In function 'client_main':
client.c:247: warning: implicit declaration of function 'cfmakeraw'
make: *** [client.o] Error 1 |
Ne config.log:
http://pastebin.com/tCYVH6Yu |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1219
|
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 11:57 am Post subject: |
|
|
make goes better but sitill I get error:
Code: | ...
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 -MP -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 |
|
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 5272 Location: Removed by Neddy
|
Posted: Thu Aug 29, 2013 12:18 pm Post subject: |
|
|
Not actually gentoo..
a google and the 2nd hit gives: http://blog.simplex-one.com/?p=103 _________________ The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king |
|
Back to top |
|
 |
emc Guru


Joined: 02 Jul 2004 Posts: 530 Location: Cracow, Poland
|
Posted: Thu Aug 29, 2013 12:18 pm Post subject: |
|
|
found some patch:
http://sourceforge.net/p/tmux/tickets/38/
it helps but again diffren error:
Code: | 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 |
|
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 9802 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Aug 29, 2013 1:35 pm Post subject: |
|
|
Moved from Portage & Programming to Off the Wall. Not about Gentoo so it fits better here.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
|