Discussion:
[rancid] Trouble compiling expect / expect hack
Adam Coven
2010-10-28 21:28:02 UTC
Permalink
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?

Thanks in advance,
Codefire
john heasley
2010-11-12 21:14:48 UTC
Permalink
Post by Adam Coven
I'm running CentOS 2.6.18-194.17.1.el5PAE
expect-5.43.0_hack.tar.bz2
tcl8.3.4.tar.gz
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: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.

Continue reading on narkive:
Loading...