app-misc/tmux-1.8 fails to build on OS X (10.6) like this: i686-apple-darwin10-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/Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8 -iquote. -O2 -march=nocona -pipe -std=gnu99 -O2 -c /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c: In function 'osdep_get_name': /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c:36: error: storage size of 'bsdinfo' isn't known /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c:43: error: 'PROC_PIDT_SHORTBSDINFO' undeclared (first use in this function) /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c:43: error: (Each undeclared identifier is reported only once /Users/tetsushi/Gentoo/var/tmp/portage/app-misc/tmux-1.8/work/tmux-1.8/osdep-darwin.c:43: error: for each function it appears in.) make: *** [osdep-darwin.o] Error 1 make: *** Waiting for unfinished jobs.... This problem is known in upstream: http://sourceforge.net/mailarchive/message.php?msg_id=30653600 So, this bug is for request to apply a patch from MacPorts, which is mentioned on the thread above, until the next release will include a fix of this issue.
Created attachment 344616 [details, diff] osdep-darwin.c.diff From MacPorts: https://trac.macports.org/attachment/ticket/38588/osdep-darwin.c.diff
Created attachment 344618 [details, diff] ebuild diff
Confirmed working
Now that tmux-1.8 has been removed and tmux-1.9a works well on OS X here on my computer, I think this bug can be closed :)
thanks!