Hi, I'm receiving the following error when running `./configure && make
2>&1` in OS X 10.7:
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
> checking for gawk... no
> checking for mawk... mawk
> checking whether make sets $(MAKE)... yes
> checking build system type... i686-apple-darwin11.4.0
> checking host system type... i686-apple-darwin11.4.0
> 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... /usr/bin/grep
> checking for egrep... /usr/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... yes
> checking for unistd.h... yes
> checking bitstring.h usability... yes
> checking bitstring.h presence... yes
> checking for bitstring.h... yes
> 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... yes
> checking for ncurses.h... yes
> checking ndir.h usability... no
> checking ndir.h presence... no
> checking for ndir.h... no
> checking paths.h usability... yes
> checking paths.h presence... yes
> checking for paths.h... yes
> checking pty.h usability... no
> checking pty.h presence... no
> checking for pty.h... no
> checking for stdint.h... (cached) yes
> checking sys/dir.h usability... yes
> checking sys/dir.h presence... yes
> checking for sys/dir.h... yes
> 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... yes
> checking util.h presence... yes
> checking for util.h... yes
> checking for gcc that whines about -I... yes
> checking for glibc... no
> checking for library containing clock_gettime... no
> checking for pkg-config... /usr/local/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... no
> checking for CMSG_DATA... yes
> checking for library containing imsg_init... no
> checking for library containing forkpty... none required
> checking for closefrom... no
> checking for daemon... yes
> checking for setenv... yes
> checking for strlcpy... yes
> checking for strlcat... yes
> checking for asprintf... yes
> checking for fgetln... yes
> checking for strcasestr... yes
> checking for strsep... yes
> checking for strtonum... no
> checking for strnvis... no
> checking for getopt... yes
> checking whether optarg is declared... yes
> checking whether optind is declared... yes
> checking whether optreset is declared... yes
> checking if system getopt should be avoided... no
> checking for bzero... yes
> checking for dirfd... no
> checking for setproctitle... no
> checking for sysconf... yes
> checking for BSD-style unsigned types... yes
> checking whether TAILQ_PREV is declared... yes
> checking whether TAILQ_REPLACE is declared... no
> checking for __progname... yes
> checking whether F_CLOSEM is declared... no
> checking for /proc/$$... no
> checking platform... darwin
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: executing depfiles commands
> 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_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_BITSTRING_H=1 -DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_NCURSES_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDINT_H=1
> -DHAVE_SYS_DIR_H=1 -DHAVE_TERM_H=1 -DHAVE_UTIL_H=1 -DHAVE_B64_NTOP=1
> -DHAVE_FORKPTY=1 -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_STRLCPY=1
> -DHAVE_STRLCAT=1 -DHAVE_ASPRINTF=1 -DHAVE_FGETLN=1 -DHAVE_STRCASESTR=1
> -DHAVE_STRSEP=1 -DHAVE_DECL_OPTARG=1 -DHAVE_DECL_OPTIND=1
> -DHAVE_DECL_OPTRESET=1 -DHAVE_GETOPT=1 -DHAVE_BZERO=1 -DHAVE_SYSCONF=1
> -DHAVE_BSD_TYPES=1 -DHAVE___PROGNAME=1 -DBROKEN_CMSG_FIRSTHDR=1 -I.
> -I/usr/local/Cellar/libevent/2.0.21/include -iquote.
> -I/usr/local/include -std=gnu99 -O2 -MT arguments.o -MD -MP -MF
> .deps/arguments.Tpo -c -o arguments.o arguments.c
> arguments.c: In function ‘args_parse’:
> arguments.c:64: error: ‘optreset’ undeclared (first use in this function)
> arguments.c:64: error: (Each undeclared identifier is reported only once
> arguments.c:64: error: for each function it appears in.)
> make: *** [arguments.o] Error 1
>
Initially I tried to compile it with Homebrew, it failed for the same
reason so I tried to compile tmux stable 1.8.2.
Once I comment out the arguments.c line #64:
//optreset = 1;
It seems to compile but it's obviously not solving the real problem.
I did some regression testing and this compiling issue starts on version
1.5.
Perhaps someone has an idea of what might be the issue?
Thanks,
Almog.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users