RE: Broken Cross Compile with NetworkManager 1.12.0



-----Original Message-----
From: Thomas Haller [mailto:thaller redhat com]
Sent: Wednesday, July 25, 2018 2:38 PM

On Wed, 2018-07-25 at 19:09 +0000, Matthew Starr wrote:
I am trying to compile NetworkManager 1.12.0 for armhf using an amd64
install of Ubuntu 17.10 and building the ARM software using buildroot.
During the configure step, I am getting the following
error:

checking for /etc/sysconfig/network-scripts... configure: error:
cannot check for file existence when cross compiling

This was not an issue with NetworkManager 1.10.8 which compiles fine
with the same build environment.

I did some digging and it looks like the use of AC_CHECK_FILE in the
configure.ac file will cause cross compile errors like this.  See the
following mailing list entry from autotools:
https://lists.gnu.org/archive/html/autoconf/2000-10/msg00018.html

Best regards,
Matthew Starr


hi,


if you look at configure.ac, you'll see

AS_IF([test -z "$enable_ifcfg_rh"], AC_CHECK_FILE(/etc/sysconfig/network-
scripts, enable_ifcfg_rh=yes))

meaning, you should be able to workaround this issue, by `./configure --
disable-ifcfg-rh` ... and possibly --disable-ifupdown



best,
Thomas

Thomas,

Thank you, this solved my problem.  I also needed to add the "--with-netconfig=no" flag to get a compile to 
work with cross compiling as I was encountering a similar error.

Best regards,
Matthew Starr


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]