FTBFS: autoconf bug?

Bug #12960 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
apache2 (Debian)
Fix Released
Unknown
apache2 (Ubuntu)
Invalid
High
Thom May

Bug Description

Automatically imported from Debian bug report #295428 http://bugs.debian.org/295428

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #295428 http://bugs.debian.org/295428

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (4.6 KiB)

Message-ID: <email address hidden>
Date: Tue, 15 Feb 2005 19:07:55 +0000
From: Martin Orr <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: FTBFS: autoconf bug?

Package: apache2
Severity: serious
Justification: no longer builds from source

I have built recently built versions 2.0.53-{1,2,3} of apache2 successfully.
However version 2.0.53-4 fails, the output ending with:
checking whether we are using GNU C... yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for external PCRE library...
/home/l4545/src/henry-packages/apache2/apache2-2.0.53-4.henry.1/build-tree/apache2/configure:
line 2675: syntax error near unexpected token AC_LANG_PROGRAM'
/home/l4545/src/henry-packages/apache2/apache2-2.0.53-4.henry.1/build-tree/apache2/configure:
line 2675: AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <pcre.h>]],'
make[1]: Entering directory
/home/l4545/src/henry-packages/apache2/apache2-2.0.53-4.henry.1/build-tree/apache2-build/prefork'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory
/home/l4545/src/henry-packages/apache2/apache2-2.0.53-4.henry.1/build-tree/apache2-build/prefork'
touch debian/stampdir/build-mpms

(In fact, a similar error occurs when running configure for every MPM, but
these errors do not lead to make exiting since the various steps in
configuring/building each MPM are chained together with ; instead of &&).

I include the full output of buildconf since I think the undefined macro
AC_LANG_PROGRAM is relevant:
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: libtool version 1.5.6 (ok)
Copying libtool helper files ...
buildconf: Using libtool.m4 at /usr/share/aclocal/libtool.m4.
Creating include/arch/unix/apr_private.h.in ...
autoheader2.50: WARNING: Using auxiliary files such as acconfig.h',
config.h.bot'
autoheader2.50: WARNING: and config.h.top', to define templates for
config.h.in'
autoheader2.50: WARNING: is deprecated and discouraged.
autoheader2.50:
autoheader2.50: WARNING: Using the third argument of AC_DEFINE' and
autoheader2.50: WARNING: AC_DEFINE_UNQUOTED' allows to define a template
without
autoheader2.50: WARNING: acconfig.h':
autoheader2.50:
autoheader2.50: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader2.50: [Define if a function main' is needed.])
autoheader2.50:
autoheader2.50: WARNING: More sophisticated templates can also be produced,
see the
autoheader2.50: WARNING: documentation.
Creating configure ...
rebuilding rpm spec file
rebuilding srclib/apr-util/configure

Looking for apr source in ../apr
Creating include/private/apu_config.h ...
Creating configure ...
Invoking xml/expat/buildconf.sh ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Copying libtool helper files ...
Creating config.h.in ...
autoheader2.50: WARNING: Using auxiliary files such as acconfig.h',
config.h.bot'
autoheader2.50: WARNING: and config.h.top', to define templates for
config.h.in'
autoheader2.50: WARNING: is deprecated and discouraged.
autoheader2.50:
autoheader2.50: ...

Read more...

Revision history for this message
In , Adam Conrad (adconrad) wrote : Re: Bug#295428: FTBFS: autoconf bug?

Martin Orr said:
>
> ***BUG in Autoconf--please report*** AC_LANG_PROGRAM

Does it build if you remove autoconf2.13?

... Adam

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 05:47:50 +1000 (EST)
From: "Adam Conrad" <adconrad@0c3.net>
To: "Martin Orr" <email address hidden>,
 <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

Martin Orr said:
>
> ***BUG in Autoconf--please report*** AC_LANG_PROGRAM

Does it build if you remove autoconf2.13?

... Adam

Revision history for this message
In , Martin Orr (martin-martinorr) wrote :

On Wed, Feb 16, 2005 at 05:47:50AM +1000, Adam Conrad wrote:
> Martin Orr said:
> >
> > ***BUG in Autoconf--please report*** AC_LANG_PROGRAM
>
> Does it build if you remove autoconf2.13?

Yes, thanks.

Could you change configure.in to have AC_PREREQ(2.50) at the top?

--
Martin Orr
Linux Administrator,
Methodist College Belfast

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 15 Feb 2005 22:21:27 +0000
From: Martin Orr <email address hidden>
To: Adam Conrad <adconrad@0c3.net>, <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

On Wed, Feb 16, 2005 at 05:47:50AM +1000, Adam Conrad wrote:
> Martin Orr said:
> >
> > ***BUG in Autoconf--please report*** AC_LANG_PROGRAM
>
> Does it build if you remove autoconf2.13?

Yes, thanks.

Could you change configure.in to have AC_PREREQ(2.50) at the top?

--
Martin Orr
Linux Administrator,
Methodist College Belfast

Revision history for this message
Thom May (thombot) wrote :

not exactly severity "major", just someone with an old, old autoconf.

Revision history for this message
In , Adam Conrad (adconrad) wrote :

Martin Orr said:
>
> Could you change configure.in to have AC_PREREQ(2.50) at the top?

That's my planned fix, yes. :)

... Adam

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 15:53:49 +1000 (EST)
From: "Adam Conrad" <adconrad@0c3.net>
To: "Martin Orr" <email address hidden>,
 <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

Martin Orr said:
>
> Could you change configure.in to have AC_PREREQ(2.50) at the top?

That's my planned fix, yes. :)

... Adam

Revision history for this message
In , Jeroen van Wolffelaar (jeroenvw) wrote :

On Wed, Feb 16, 2005 at 03:53:49PM +1000, Adam Conrad wrote:
> Martin Orr said:
> >
> > Could you change configure.in to have AC_PREREQ(2.50) at the top?
>
> That's my planned fix, yes. :)

That doesn't sound to me like the correct solution to this bug, though.
The problem is that autoconf gets invoked without making sure the right
autoconf is invoked.

Either running autoconf is needed, then somehow autconf2.5 needs to be
invoked, or it isn't, and then it should be ensured that autconf is
_not_ run at build time.

--Jeroen

--
Jeroen van Wolffelaar
<email address hidden> (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 23 Feb 2005 10:58:27 +0100
From: Jeroen van Wolffelaar <email address hidden>
To: adconrad@0c3.net, <email address hidden>
Cc: Martin Orr <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

On Wed, Feb 16, 2005 at 03:53:49PM +1000, Adam Conrad wrote:
> Martin Orr said:
> >
> > Could you change configure.in to have AC_PREREQ(2.50) at the top?
>
> That's my planned fix, yes. :)

That doesn't sound to me like the correct solution to this bug, though.
The problem is that autoconf gets invoked without making sure the right
autoconf is invoked.

Either running autoconf is needed, then somehow autconf2.5 needs to be
invoked, or it isn't, and then it should be ensured that autconf is
_not_ run at build time.

--Jeroen

--
Jeroen van Wolffelaar
<email address hidden> (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl

Revision history for this message
In , Adam Conrad (adconrad) wrote :

tags 295428 pending
thanks

Jeroen van Wolffelaar said:
>
> That doesn't sound to me like the correct solution to this bug, though.
> The problem is that autoconf gets invoked without making sure the right
> autoconf is invoked.

I assume you got appropriately schooled about how the autoconf wrapper
works on IRC. :)

... Adam

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 24 Feb 2005 02:56:53 +1000 (EST)
From: "Adam Conrad" <adconrad@0c3.net>
To: "Jeroen van Wolffelaar" <email address hidden>,
 <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

tags 295428 pending
thanks

Jeroen van Wolffelaar said:
>
> That doesn't sound to me like the correct solution to this bug, though.
> The problem is that autoconf gets invoked without making sure the right
> autoconf is invoked.

I assume you got appropriately schooled about how the autoconf wrapper
works on IRC. :)

... Adam

Revision history for this message
In , Martin Orr (martin-martinorr) wrote :

On Wed, Feb 23, 2005 at 10:58:27AM +0100, Jeroen van Wolffelaar wrote:
> On Wed, Feb 16, 2005 at 03:53:49PM +1000, Adam Conrad wrote:
> > Martin Orr said:
> > >
> > > Could you change configure.in to have AC_PREREQ(2.50) at the top?
> >
> > That's my planned fix, yes. :)
>
> That doesn't sound to me like the correct solution to this bug, though.
> The problem is that autoconf gets invoked without making sure the right
> autoconf is invoked.
>
> Either running autoconf is needed, then somehow autconf2.5 needs to be
> invoked,

That is exactly what AC_PREREQ(2.50) does. apache2 already Build-Depends on
autoconf which in sid and sarge means 2.50 (actually 2.59) - although
perhaps there should be a versioned Build-Depends.

The problem occurs if you install autoconf2.13 at the same time (which was
what I had but didn't realise). It diverts /usr/bin/autoconf to
autoconf2.50 and replaces it with a script which does some heuristics to try
to guess which version is required - and most often selects 2.13 (as in the
case of apache2). One of the checks is to look for an AC_PREREQ line so by
adding that, the wrapper will indeed run autoconf2.50.

--
Martin Orr
Linux Administrator,
Methodist College Belfast

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 24 Feb 2005 22:37:35 +0000
From: Martin Orr <email address hidden>
To: Jeroen van Wolffelaar <email address hidden>,
  <email address hidden>
Subject: Re: Bug#295428: FTBFS: autoconf bug?

On Wed, Feb 23, 2005 at 10:58:27AM +0100, Jeroen van Wolffelaar wrote:
> On Wed, Feb 16, 2005 at 03:53:49PM +1000, Adam Conrad wrote:
> > Martin Orr said:
> > >
> > > Could you change configure.in to have AC_PREREQ(2.50) at the top?
> >
> > That's my planned fix, yes. :)
>
> That doesn't sound to me like the correct solution to this bug, though.
> The problem is that autoconf gets invoked without making sure the right
> autoconf is invoked.
>
> Either running autoconf is needed, then somehow autconf2.5 needs to be
> invoked,

That is exactly what AC_PREREQ(2.50) does. apache2 already Build-Depends on
autoconf which in sid and sarge means 2.50 (actually 2.59) - although
perhaps there should be a versioned Build-Depends.

The problem occurs if you install autoconf2.13 at the same time (which was
what I had but didn't realise). It diverts /usr/bin/autoconf to
autoconf2.50 and replaces it with a script which does some heuristics to try
to guess which version is required - and most often selects 2.13 (as in the
case of apache2). One of the checks is to look for an AC_PREREQ line so by
adding that, the wrapper will indeed run autoconf2.50.

--
Martin Orr
Linux Administrator,
Methodist College Belfast

Revision history for this message
In , Adam Conrad (adconrad) wrote : Bug#295428: fixed in apache2 2.0.53-5
Download full text (6.8 KiB)

Source: apache2
Source-Version: 2.0.53-5

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-common_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-common_2.0.53-5_i386.deb
apache2-common_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-common_2.0.53-5_powerpc.deb
apache2-doc_2.0.53-5_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.53-5_all.deb
apache2-mpm-perchild_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.53-5_i386.deb
apache2-mpm-perchild_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.53-5_powerpc.deb
apache2-mpm-prefork_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.53-5_i386.deb
apache2-mpm-prefork_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.53-5_powerpc.deb
apache2-mpm-threadpool_2.0.53-5_all.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.53-5_all.deb
apache2-mpm-worker_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.53-5_i386.deb
apache2-mpm-worker_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.53-5_powerpc.deb
apache2-prefork-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.53-5_i386.deb
apache2-prefork-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.53-5_powerpc.deb
apache2-threaded-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.53-5_i386.deb
apache2-threaded-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.53-5_powerpc.deb
apache2-utils_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-utils_2.0.53-5_i386.deb
apache2-utils_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-utils_2.0.53-5_powerpc.deb
apache2_2.0.53-5.diff.gz
  to pool/main/a/apache2/apache2_2.0.53-5.diff.gz
apache2_2.0.53-5.dsc
  to pool/main/a/apache2/apache2_2.0.53-5.dsc
apache2_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2_2.0.53-5_i386.deb
apache2_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2_2.0.53-5_powerpc.deb
libapr0-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/libapr0-dev_2.0.53-5_i386.deb
libapr0-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.53-5_powerpc.deb
libapr0_2.0.53-5_i386.deb
  to pool/main/a/apache2/libapr0_2.0.53-5_i386.deb
libapr0_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/libapr0_2.0.53-5_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Conrad <adconrad@0c3.net> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 25 Feb 2005 00:51:13 -0700
Source: apache2
Binary: apache2-utils apache2 apache2-prefork-dev apache2-mpm-prefork apache2-doc li...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (7.0 KiB)

Message-Id: <email address hidden>
Date: Fri, 25 Feb 2005 04:17:14 -0500
From: Adam Conrad <adconrad@0c3.net>
To: <email address hidden>
Subject: Bug#295428: fixed in apache2 2.0.53-5

Source: apache2
Source-Version: 2.0.53-5

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-common_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-common_2.0.53-5_i386.deb
apache2-common_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-common_2.0.53-5_powerpc.deb
apache2-doc_2.0.53-5_all.deb
  to pool/main/a/apache2/apache2-doc_2.0.53-5_all.deb
apache2-mpm-perchild_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.53-5_i386.deb
apache2-mpm-perchild_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-perchild_2.0.53-5_powerpc.deb
apache2-mpm-prefork_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.53-5_i386.deb
apache2-mpm-prefork_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-prefork_2.0.53-5_powerpc.deb
apache2-mpm-threadpool_2.0.53-5_all.deb
  to pool/main/a/apache2/apache2-mpm-threadpool_2.0.53-5_all.deb
apache2-mpm-worker_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.53-5_i386.deb
apache2-mpm-worker_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-mpm-worker_2.0.53-5_powerpc.deb
apache2-prefork-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.53-5_i386.deb
apache2-prefork-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-prefork-dev_2.0.53-5_powerpc.deb
apache2-threaded-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.53-5_i386.deb
apache2-threaded-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-threaded-dev_2.0.53-5_powerpc.deb
apache2-utils_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2-utils_2.0.53-5_i386.deb
apache2-utils_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2-utils_2.0.53-5_powerpc.deb
apache2_2.0.53-5.diff.gz
  to pool/main/a/apache2/apache2_2.0.53-5.diff.gz
apache2_2.0.53-5.dsc
  to pool/main/a/apache2/apache2_2.0.53-5.dsc
apache2_2.0.53-5_i386.deb
  to pool/main/a/apache2/apache2_2.0.53-5_i386.deb
apache2_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/apache2_2.0.53-5_powerpc.deb
libapr0-dev_2.0.53-5_i386.deb
  to pool/main/a/apache2/libapr0-dev_2.0.53-5_i386.deb
libapr0-dev_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/libapr0-dev_2.0.53-5_powerpc.deb
libapr0_2.0.53-5_i386.deb
  to pool/main/a/apache2/libapr0_2.0.53-5_i386.deb
libapr0_2.0.53-5_powerpc.deb
  to pool/main/a/apache2/libapr0_2.0.53-5_powerpc.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Conrad <adconrad@0c3.net> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debi...

Read more...

Changed in apache2:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.