Hi,

tmux 1.8 failed with an error when I did a "#make" on Solaris. The bug and
it's minor fix are given below. I have also attached the patch in this mail.

Bug:
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_CURSES_H=1
-DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_PATHS_H=1
-DHAVE_STDINT_H=1 -DHAVE_SYS_TREE_H=1 -DHAVE_B64_NTOP=1 -DHAVE_LIBXNET=1
-DHAVE_CLOSEFROM=1 -DHAVE_DAEMON=1 -DHAVE_SETENV=1 -DHAVE_STRLCPY=1
-DHAVE_STRLCAT=1 -DHAVE_ASPRINTF=1 -DHAVE_STRCASESTR=1 -DHAVE_STRSEP=1
-DHAVE_DECL_OPTARG=0 -DHAVE_DECL_OPTIND=0 -DHAVE_DECL_OPTRESET=0
-DHAVE_BZERO=1 -DHAVE_DIRFD=1 -DHAVE_SYSCONF=1 -DHAVE___PROGNAME=1
-DHAVE_PROC_PID=1 -I. -I /opt/libevent-2.0.21-stable/include -D_XPG6
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -iquote. -I/usr/local/include
-D_XPG4_2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS -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_check_resize’:
server-client.c:544:7: error: ‘errno’ undeclared (first use in this
function)
server-client.c:544:7: note: each undeclared identifier is reported only
once for each function it appears in
server-client.c:544:16: error: ‘EINVAL’ undeclared (first use in this
function)
*** Error code 1
make: Fatal error: Command failed for target `server-client.o’

Fix:
Include the header file errno.h in the source file server-client.c

Thanks,
Swaroop

Attachment: tmux-1.8_solaris.patch
Description: Binary data

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to