#73 exp_command.c compile errors in cvs head

closed-out-of-date
nobody
None
5
2010-08-28
2010-04-07
Larry W. Virden
No

sparc solaris 8, sun c compiler,
tcl 8.6 cvs head, expect cvs head downloaded from activestate ftp site Apr 7, 2010

I am getting the following problems:
/opt/SUNWspro/bin/cc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPA
CKAGE_VERSION=\"5.44.1.15\" -DPACKAGE_STRING=\"expect\ 5.44.1.15\" -DPACKAGE_BUG
REPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STD
LIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_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 -DTCL_WIDE_INT_TYP
E=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DH
AVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHA
VE_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_LOC
ALTIME_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_SIGL
ONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=64 -DSELECT_MASK_TYPE=fd_set -DR
EARM_SIG=1 -DHAVE_PTMX=1 -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_SGTTYB=1 -DHAVE_TER
MIO=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=\"/projects/sprs_lwv/tcl86/lib/expect5
.44.1.15\" -DEXECSCRIPTDIR=\"/projects/sprs_lwv/tcl86/lib/expect5.44.1.15\" -DST
TY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I".." -I"/vol/tclsrcsol/tcl86/t
cl/generic" -I"/vol/tclsrcsol/tcl86/tcl/unix" -I"/vol/tclsrcsol/tcl86/tk/generic
" -KPIC -c `echo ../exp_command.c` -o exp_command.o
"/usr/include/limits.h", line 236: warning: macro redefined: LLONG_MIN
"/usr/include/limits.h", line 237: warning: macro redefined: LLONG_MAX
"/usr/include/varargs.h", line 69: warning: macro redefined: va_start
"/usr/include/varargs.h", line 86: warning: macro redefined: va_end
"../expect.h", line 416: syntax error before or at: (
"../expect.h", line 416: warning: syntax error: empty declaration
"../expect.h", line 418: syntax error before or at: (
"../expect.h", line 418: warning: syntax error: empty declaration
"../exp_command.c", line 176: warning: argument mismatch
cc: acomp failed for ../exp_command.c

Discussion

  • I attempted to build the latest expect CVS head. The errors I get today are:
    "/usr/include/varargs.h", line 69: warning: macro redefined: va_start
    "/usr/include/varargs.h", line 86: warning: macro redefined: va_end
    "../expect.h", line 416: syntax error before or at: (
    "../expect.h", line 416: warning: syntax error: empty declaration
    "../expect.h", line 418: syntax error before or at: (
    "../expect.h", line 418: warning: syntax error: empty declaration
    "../exp_command.c", line 176: warning: argument mismatch
    cc: acomp failed for ../exp_command.c
    gmake: *** [exp_command.o] Error 2

    This is an attempt to build the expect 6/09 CVS head against the Tcl 8.6 CVS head as of 6/21

     
  • Larry, the HEAD of expect is currently undergoing ANSIfication efforts, and not in a workable state.
    The contact for this effort is eee /at/ users /dot/ sourceforge /dot/ net

     
  • Today, July 1, 2010, using the latest tcl 8.6 and expect cvs head provided by ActiveState, expect completed compilation and the test suite ran successfully.

     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

    • status: open --> closed-out-of-date