* Unable to build e2fsprogs 1.42.11 on RHEL 5 @ 2014-07-24 22:04 Dilger, Andreas 2014-07-25 14:33 ` Theodore Ts'o 0 siblings, 1 reply; 4+ messages in thread From: Dilger, Andreas @ 2014-07-24 22:04 UTC (permalink / raw) To: Theodore Ts'o; +Cc: linux-ext4@vger.kernel.org I'm unable to build the latest e2fsprogs on RHEL 5, since it returns an error running autoconf: autoconf aclocal.m4:3095: error: Autoconf version 2.60 or higher is required aclocal.m4:3095: the top level The "2.60" version is explicitly checked in aclocal.m4, and changing it to "2.59" (as is shipped with RHEL5) results in more errors: autoconf configure.in:903: warning: AC_PROG_MKDIR_P is m4_require'd but is not m4_defun'd configure.in:903: AC_PROG_MKDIR_P is required by... aclocal.m4:3292: AM_PO_SUBDIRS is expanded from... configure.in:903: AM_PO_SUBDIRS is required by... aclocal.m4:626: AM_GNU_GETTEXT is expanded from... configure.in:903: the top level [etc] It looks like this was added in commit 93613951 "aclocal.m4: update to newer versions of autoconf macros". Was there a particular reason for that change (there is no explanation given in the commit message)? I tried reverting that patch to build on RHEL5 again, and it also appears to work on RHEL6, but there may be issues with newer autoconf versions... Cheers, Andreas -- Andreas Dilger Lustre Software Architect Intel High Performance Data Division ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unable to build e2fsprogs 1.42.11 on RHEL 5 2014-07-24 22:04 Unable to build e2fsprogs 1.42.11 on RHEL 5 Dilger, Andreas @ 2014-07-25 14:33 ` Theodore Ts'o 2014-07-25 21:36 ` Dilger, Andreas 0 siblings, 1 reply; 4+ messages in thread From: Theodore Ts'o @ 2014-07-25 14:33 UTC (permalink / raw) To: Dilger, Andreas; +Cc: linux-ext4@vger.kernel.org On Thu, Jul 24, 2014 at 10:04:53PM +0000, Dilger, Andreas wrote: > I'm unable to build the latest e2fsprogs on RHEL 5, since it returns an > error running autoconf: > > autoconf > aclocal.m4:3095: error: Autoconf version 2.60 or higher is required > aclocal.m4:3095: the top level What I try to tell everyone is that the only people who should run autoconf are developers. If you are building on a systems that are running older versions of autoconf, such as RHEL or LTS, you should simply *not* run autoconf, or autoreconf, or anything else like that. If you do, that's something which is explicitly disclaimed. The reason why we have the AC_PREREQ(2.60) is because of the AC_PROG_MKDIR_P requirement which you noted. > It looks like this was added in commit 93613951 "aclocal.m4: update > to newer versions of autoconf macros". Was there a particular > reason for that change (there is no explanation given in the commit > message)? It was part of some work to update the autoconf and config.* files to support some new platforms, such as ppcle. (I think there was some other platform that Ross Burton at Intel was trying to enable, but I'm not sure what it was.) While I was looking at these files, I noticed that the gettext related macros were close to a decade old, and I decided it was time to update them. For RHEL5, it should be safe to revert the change, but the simpler thing is to simply lay off trying to regenerate the configure.in file. Autoconf doesn't have very good compatibility support, so whenever we update autoconf related files, it's possible that future changes will require changes to the Makefile.in files. Cheers, - Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unable to build e2fsprogs 1.42.11 on RHEL 5 2014-07-25 14:33 ` Theodore Ts'o @ 2014-07-25 21:36 ` Dilger, Andreas 2014-07-26 14:37 ` Theodore Ts'o 0 siblings, 1 reply; 4+ messages in thread From: Dilger, Andreas @ 2014-07-25 21:36 UTC (permalink / raw) To: Theodore Ts'o; +Cc: linux-ext4@vger.kernel.org On 2014/07/25, 8:33 AM, "Theodore Ts'o" <tytso@mit.edu> wrote: >On Thu, Jul 24, 2014 at 10:04:53PM +0000, Dilger, Andreas wrote: >> I'm unable to build the latest e2fsprogs on RHEL 5, since it returns an >> error running autoconf: >> >> autoconf >> aclocal.m4:3095: error: Autoconf version 2.60 or higher is required >> aclocal.m4:3095: the top level > >What I try to tell everyone is that the only people who should run >autoconf are developers. If you are building on a systems that are >running older versions of autoconf, such as RHEL or LTS, you should >simply *not* run autoconf, or autoreconf, or anything else like that. >If you do, that's something which is explicitly disclaimed. Unfortunately, because some of our patches add new features and modify configure.in the autoconf steps run automatically during the build, even though the patches also modify configure to include the changes that autoconf generates therein. Unfortunately, because configure comes before configure.in lexographically, and the patches are in Git I don't think there is any way for them to be applied in reverse order like there would be with e.g. patch files applied using quilt. >The reason why we have the AC_PREREQ(2.60) is because of the >AC_PROG_MKDIR_P requirement which you noted. > >> It looks like this was added in commit 93613951 "aclocal.m4: update >> to newer versions of autoconf macros". Was there a particular >> reason for that change (there is no explanation given in the commit >> message)? > >It was part of some work to update the autoconf and config.* files to >support some new platforms, such as ppcle. (I think there was some >other platform that Ross Burton at Intel was trying to enable, but I'm >not sure what it was.) While I was looking at these files, I noticed >that the gettext related macros were close to a decade old, and I >decided it was time to update them. > >For RHEL5, it should be safe to revert the change, but the simpler >thing is to simply lay off trying to regenerate the configure.in file. >Autoconf doesn't have very good compatibility support, so whenever we >update autoconf related files, it's possible that future changes will >require changes to the Makefile.in files. Reverting the 93613951 commit works for now. I might end up changing the RHEL5 .spec file to "touch configure" if they have approximately the same timestamp (e.g. within 1s) so that autoconf is not run automatically after a patch is applied to both, or a fresh checkout. This might also be useful for the upstream e2fsprogs.spec.in file so that autoconf is not run when there is a new checkout. Cheers, Andreas -- Andreas Dilger Lustre Software Architect Intel High Performance Data Division ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Unable to build e2fsprogs 1.42.11 on RHEL 5 2014-07-25 21:36 ` Dilger, Andreas @ 2014-07-26 14:37 ` Theodore Ts'o 0 siblings, 0 replies; 4+ messages in thread From: Theodore Ts'o @ 2014-07-26 14:37 UTC (permalink / raw) To: Dilger, Andreas; +Cc: linux-ext4@vger.kernel.org On Fri, Jul 25, 2014 at 09:36:53PM +0000, Dilger, Andreas wrote: > > Unfortunately, because some of our patches add new features and modify > configure.in the autoconf steps run automatically during the build, > even though the patches also modify configure to include the changes > that autoconf generates therein. Are you running configure with --enable-maintainer-mode? If so, remove that configure option, and then autoconf shouldn't be run automatically. Cheers, - Ted ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-26 14:37 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-24 22:04 Unable to build e2fsprogs 1.42.11 on RHEL 5 Dilger, Andreas 2014-07-25 14:33 ` Theodore Ts'o 2014-07-25 21:36 ` Dilger, Andreas 2014-07-26 14:37 ` Theodore Ts'o
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.