Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize autotools bootstrapping #331

Closed
rdmark opened this issue Apr 28, 2023 · 2 comments
Closed

Modernize autotools bootstrapping #331

rdmark opened this issue Apr 28, 2023 · 2 comments

Comments

@rdmark
Copy link
Member

rdmark commented Apr 28, 2023

Deprecation warnings with autotools 20220109.1 (Debian Bookworm)

$ ./bootstrap
+ rm -rf autom4te.cache
+ LIBTOOLIZE=libtoolize
+ uname
+ SYSNAME=Linux
+ [ xLinux = xDarwin ]
+ aclocal -I macros
+ autoheader
+ libtoolize --force --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'macros'.
libtoolize: copying file 'macros/libtool.m4'
libtoolize: copying file 'macros/ltoptions.m4'
libtoolize: copying file 'macros/ltsugar.m4'
libtoolize: copying file 'macros/ltversion.m4'
libtoolize: copying file 'macros/lt~obsolete.m4'
+ automake --include-deps --add-missing --foreign --copy
configure.ac:20: installing 'build-aux/compile'
configure.ac:15: installing 'build-aux/missing'
bin/ad/Makefile.am: installing 'build-aux/depcomp'
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/afp_config.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least one source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However, this
automake: behavior may change in a future Automake major version, with object
automake: files being placed in the same subdirectory as the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/afp_dsi.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/afp_options.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/afp_util.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/afprun.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/appl.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/auth.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/catsearch.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/desktop.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/dircache.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/directory.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/enumerate.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/extattrs.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/fce_api.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/fce_util.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/file.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/filedir.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/fork.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/hash.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/mangle.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/messages.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/nfsquota.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/ofork.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/quota.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/status.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/spotlight_marshalling.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/switch.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/uam.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/unix.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:12: warning: source file '$(top_srcdir)/etc/afpd/volume.c' is in a subdirectory,
test/afpd/Makefile.am:12: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:63: warning: source file '$(top_srcdir)/etc/afpd/acls.c' is in a subdirectory,
test/afpd/Makefile.am:63: but option 'subdir-objects' is disabled
test/afpd/Makefile.am:67: warning: source file '$(top_srcdir)/etc/afpd/spotlight.c' is in a subdirectory,
test/afpd/Makefile.am:67: but option 'subdir-objects' is disabled
+ autoconf
configure.ac:21: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:21: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:21: the top level
configure.ac:25: warning: The macro `AC_LIBTOOL_DLOPEN' is obsolete.
configure.ac:25: You should run autoupdate.
macros/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.ac:25: the top level
configure.ac:25: warning: AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you
configure.ac:25: put the 'dlopen' option into LT_INIT's first parameter.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
macros/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from...
configure.ac:25: the top level
configure.ac:26: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:26: You should run autoupdate.
macros/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:26: the top level
configure.ac:33: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
configure.ac:33: the top level
configure.ac:61: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:61: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
macros/largefile-check.m4:46: AC_SYS_LARGEFILE is expanded from...
configure.ac:61: the top level
configure.ac:61: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:61: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
macros/largefile-check.m4:46: AC_SYS_LARGEFILE is expanded from...
configure.ac:61: the top level
configure.ac:66: warning: The macro `AC_LTDL_DLLIB' is obsolete.
configure.ac:66: You should run autoupdate.
aclocal.m4:771: AC_LTDL_DLLIB is expanded from...
configure.ac:66: the top level
configure.ac:68: warning: The macro `AC_LTDL_DLSYM_USCORE' is obsolete.
configure.ac:68: You should run autoupdate.
aclocal.m4:930: AC_LTDL_DLSYM_USCORE is expanded from...
configure.ac:68: the top level
configure.ac:121: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:121: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
macros/iconv.m4:1: AC_NETATALK_CHECK_ICONV is expanded from...
configure.ac:121: the top level
configure.ac:121: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:121: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
macros/iconv.m4:1: AC_NETATALK_CHECK_ICONV is expanded from...
configure.ac:121: the top level
configure.ac:121: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:121: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
macros/iconv.m4:1: AC_NETATALK_CHECK_ICONV is expanded from...
configure.ac:121: the top level
configure.ac:133: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:133: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
macros/tcp-wrappers.m4:2: AC_NETATALK_TCP_WRAPPERS is expanded from...
configure.ac:133: the top level
configure.ac:133: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:133: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2894: _AC_LINK_IFELSE is expanded from...
./lib/autoconf/general.m4:2911: AC_LINK_IFELSE is expanded from...
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
macros/tcp-wrappers.m4:2: AC_NETATALK_TCP_WRAPPERS is expanded from...
configure.ac:133: the top level
configure.ac:151: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:151: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
macros/libgcrypt.m4:11: AC_NETATALK_PATH_LIBGCRYPT is expanded from...
configure.ac:151: the top level
configure.ac:157: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:157: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
macros/db3-check.m4:29: NETATALK_BDB_TRY_LINK is expanded from...
macros/db3-check.m4:85: AC_NETATALK_PATH_BDB is expanded from...
configure.ac:157: the top level
+ exit 0
@rdmark
Copy link
Member Author

rdmark commented Apr 29, 2023

Note that simply adding the subdir-objects option to configure.ac led to the objects for test/afpd/ not being generated, so a more comprehensive solution is required. #313

@dgsga
Copy link
Contributor

dgsga commented May 9, 2023

Please see #336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants