Bug #2419

lighttpd-1.4.31 fails to compile with automake-1.12.x

Added by Phr33d0m about 2 years ago. Updated over 1 year ago.

Status:FixedStart date:2012-06-09
Priority:LowDue date:
Assignee:-% Done:

100%

Category:-
Target version:1.4.32
Missing in 1.5.x:No

Description

Hello, I'm using a 64bit Gentoo system. Compiling lighttpd-1.4.31 with automake-1.12.x fails with:

***** aclocal *****
***** PWD: /var/tmp/portage/www-servers/lighttpd-1.4.31/work/lighttpd-1.4.31
***** aclocal -I m4

configure.ac:42: error: automatic de-ANSI-fication support has been removed
/usr/share/aclocal-1.12/protos.m4:12: AM_C_PROTOTYPES is expanded from...
configure.ac:42: the top level
autom4te-2.69: /usr/bin/m4 failed with exit status: 1
aclocal-1.12: error: autom4te failed with exit status: 1

Going back to automake-1.11.5 or automake-1.10.3 solved the issue.

Regards.

PD: I found this solution on an Archlinux forum, so this is not only Gentoo dependant.

lighttpd-1.4.29-automake-1.12.patch Magnifier - Fix build with automake 1.12 (775 Bytes) blino, 2012-07-05 11:17

Associated revisions

Revision 2851
Added by stbuehler over 1 year ago

configure.ac: remove old stuff, add some new to fix warnings in automake 1.12 (fixes #2419, thx blino)

History

#1 Updated by stbuehler about 2 years ago

  • Priority changed from High to Low
  • Target version set to 1.4.x

There is no need to run automake if you use our snapshots.

#2 Updated by blino about 2 years ago

Running automake is sometimes needed if the project-generated buildsystem files are incompatible with system components (for example because of different libtool versions).

Attached patches fixes this buildsystem issue with automake 1.12

#3 Updated by stbuehler about 2 years ago

i won't apply it until i understand whether the changes are good.

will it work with older automake versions, ...?

just saying "this fixes it for me" is not enough.

#4 Updated by blino about 2 years ago

Yes, this will work with older automake versions.

AM_C_PROTOTYPES was only useful for very ancient C compilers that were not ANSI C compliant.
See for example this commit for details about the macro:
http://git.savannah.gnu.org/cgit/automake.git/commit/?id=0cbcf393dbdaa2ff36b11cf2516675e78eada49f
The doc used to say:
The features described in this section are deprecated; you must
not use any of them in new code, and remove their use from older but
still maintained code: they will be withdrawn in the next major
Automake release.
This feature has been deprecated for so long that even this piece of doc has been removed now.

The other change is about adding a call to AM_PROG_AR, which is required by newer automake to build static libraries.
This AM_PROG_AR macro will be called only if it is defined, so this will work with older automake versions.

#5 Updated by stbuehler about 2 years ago

  • Target version changed from 1.4.x to 1.4.32

ok, thx. marked for inclusion in the next release :)

#6 Updated by stbuehler over 1 year ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2851.

Also available in: Atom