Traffic Server
  1. Traffic Server
  2. TS-64

autoconf unable to process apr m4 macros which prevents successful build

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0a
    • Fix Version/s: 2.0.0a
    • Component/s: Build
    • Labels:
      None
    • Environment:

      RHEL4, automake-1.9.2, autoconf-2.59

      Description

      autoreconf cannot process the configure.ac file with the new apr m4 macros:

      configure.ac:514: warning: file `build-aux/apr_common.m4' included several times
      configure.ac:515: warning: file `build-aux/apr_network.m4' included several times
      configure.ac:514: warning: file `build-aux/apr_common.m4' included several times
      configure.ac:515: warning: file `build-aux/apr_network.m4' included several times
      configure:8673: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
      autoreconf: /usr/bin/autoconf failed with exit status: 1
      make: *** [debug] Error 1

      The proper location for these macros are in the 'm4' dir, not 'build-aux' because 'build-aux' is a generated dir during autoconf processing.

      Once the files are moved to 'm4', they will automatically be included and the macros will be available for use in 'configure.ac' because of the 'ACLOCAL_AMFLAGS' line in the toplevel 'Makefile.am'. Therefore, the 'sinclude()' lines can be removed from 'configure.ac'.

      I already have a fix for this which I'll commit after this jira is created.

      Cheers,
      Andrew

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Andrew Hsu
            Reporter:
            Andrew Hsu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development