LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot compile ircII on Slackware (https://www.linuxquestions.org/questions/linux-software-2/cannot-compile-ircii-on-slackware-712103/)

SentralOrigin 03-16-2009 08:03 PM

[SOLVED] Cannot compile ircII on Slackware
 
Slackware 12.0

I just downloaded the package (http://www.irchelp.org/irchelp/ircii/ircii-2.8.2.tar.gz), untar'd it and did ./configure which worked well then make, but it gives me this error:

Code:

make[1]: Entering directory `/home/sentralorigin/ircii-2.8.2/source'
gcc -g -O -DHAVE_CONFIG_H  -I../include -c term.c
term.c: In function 'term_init':
term.c:476: error: 'ICANON' undeclared (first use in this function)
term.c:476: error: (Each undeclared identifier is reported only once
term.c:476: error: for each function it appears in.)
term.c:476: error: 'ECHO' undeclared (first use in this function)
term.c:479: error: 'VMIN' undeclared (first use in this function)
term.c:480: error: 'VTIME' undeclared (first use in this function)
term.c:485: error: 'VQUIT' undeclared (first use in this function)
term.c:495: error: 'IXON' undeclared (first use in this function)
term.c: In function 'term_eight_bit':
term.c:866: error: 'CSIZE' undeclared (first use in this function)
term.c:866: error: 'CS8' undeclared (first use in this function)
term.c: In function 'set_term_eight_bit':
term.c:880: error: 'CS8' undeclared (first use in this function)
term.c:881: error: 'ISTRIP' undeclared (first use in this function)
make[1]: *** [term.o] Error 1
make[1]: Leaving directory `/home/sentralorigin/ircii-2.8.2/source'
make: *** [irc] Error 2


weibullguy 03-16-2009 08:16 PM

Try executing this and then execute make again.
Code:

sed -i '/irc.h/ a\#include <termios.h>\' source/term.c

SentralOrigin 03-16-2009 08:30 PM

Thanks, that worked, but I'm wondering what exactly did it do?

weibullguy 03-17-2009 04:34 AM

All those variables that are undeclared are declared in termios.h. The sed simply added #include <termios.h> term.c so those variables would be defined. When you work with ancient software like ircii-2.8.2, you gotta expect issues.

SentralOrigin 10-14-2009 10:49 AM

What does this mean?
Code:

sed: 1: "source/term.c": unterminated substitute pattern


All times are GMT -5. The time now is 01:08 AM.