-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, I noticed a few errors today when building OpenVPN on Fedora 23. The attached patch resolves this. But it breaks 'make' when it reaches ./src/openvpnserv: Makefile:505: ../../src/openvpn/.deps/openvpnserv-block_dns.Po: No such file or directory Except of that, the patch removes the warnings on Fedora 23 [1] and causes no other issues on Scientific Linux 7.2 [2] or CentOS 5.11 [3]. And some comments to the patch. * The subdir-objects option was needed to avoid a warning with automake-1.15. * AM_PROG_CC_C_O is needed with automake-1.9.6 when the subdir-objects option is enabled. * LT_INIT removes a warning on automake-1.15. On a Fedora 23 setup without the attached patch you will see this: - ------------------------------------------------------------------- libtoolize: Remember to add 'LT_INIT' to configure.ac. src/openvpnserv/Makefile.am:32: warning: source file '$(top_srcdir)/src/openvpn/block_dns.c' is in a subdirectory, src/openvpnserv/Makefile.am:32: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a 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, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/unit_tests/plugins/auth-pam/Makefile.am:10: warning: source file '$(sut_sourcedir)/utils.c' is in a subdirectory, tests/unit_tests/plugins/auth-pam/Makefile.am:10: but option 'subdir-objects' is disabled - ------------------------------------------------------------------- I can see that commit 2282b1be7968ef44accde70 (by Selva Nair) is adding cross subdir references in *_SOURCES, which requires subdir-objects + AM_PROG_CC_C_O. Can we fix this in a better way? Some version info: [1] Fedora 23: automake-1.15-4.fc23.noarch autoconf-2.69-21.fc23.noarch libtool-2.4.6-8.fc23.x86_64 [2] Scientific Linux 7.2 automake-1.13.4-3.el7.noarch autoconf-2.69-11.el7.noarch libtool-2.4.2-21.el7_2.x86_64 [3] CentOS 5.11 automake-1.9.6-3.el5 autoconf-2.59-12 libtool-1.5.22-7.el5_4 - -- kind regards, David Sommerseth OpenVPN Technologies, Inc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlesyO4ACgkQDC186MBRfrp1WwCfUnb0VW1dsP2SB2lm480AG/TM m+QAnjHNyFJDmqOVTVBokroFx6AQ4SVw =rRxR -----END PGP SIGNATURE-----
diff --git a/configure.ac b/configure.ac index 4f14ebd..82c14b6 100644 --- a/configure.ac +++ b/configure.ac @@ -55,9 +55,11 @@ m4_define([serial_tests], [ awk '{split ($NF,a,"."); if (a[1] == 1 && a[2] >= 12) { print "serial-tests" }}' ]) ]) -AM_INIT_AUTOMAKE(foreign serial_tests) dnl NB: Do not [quote] this parameter. +AM_INIT_AUTOMAKE(foreign serial_tests subdir-objects) dnl NB: Do not [quote] this parameter. +AM_PROG_CC_C_O AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS +LT_INIT AC_ARG_ENABLE( [lzo],
wip-autotools-fix.patch.sig
Description: PGP signature