Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Cannot compile expect-5.38 on Tru64Unix 5.1A

closed-out-of-date
nobody
None
5
2010-08-28
2003-06-04
Martin Mokrejs
No

Hi,
I have the following problem to compile expect on
OSF1. Please find below some warnings which might be
related to the problem. I use latest cc/cxx from vendor.

cc -c -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 -DDFLT_STTY="\"sane\"" expect.c
cc: Warning: expect.c, line 345: In this statement, the
referenced type of the pointer value
"parse.commandStart+parse.commandSize" is const, but
the referenced type of the target of this assignment is
not. (notconstqual)
next = parse.commandStart + parse.commandSize;
--------^

cc -c -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 -DDFLT_STTY="\"sane\"" pty_termios.c
cc: Warning: pty_termios.c, line 395: In this
statement, this argument to sprintf is of "int" type
and is not appropriate for the conversion specifier
"%s". The value will be formatted in an unintended
manner. (outstringtype)
sprintf(exp_pty_error,"grantpt(%s)
failed - likely reason is that your system
administrator (in a rage of blind passion to rid the
system of security holes) removed setuid from the
utility used internally by grantpt to change pty
permissions. Tell your system admin to reestablish
setuid on the utility. Get the utility name by running
Expect under truss or trace.", expErrnoMsg(errno));
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
cc: Warning: pty_termios.c, line 633: In this
statement, this argument to sprintf is of "int" type
and is not appropriate for the conversion specifier
"%s". The value will be formatted in an unintended
manner. (outstringtype)
sprintf(exp_pty_error,"open(%s,rw) = %d
(%s)",slave_name,slave,expErrnoMsg(errno));
-------------------------------------------------------------------------------^

cc -c -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 -DDFLT_STTY="\"sane\"" exp_glob.c
cc: Info: exp_glob.c, line 113: In this statement, the
return type for intrinsic "strlen" is being changed
from "size_t" to "int". (intrinsicint)
return(strlen(string)+match); /* DEL */
-----------------------^
if [ "xlibexpect5.38.a" != "xlibexpect5.38.a" ] ; then \ if [ ! -d shared ] ; then \ mkdir shared ; \ else true; fi ; \ cc -c -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 -DDFLT_STTY="\"sane\"" exp_glob.c
-o shared/exp_glob.o ; \ fi
cc -c -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 -DDFLT_STTY="\"sane\"" exp_win.c
cc: Warning: exp_win.c, line 81: Non-void function
"exp_window_size_set" does not contain a return
statement. (missingreturn)
int exp_window_size_set(fd)
^
cc: Warning: exp_win.c, line 92: Non-void function
"exp_window_size_get" does not contain a return
statement. (missingreturn)
int exp_window_size_get(fd)
^
cc: Warning: exp_win.c, line 143: Non-void function
"exp_win2_size_set" does not contain a return
statement. (missingreturn)
int exp_win2_size_set(fd)
^
cc: Warning: exp_win.c, line 154: Non-void function
"exp_win2_size_get" does not contain a return
statement. (missingreturn)
int exp_win2_size_get(fd)
^

cc -c -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1
-DTCL_WIDE_INT_IS_LONG=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_PW_GECOS=1 -I. -I. -I/mnt/tcl8.4.3/generic
-DEXP_VERSION=\"5.38.0\"
-DSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DEXECSCRIPTDIR=\"/software/@sys/usr/lib/expect5.38\"
-DTCL_DEBUGGER -DUSE_NON_CONST -O2 -arch ev56
-DHAVE_TZSET -std1 exp_main_tk.c
cc: Info: exp_main_tk.c, line 48: In the initializer
for tclDummyMathPtr, "matherr" of type "pointer to
function () returning int", is being converted to
"pointer to int". Such a cast is not permitted by the
standard. (nonstandcast)
int *tclDummyMathPtr = (int *) matherr;
-------------------------------^
cc: Info: exp_main_tk.c, line 194: In the initializer
for argTable[7].src, "optcmd_eval" of type "pointer to
function () returning int", is being converted to
"pointer to char". Such a cast is not permitted by the
standard. (nonstandcast)
{"-command", TK_ARGV_GENFUNC, (char *) optcmd_eval,
(char *)0,
-------------------------------------------^
cc: Info: exp_main_tk.c, line 196: In the initializer
for argTable[8].src, "optcmd_diagToStderr" of type
"pointer to function () returning int", is being
converted to "pointer to char". Such a cast is not
permitted by the standard. (nonstandcast)
{"-diag", TK_ARGV_CONSTANT, (char *)
optcmd_diagToStderr, (char *)0,
-----------------------------------------^
cc: Info: exp_main_tk.c, line 205: In the initializer
for argTable[12].src, "optcmd_debug" of type "pointer
to function () returning int", is being converted to
"pointer to char". Such a cast is not permitted by the
standard. (nonstandcast)
{"-Debug", TK_ARGV_GENFUNC, (char *) optcmd_debug,
(char *)0,
-----------------------------------------^
cc -O2 -arch ev56 -DHAVE_TZSET -std1 -o expectk
exp_main_tk.o libexpect5.38.a
-L/afs/gsf.de/sources/ev56/tk8.4.3/unix -ltk8.4
-L/mnt/tcl8.4.3/unix -ltcl8.4 -lX11 -L/usr/local/lib
-L/software/@sys/usr/lib -L/usr/local/openssl/lib
-L/usr/lib -lm
-Wl,-rpath,/software/@sys/usr/lib:/software/@sys/usr/lib
ld:
Unresolved:
matherr
make: *** [expectk] Error 1

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2010-08-28

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