On Thu, Aug 11, 2016 at 2:50 PM, David Sommerseth <openvpn@sf.lists. topphemmelig.net> wrote:
> -----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: > The patch is obviously useless as it breaks configuring. > > Makefile:505: ../../src/openvpn/.deps/openvpnserv-block_dns.Po: No > such file or directory > It is indeed caused by a bug in automake (bug#13928) because of which variables in foo_SOURCES do not get expanded when subdir-objects is specfied. Thus $(top_srcdir) in $(top_srcdir)/src/openvpn/block_dns.c, for example, causes a folder literally named $(top_srcdir) created inside src/openvpnserv/. But make wont find any files there and leads to the missing file issues. This has been fixed in automake 1.15a master tree in this commit : http://git.savannah.gnu.org/cgit/automake.git/commit/?id= 6a675ef17edf7109da189f5ae70e2dc6b7665896 (I tested it works) But that may not get into any distributions for a while and anyway we'll have to continue supporting various 1.x versions of automake for a long time. We have two options: (i) just ignore the subdir-objects warning until it really cannot be ignored (i.e when they make it the default). OR (ii) do not use any variables that need expansion in packagename_SOURCES lines in Makefile.am This is an easy fix that should just work. Selva