fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]fetchmail 5.7.4: build problems continue

2001-03-13 00:29:46
hmh(_at_)debian(_dot_)org writes:
On Mon, 12 Mar 2001, Steve VanDevender wrote:
fetchmail 5.7.4, like fetchmail 5.7.2, generates a Makefile that
contains dependencies on the nonexistent aclocal.m4.  I don't really see

aclocal.m4 should be distributed in the .tar.gz, maybe there's a bug in the
makefiles or something like that, which keeps deleting it.

The tarball should have aclocal.m4 (for dependency purposes), and configure
already generated.

The fetchmail 5.7.4 tarball does not contain aclocal.m4.  configure has
already been generated and has a later timestamp than configure.in.

why I should have to install GNU autoconf just to build fetchmail; no

5.7.4 is supposed to try to detect if autoconf, aclocal and autoheader are
available, and disable them if not.

However, if autoconf IS installed, aclocal is NOT (i.e. automake is not
installed), and aclocal.m4 is missing, this WILL break the build. Does that
describe what happened to you?

I have installed no components of autoconf whatsoever.  Early in the
configure process, these items are reported:

checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing

fetchmail 5.7.4 also seems dead-set on trying to build with inet6
support even if I pass the configure option "--disable-inet6".  By
default it tries to enable inet6 support; with "--disable-inet6"
configure bonks out with:

Hmm... that does not happen here. And reading configure.in (and configure,
just in case), it is not supposed to either. Broken configure (i.e. broken
autoconf), perhaps?

(as I said, I am not using Eric's configure, but rather the one generated by
autoconf in a Debian unstable system, from Eric's configure.in) so someone
using the configure script in the .tar.gz will need to test this.

It looks like this may be an interaction between the libc5 headers and
the Linux kernel headers (I have 2.2.19pre16).  This error appears when
compiling ipv6-connect.c:

gcc -DHAVE_CONFIG_H  -DLOCALEDIR=\"/usr/local/share/locale\" -c  -I. -I. 
-I../intl -I./intl -I/usr/local/ssl/include -O2 -fomit-frame-pointer 
-fno-strength-reduce -m486 -malign-jumps=2 -malign-loops=2 -malign-functions=2 
-pipe ipv6-connect.c
ipv6-connect.c: In function `sa_len':
ipv6-connect.c:36: sizeof applied to an incomplete type
make: *** [ipv6-connect.o] Error 1

It looks like the libc5 kernel headers manage to pull in enough to get
AF_INET6 defined (from linux/socket.h) but not struck sockaddr_in6
(which is defined in linux/in6.h, which is not included via
sys/socket.h).

Perhaps the #ifdef AF_INET6 checks should be wrapped in #ifdef
INET6_ENABLE?  It actually looks like configure is doing the right thing
here, as config.h contains:

/* Define if you want IPv6 support compiled in */
/* #undef INET6_ENABLE */