[rancid] Trouble compiling expect / expect hack

john heasley heas at shrubbery.net
Fri Nov 12 21:14:48 UTC 2010


Thu, Oct 28, 2010 at 02:28:02PM -0700, Adam Coven:
> I'm running CentOS 2.6.18-194.17.1.el5PAE
> 
> I downloaded the files from the ftp site:
> expect-5.43.0_hack.tar.bz2
> tcl8.3.4.tar.gz
> 
> TCL compiled fine but when I try to compile expect I get:
> 
> exp_chan.c: In function ?ExpInputProc?:
> exp_chan.c:193: error: array type has incomplete element type
> exp_chan.c:204: error: ?POLLIN? undeclared (first use in this function)
> exp_chan.c:204: error: (Each undeclared identifier is reported only once
> exp_chan.c:204: error: for each function it appears in.)
> exp_chan.c:204: error: ?POLLERR? undeclared (first use in this function)
> exp_chan.c:204: error: ?POLLHUP? undeclared (first use in this function)
> exp_chan.c:204: error: ?POLLNVAL? undeclared (first use in this function)
> exp_chan.c: In function ?expWaitOnAny?:
> exp_chan.c:538: warning: passing argument 2 of ?waitpid? from incompatible 
> pointer type
> make: *** [exp_chan.o] Error 1
> 
> Has anyone come across this and / or knows how I could fix it?

this would be caused by a missing include.  i've updated the expect tar
file to explicitly add the include file in exp_chan.c; i didnt bother
to figure out why it worked when I created the tarfile but now fails on
linux.


More information about the Rancid-discuss mailing list