The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problems installing expect utilty vikas027 Shell Programming and Scripting 5 07-06-2009 02:56 PM
Expect: Beginner help with spawn and expect Vryali Shell Programming and Scripting 1 05-21-2009 12:51 PM
strange expect script behavior, or am i misunderstanding expect scripting? v1k0d3n Shell Programming and Scripting 2 12-10-2008 04:31 PM
Expect and auto expect command arun_v Shell Programming and Scripting 0 03-29-2006 07:31 AM
Installing expect sounder123 Shell Programming and Scripting 1 10-26-2004 08:52 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2009
anaga anaga is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
Installing EXPECT on unix

Friends,

I thought of installing EXPECT but unable to execute 'make', its throwing errors. Am not a 'root' user, will I not be able to install EXPECT in my home directory?
  #2 (permalink)  
Old 06-17-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
What sort of errors is make throwing? Can you provide some examples?
  #3 (permalink)  
Old 06-18-2009
anaga anaga is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
Here is the error message!!

/export/home/tbnaadh/tcl/expect-5.43 $ make test

/opt/SUNWspro/WS6U2/bin/acc -c -I. -I. -I/qawac/home/tbnaadh/tcl/tcl8.5.7/generic -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/expor
t/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/export/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DTCL_DEBUGGER
-DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" exp_command.c
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclInt.h", line 66: warning: typedef redeclared: ptrdiff_t
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclPort.h", line 27: cannot find include file: "tclUnixPort.h"
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 98: syntax error before or at: *
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 98: syntax error before or at: *
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 98: warning: old-style declaration or incorrect type for: TclpRea
ddir
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 113: warning: dubious tag declaration: struct in_addr
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 394: syntax error before or at: Tcl_DirEntry
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclIntPlatDecls.h", line 394: cannot recover from previous errors
*** Error code 10
make: Fatal error: Command failed for target `exp_command.o'

Last edited by anaga; 06-18-2009 at 12:11 PM..
  #4 (permalink)  
Old 06-18-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
Where did you get the expect sources from? Is there a header (include file) named "tclUnixPort.h" on your system?
  #5 (permalink)  
Old 06-18-2009
anaga anaga is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
I downloaded the Expect from "http://expect.nist.gov/#unix.". I have the below said header file on my system.

/qawac/home/tbnaadh/tcl/tcl8.5.7/unix/tclUnixPort.h

Why isn't make could not figure out this header file.

---------- Post updated at 11:09 AM ---------- Previous update was at 09:02 AM ----------

Now getting a different error. i have added the absolute path in tclPort.h file as shown below
#if defined(__WIN32__)
# include "tclWinPort.h"
#else
# include "/export/home/tbnaadh/tcl/tcl8.5.7/unix/tclUnixPort.h"
#endif

Now i am getting the below error while "make"

/export/home/tbnaadh/tcl/expect-5.43 $ make

/opt/SUNWspro/WS6U2/bin/acc -c -I. -I. -I/qawac/home/tbnaadh/tcl/tcl8.5.7/generic -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/expor
t/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/export/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DTCL_DEBUGGER
-DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" exp_inter.c
"exp_inter.c", line 294: undefined symbol: TCL_REG_BOSONLY
"exp_inter.c", line 866: undefined symbol: TCL_REG_BOSONLY
*** Error code 2
make: Fatal error: Command failed for target `exp_inter.o'
  #6 (permalink)  
Old 06-20-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
That is the wrong way to include a header from a non-standard location.

You need to add a -I<path_to_location> option to the compiler.
  #7 (permalink)  
Old 06-23-2009
anaga anaga is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
fpmurphy,

I dont have much experience. Can you pleae make me understandable by the above statement. What should I run @ command prompt?
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0