Hi,
I have installed expect on solaris 10 OS. But when i build it with make i am getting below errors and warnings.
root@uspes-avsias10 /root/expect/expect5.45>make expect
gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" -DPACKAGE_BUGREPORT=\"\" -DBUILD_expect= -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 -DWORDS_BIGENDIAN=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DMODULE_SCOPE=extern -DNO_VIZ= -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_VARARGS_H=1 -DHAVE_STROPTS_H=1 -DHAVE_SYSCONF_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_PTEM_H=1 -DHAVE_STRREDIR_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DSOLARIS=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=64 -DSELECT_MASK_TYPE=fd_set -DREARM_SIG=1 -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DHAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H=1 -DHAVE_TIOCGWINSZ_IN_TERMIOS_H=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/usr/sfw/lib/expect5.45\" -DEXECSCRIPTDIR=\"/usr/sfw/lib/expect5.45\" -DSTTY_BIN=\"/usr/local/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/root/expect/tcl/tcl8.3.0/generic" -I"/root/expect/tcl/tcl8.3.0/unix" -pipe -O2 -Wall -fPIC -c echo exp_command.c
-o exp_command.o
exp_command.c: In function Exp_SpawnObjCmd':
exp_command.c:587: warning: unused variable
ttyfd'
exp_command.c: In function Exp_ConfigureObjCmd':
exp_command.c:2538: error: syntax error before "char"
exp_command.c:2536: warning: unused variable
i'
exp_command.c:2536: warning: unused variable opt'
exp_command.c:2536: warning: unused variable
val'
exp_command.c: At top level:
exp_command.c:2545: error: syntax error before "if"
exp_command.c:2560: warning: type defaults to int' in declaration of
exp_strict_write'
exp_command.c:2560: error: val' undeclared here (not in a function)
exp_command.c:2560: warning: data definition has no type or storage class
exp_command.c:2561: error: syntax error before "break"
exp_command.c: In function
Exp_StraceObjCmd':
exp_command.c:2736: warning: implicit declaration of function Tcl_CreateObjTrace'
exp_command.c:2738: warning: assignment makes pointer from integer without a cast
exp_command.c: In function
Exp_DisconnectObjCmd':
exp_command.c:3120: warning: unused variable ttyfd'
exp_command.c: At top level:
exp_command.c:538: warning: 'expSetpgrp' defined but not used
*** Error code 1
make: Fatal error: Command failed for target
exp_command.o'
Please, resolve this bug asap.
Thanks