Hello fetchmail-team,
I tried to build fetchmail 5.9.7 on my Linux system (its details are below),
but the make broke with:
jan(_at_)odin:~/fetchmail/fetchmail-5.9.7$ make
expect conflicts: 2 shift/reduce
bison -y -d ./rcfile_y.y
conflicts: 2 shift/reduce
mv y.tab.c rcfile_y.c
mv -f y.tab.h rcfile_y.h
cd . # && /home/jan/fetchmail/fetchmail-5.9.7/missing autoheader
echo timestamp> ./stamp-h.in
gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -c -I. -I. -I.
/intl -I./intl -O rcfile_y.c
./rcfile_y.y: In function `yyparse':
./rcfile_y.y:347: parse error before `}'
./rcfile_y.y:373: parse error before `}'
make: *** [rcfile_y.o] Error 1
Fetchmail 5.9.6 builds fine however. The difference is in the file
rcfile_y.y:
jan(_at_)odin:~/fetchmail/fetchmail-5.9.7$ diff ../fetchmail-5.9.6/rcfile_y.y
rcfile_y.y|less
341c341,347
< | SSL {current.use_ssl = FLAG_TRUE;}
---
| SSL {
#ifdef SSL_ENABLE
current.use_ssl = FLAG_TRUE;
#else
yyerror(GT_("SSL is not enabled"))
#endif
}
361c367,373
< | NO SSL {current.use_ssl = FLAG_FALSE;}
---
| NO SSL {
#ifdef SSL_ENABLE
current.use_ssl = FLAG_FALSE;
#else
yyerror(GT_("SSL is not enabled"))
#endif
}
Swapping the file between both versions lets 5.9.6 break and 5.9.7 succeed
in building (I am no expert in yacc code :-)
I used:
- bison 1.33 of Feb 7, 2002 (ftp://ftp.gnu.org/gnu/bison/bison-1.33.tar.gz)
- flex 2.5.4a (ftp://ftp.nluug.nl/pub/gnu/flex/flex-2.5.4a.tar.gz)
NOTE: when using bison 1.30 (Oct 29, 2001), fetchmail 5.9.7 builds ok. So:
which one is faulty: fetchmail 5.9.7 or bison 1.33?
My system details are (for as far as relevant to this problem):
1. Your operating system.
jan(_at_)odin:~/fetchmail/fetchmail-5.9.7$ uname -a
Linux odin 2.2.15 #1 Thu Jun 1 10:47:16 EST 2000 i686 unknown
2. Your compiler version, if you built from source; otherwise, the name and
origin ogf the RPM or other binary package you installed.
jan(_at_)odin:~/fetchmail/fetchmail-5.9.7$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011006 (Debian prerelease)
3. A copy of your POP or IMAP server's greeting line.
n.a.
4. The name and version of the SMTP listener or MDA you are forwarding to.
n.a.
5. Any command-line options you used.
The problem occurs with and without options to configure; I originally used:
./configure --prefix=/usr/local/fetchmail --exec-prefix=/usr/local/fetchmail
--enable-fallback=no
--disable-IMAP --disable-ETRN --disable-ODMR
6. The output of fetchmail -V called with whatever other command-line
options you used.
jan(_at_)odin:~/fetchmail/fetchmail-5.9.6$ ./fetchmail -V
This is fetchmail release 5.9.6+NLS
Linux odin 2.2.15 #1 Thu Jun 1 10:47:16 EST 2000 i686 unknown
Taking options from command line
No mailservers set up -- perhaps /home/jan/.fetchmailrc is missing?
jan(_at_)odin:~/fetchmail/fetchmail-5.9.7$ ./fetchmail -V
This is fetchmail release 5.9.7+NLS
Linux odin 2.2.15 #1 Thu Jun 1 10:47:16 EST 2000 i686 unknown
Taking options from command line
No mailservers set up -- perhaps /home/jan/.fetchmailrc is missing?
Cheers,
Jan Stap
Atos Origin Managed Services, Messaging
Building VN-521
Eindhoven, the Netherlands
E-mail: Jan(_dot_)Stap(_at_)atosorigin(_dot_)com