mainAutoconf - Support: sr #111138, precise error message...

 
 

sr #111138: precise error message "possibly undefined macro: ..."

Submitter:  Румен Петров <rpetrov>
Submitted:  Sat 19 Oct 2024 05:07:51 PM UTC
Votes: 1
 
Priority:  * 5 - Unprioritized Severity:  1 - Wish
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 19 Oct 2024 07:51:58 PM UTC, comment #2: 

More info
$ fgrep AX_ co*.ac
AX_IS_RELEASE(dash-version)
AX_CHECK_ENABLE_DEBUG([info])
AX_RECURSIVE_EVAL([$sysconfdir], [SYSCONFDIR])
AX_NORMALIZE_PATH([with_udevrulesdir])
                     AX_NORMALIZE_PATH([with_device])
AX_VALGRIND_CHECK
             AX_ADD_FORTIFY_SOURCE])
AX_CODE_COVERAGE
m4_ifdef([_AX_CODE_COVERAGE_RULES],
AX_ADD_AM_MACRO_STATIC([])

So, message should inform user that AX_... macros are missing, not autoconf one like AC_SUBST, or AS_IF, or etc.

Румен Петров <rpetrov>
Sat 19 Oct 2024 05:14:38 PM UTC, comment #1: 

Issue is similar sr #110420, closed without correction.

In posted use case messages like "possibly undefined macro: AC_SUBST" are not correct (red herring).

Missing is at least one macro defined in ax_-files.

Goal of this request is autoconf (tested with 2.71 and 2.72) messages to show properly missing macros.

Румен Петров <rpetrov>
Sat 19 Oct 2024 05:07:51 PM UTC, original submission:  

use case from project tpm2-tss:

$ ./bootstrap
Generating file lists: src_vars.mk
....
configure.ac:21: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:61: error: possibly undefined macro: AS_IF
....

$ ./bootstrap
Generating file lists: src_vars.mk
....
automake: error: cannot open < aminclude_static.am: No such file or directory
....

$./bootstrap
Generating file lists: src_vars.mk
configure.ac:21: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
....

NOTE: see TSS_GITIGNOREFILES in Makefile.am
=> install missing m4-files (package autoconf-archive for instance)

Румен Петров <rpetrov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by egallager (Voted in favor of this item)
  • -email is unavailable- added by rpetrov (Submitted the item)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-10-19 egallager Carbon-Copy- Added egallager

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code