SR fails to build properly under recent versions of Linux. For Red Hat Linux 6.0: we have no fix for the following problem: tokens.c:20: initializer element for 'yyin' is not constant tokens.c:20: initializer element for 'yyout' is not constant For older versions of Linux: After unpacking the tar file, apply this patch before configuring and building SR. Just cd to the newly unpacked directory and run "patch _flags & (_S_NO_READS|_S_NO_WRITES)) != (_S_NO_READS|_S_NO_WRITES)) #define INCH(l,f) \ ! (((f->_gptr)<(f->_egptr))?(int)(*(char *)(f)->_gptr++):sr_inchar(l,f)) #define OUCH(l,f,c) \ ((((f->_pptr)-(f->_pbase))>0)?(*(f)->_pptr++=(c)):outchar(l,f,c)) --- 39,55 ---- #ifdef linux #define _pptr _IO_write_ptr #define _gptr _IO_read_ptr #define _egptr _IO_read_end #define _pbase _IO_write_base #define _S_NO_READS 4 /* Reading not allowed */ #define _S_NO_WRITES 8 /* Writing not allowd */ #define ISOPEN(f) \ (((f)->_flags & (_S_NO_READS|_S_NO_WRITES)) != (_S_NO_READS|_S_NO_WRITES)) #define INCH(l,f) \ ! (((f->_gptr)<(f->_egptr))?(int)(*(unsigned char *)(f)->_gptr++):sr_inchar(l,f)) #define OUCH(l,f,c) \ ((((f->_pptr)-(f->_pbase))>0)?(*(f)->_pptr++=(c)):outchar(l,f,c)) diff -r -c rts/socket.c rts/socket.c *** rts/socket.c Fri Dec 15 13:51:44 1995 --- rts/socket.c Fri Mar 27 09:57:07 1998 *************** *** 484,490 **** char s1[100], s2[100]; extern int sys_nerr; ! #if !defined(__NetBSD__) && !defined(__FreeBSD__) extern char *sys_errlist[]; #endif --- 484,490 ---- char s1[100], s2[100]; extern int sys_nerr; ! #if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__) extern char *sys_errlist[]; #endif