Menu

#4 Add autoconf files

1.0
pending
None
2024-07-25
2024-07-14
No

The patch adds autoconf files

1 Attachments

Related

Issues: #4

Discussion

  • Guy Hutchison

    Guy Hutchison - 2024-07-15
    • status: open --> pending
    • assigned_to: Guy Hutchison
     
  • Guy Hutchison

    Guy Hutchison - 2024-07-15

    Attempting to build with autoconf yields multiple warnings:
    configure.ac:8: warning: The macro AC_CONFIG_HEADER' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:8: the top level configure.ac:17: warning: The macroAC_HEADER_STDC' is obsolete.
    configure.ac:17: You should run autoupdate.
    ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
    configure.ac:17: the top level
    configure.ac:26: warning: The macro AC_HEADER_TIME' is obsolete. configure.ac:26: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:26: the top level configure.ac:34: warning: The macroAC_TYPE_SIGNAL' is obsolete.
    configure.ac:34: You should run autoupdate.
    ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from...
    configure.ac:34: the top level
    configure.ac:42: warning: AC_OUTPUT should be used without arguments.
    configure.ac:42: You should run autoupdate.
    configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.

    Is there an expected version of autoconf for this patch? I built with autoconf 2.71

     
  • Guy Hutchison

    Guy Hutchison - 2024-07-17

    I have added the files config.guess and config.sub, however even with the missing files this has multiple build issues on my system.

    autoconf reports the following errors:
    configure.ac:8: warning: The macro AC_CONFIG_HEADER' is obsolete. configure.ac:8: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:8: the top level configure.ac:17: warning: The macroAC_HEADER_STDC' is obsolete.
    configure.ac:17: You should run autoupdate.
    ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
    configure.ac:17: the top level
    configure.ac:26: warning: The macro AC_HEADER_TIME' is obsolete. configure.ac:26: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:26: the top level configure.ac:34: warning: The macroAC_TYPE_SIGNAL' is obsolete.
    configure.ac:34: You should run autoupdate.
    ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from...
    configure.ac:34: the top level
    configure.ac:42: warning: AC_OUTPUT should be used without arguments.
    configure.ac:42: You should run autoupdate.
    configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.

    After running autoupdate, autoconf still has one outstanding error:
    configure.ac:17: warning: The preprocessor macro STDC_HEADERS' is obsolete. configure.ac:17: Except in unusual embedded environments, you can safely include all configure.ac:17: ISO C90 headers unconditionally. configure.ac:34: warning: Update your code to rely only on HAVE_SYS_TIME_H, configure.ac:34: then remove this warning and the obsolete code below it. configure.ac:34: All current systems provide time.h; it need not be checked for. configure.ac:34: Not all systems provide sys/time.h, but those that do, all allow configure.ac:34: you to include it and time.h simultaneously. configure.ac:55: warning: your code may safely assume C89 semantics that RETSIGTYPE is void. configure.ac:55: Remove this warning and theAC_CACHE_CHECK' when you adjust the code.
    configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.

    Running automake yielded errors, after running aclocal and automake --add-missing, automake runs cleanly.

    Please pull branch autoconf_ticket4 and confirm that the changes look OK.

     
  • Ahmed El-Mahmoudy

    All this shouldn't be needed, do you run: autoreconf -f -i ?

     
    • Guy Hutchison

      Guy Hutchison - 2024-07-24

      On my system, running autoreconf -f -i results in:
      configure.ac:17: warning: The preprocessor macro STDC_HEADERS' is obsolete. configure.ac:17: Except in unusual embedded environments, you can safely include all configure.ac:17: ISO C90 headers unconditionally. configure.ac:34: warning: Update your code to rely only on HAVE_SYS_TIME_H, configure.ac:34: then remove this warning and the obsolete code below it. configure.ac:34: All current systems provide time.h; it need not be checked for. configure.ac:34: Not all systems provide sys/time.h, but those that do, all allow configure.ac:34: you to include it and time.h simultaneously. configure.ac:55: warning: your code may safely assume C89 semantics that RETSIGTYPE is void. configure.ac:55: Remove this warning and theAC_CACHE_CHECK' when you
      adjust the code.
      configure.ac:11: installing './compile'
      configure.ac:52: installing './config.guess'
      configure.ac:52: installing './config.sub'
      configure.ac:6: installing './install-sh'
      configure.ac:6: installing './missing'
      src/Makefile.am: installing './depcomp'

      After that ./configure and make builds OK.

      On Tue, Jul 23, 2024 at 5:20 PM Ahmed El-Mahmoudy aelmahmoudy@users.sourceforge.net wrote:

      All this shouldn't be needed, do you run: autoreconf -f -i ?

      [issues:#4] https://sourceforge.net/p/gplcver/issues/4/ Add autoconf
      files

      Status: pending
      Milestone: 1.0
      Created: Sun Jul 14, 2024 05:59 PM UTC by Ahmed El-Mahmoudy
      Last Updated: Wed Jul 17, 2024 08:14 AM UTC
      Owner: Guy Hutchison
      Attachments:

      The patch adds autoconf files

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/gplcver/issues/4/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Issues: #4

  • Guy Hutchison

    Guy Hutchison - 2024-07-25

    The binary created by the automake process does not have the correct behavior. After building the tests in tests_and_examples/install.tst should pass without messages, but the automake version has multiple errors.

    To reproduce, build using the automake system, change path to CVER in inst_tst.sh to:
    CVER="../../src/cver -q "

    And run test with ./inst_tst.sh

     

Log in to post a comment.