From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079336919232.tru64-unix-managers.marc@archive.invalid> From: Adel Kamal Date: Sat, 05 Feb 2000 10:37:01 +0000 To: tru64-unix-managers Subject: Using vdump with a tape library X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079336919232 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01BF6FC4.EFC391B0" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BF6FC4.EFC391B0 Content-Type: text/plain; charset="iso-8859-1" Hi, I've read in one of the messages that I can do vdump automatically (with no human intervention), and that is by using Tcl, Tk and expect. I am using Digital UNIX 4.0D . I was able to install Tcl and Tk 8.0 successfully. I've already downloaded expect 5.31 (could not find 5.29 or 5.30) I was able to create the file "Makefile" after excecuting "./configure" but when I am trying to build expect usig "make" or "make expect" commant I get the following errors # make cc -c -I. -I. -I/usr/local/src/tcl8.0.5/generic -I/usr/local/src/tk8.0.5/generi c -DEXP_VERSION=\"5.31.2\" -DSCRIPTDIR=\"/usr/local/lib/expect5.31\" -DEXECS CRIPTDIR=\"/usr/local/lib/expect5.31\" -DTCL_DEBUGGER -DDFLT_STTY="\"sane\"" exp_command.c cc: Error: exp_command.c, line 142: Missing ";". (nosemi) static Tcl_ThreadDataKey dataKey; -------------------------^ cc: Error: exp_command.c, line 1448: In this declaration, "Tcl_UniChar" must spe cify a type. (badparsedecl) Tcl_UniChar ch; ----^ cc: Error: exp_command.h, line 79: In the declaration of "name", "TCL_INTEGER_SP ACE" is not declared. (undeclared) char name[EXP_CHANNELNAMELEN+1]; /* expect and interact set variables --------------^ cc: Warning: exp_command.c, line 1819: In this statement, "Tcl_GetString(...)" o f type "int", is being converted to "pointer to signed char". (cvtdiftypes) name = Tcl_GetString(objv[j]); --------^ cc: Warning: exp_command.c, line 1830: In this statement, "Tcl_GetString(...)" o f type "int", is being converted to "pointer to signed char". (cvtdiftypes) chanName = Tcl_GetString(objv[j]); ----------------^ cc: Warning: exp_command.c, line 2267: In this statement, "Tcl_GetString(...)" o f type "int", is being converted to "pointer to signed char". (cvtdiftypes) chanName = Tcl_GetString(*objv); ------------^ *** Exit 1 Stop. Not being a c expert, I'm not sure hoe to correct this. Help will be appreciated. Note: in the www.scriptics.com site there is an article about expect 5.29 only working with Tcl/Tk 8.0 and expect 5.31 working with Tcl/Tk 8.2 Thanks Adel K. F. Tadros Sr. System Engineer - Computer Network System P.O. Box 52137 Dubai - United Arab Emirates Tel.: +971 4 3378822 Fax.: +971 4 3374753 Mobile: +971 50 6590325 ------_=_NextPart_001_01BF6FC4.EFC391B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Using vdump with a tape library

Hi,

I've read in one of the messages that = I can do vdump automatically (with no human intervention), and that is = by using Tcl, Tk and expect.


I am using Digital UNIX 4.0D .
I was able to install Tcl and Tk 8.0 = successfully.
I've already downloaded expect 5.31 = (could not find 5.29 or 5.30) I was able to create the file = "Makefile" after excecuting "./configure" but when = I am trying to build expect usig "make" or "make = expect" commant I get the following errors

# make
cc -c  -I. -I. = -I/usr/local/src/tcl8.0.5/generic = -I/usr/local/src/tk8.0.5/generi
c   = -DEXP_VERSION=3D\"5.31.2\"  = -DSCRIPTDIR=3D\"/usr/local/lib/expect5.31\"  = -DEXECS
CRIPTDIR=3D\"/usr/local/lib/expect5.31\" = -DTCL_DEBUGGER  = -DDFLT_STTY=3D"\"sane\""
exp_command.c
cc: Error: exp_command.c, line 142: = Missing ";". (nosemi)
static Tcl_ThreadDataKey = dataKey;
-------------------------^
cc: Error: exp_command.c, line 1448: = In this declaration, "Tcl_UniChar" must spe
cify a type. (badparsedecl)
    Tcl_UniChar = ch;
----^
cc: Error: exp_command.h, line 79: = In the declaration of "name", "TCL_INTEGER_SP
ACE" is not declared. = (undeclared)
    char = name[EXP_CHANNELNAMELEN+1]; /* expect and interact set variables
--------------^
cc: Warning: exp_command.c, line = 1819: In this statement, "Tcl_GetString(...)" o
f type "int", is being = converted to "pointer to signed char". (cvtdiftypes)
        name =3D = Tcl_GetString(objv[j]);
--------^
cc: Warning: exp_command.c, line = 1830: In this statement, "Tcl_GetString(...)" o
f type "int", is being = converted to "pointer to signed char". (cvtdiftypes)
         &n= bsp;      chanName =3D = Tcl_GetString(objv[j]);
----------------^
cc: Warning: exp_command.c, line = 2267: In this statement, "Tcl_GetString(...)" o
f type "int", is being = converted to "pointer to signed char". (cvtdiftypes)
         &n= bsp;  chanName =3D Tcl_GetString(*objv);
------------^
*** Exit 1
Stop.

Not being a c expert, I'm not sure = hoe to correct this.
Help will be appreciated.

Note:
in the www.scriptics.com site there = is an article about expect 5.29 only working with Tcl/Tk 8.0 and expect = 5.31 working with Tcl/Tk 8.2

Thanks


Adel K. F. Tadros
Sr. System Engineer - Computer = Network System
P.O. Box 52137 Dubai - United Arab = Emirates
Tel.: +971 4 3378822  Fax.: = +971 4 3374753
Mobile:  +971 50 6590325



------_=_NextPart_001_01BF6FC4.EFC391B0--