On Wed, Jan 20, 2016 at 7:26 PM, Benjamin Henrion <[email protected]> wrote: > On Wed, Jan 20, 2016 at 7:03 PM, Benjamin Henrion <[email protected]> wrote: >> Hi, >> >> I am cross-compiling malamute from the now working master, but fails >> compared to the version I was using before >> (a8879c364c76ff14747d9ecd71a98057934d62e9). >> >> I got this error in ./configure: >> >> checking for memset... no >> checking for getifaddrs... yes >> checking for .git... configure: error: cannot check for file existence >> when cross compiling >> >> It seems there is a new configure flag in configure.ac: >> >> https://github.com/zeromq/malamute/commit/d7ea49407a65d96f2c1aa4007c00bd1ac1a46b62#diff-67e997bcfdac55191033d57a16d1408a >> >> +# enable draft API by default if we're in a git repository >> +# else disable it by default; then allow --with-draft=yes/no override >> +AC_CHECK_FILE(.git, [gitmaster=yes], [gitmaster=no]) >> + >> +AC_ARG_WITH([drafts], >> + AS_HELP_STRING([--with-drafts], >> + [Build and install draft classes and methods [default=yes.]]), >> + [with_drafts=$withval], >> + [with_drafts=$gitmaster]) >> + >> +AM_CONDITIONAL([WITH_DRAFTS], [test x$with_drafts != xno]) >> + >> +if test "x$with_drafts" = "xyes"; then >> + AC_MSG_NOTICE([building draft, stable, and legacy API]) >> + AC_DEFINE(WITH_DRAFTS, 1, [Build and install draft classes and >> methods.]) >> +else >> + AC_MSG_NOTICE([building stable and legacy API (no drafts)]) >> +fi >> >> I could use the ./configure --draft=no in my build instructions, if >> you have a better idea... > > I tried to pass the --with-drafts=no or the --with-drafts=yes, still > the same error message.
I see that some other embedded distros had to patch like this to avoid using the AC_CHECK_FILE(.git,: https://github.com/openembedded/meta-openembedded/blob/master/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools/0001-Remove-AC_CHECK_FILE-for-cross-compilation.patch -- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-3500762 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators." _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
