Bug #2419
lighttpd-1.4.31 fails to compile with automake-1.12.x
| Status: | Fixed | Start date: | 2012-06-09 | |
|---|---|---|---|---|
| Priority: | Low | Due 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.
Associated revisions
configure.ac: remove old stuff, add some new to fix warnings in automake 1.12 (fixes #2419, thx blino)
History
#2 Updated by blino 11 months ago
- File lighttpd-1.4.29-automake-1.12.patch
added - Status changed from New to Patch Pending
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
#4 Updated by blino 11 months 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.
Also available in: Atom