Getting error while building libqmi from source code

Anesh anesh_kumar at yahoo.com
Wed Dec 11 19:51:50 UTC 2019


Hi,Thanks, by commenting out those lines in configure.ac, I was able to build successfully.As you asked, the version for m4 is 1.4.18 on my system.-Anesh

 

    On Wednesday, December 11, 2019, 03:36:53 AM EST, Aleksander Morgado <aleksander at aleksander.es> wrote:  
 
 Hey

> I cloned libqmi source code from this link https://github.com/freedesktop/libqmi.git
> when I run ./autogen.sh I get the following error.
>
> .
> autoreconf: running: aclocal --force -I m4
> /usr/bin/m4:configure.ac:66: recursion limit of 1024 exceeded, use -L<N> to change it
> autom4te: /usr/bin/m4 failed with exit status: 1
> aclocal: error: echo failed with exit status: 1
> autoreconf: aclocal failed with exit status: 1
> ./autogen.sh: 21: ./autogen.sh: ./configure: not found
>
> Can somebody please help me with how to get rid of this error?

Looks like you're hitting the same issue as in the ChromeOS builds:
https://gitlab.freedesktop.org/mobile-broadband/libqmi/issues/22
That seems to be some issue with an old m4 in your system, could you
let us know which version of m4 are you using?

If you want to get rid of the issue and keep the build on, just remove
all the AX_ macros:

diff --git a/configure.ac b/configure.ac
index e82aa43..b6f4a08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,28 +43,6 @@ dnl Initialize libtool
 LT_PREREQ([2.2])
 LT_INIT

-dnl-----------------------------------------------------------------------------
-dnl Compiler warnings
-dnl
-
-dnl Make sure autoconf-archive is available
-m4_pattern_forbid([^AX_(COMPILER_FLAGS|COMPILER_FLAGS_(CFLAGS|GIR|LDFLAGS))\b],
-  [Unexpanded AX_ macro found. Please install GNU autoconf-archive])
-
-dnl Detect git or release builds
-AX_IS_RELEASE([git-directory])
-
-dnl Function type cast disabled: used throughout the code especially to
-dnl cast GAsyncReadyCallbacks with the real object type instead of GObject
-DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-cast-function-type"
-
-dnl All message protocol structs are packed, never complain about it
-DISABLED_WARNINGS="${DISABLED_WARNINGS} -Wno-packed"
-
-dnl Setup compiler checks
-AX_COMPILER_FLAGS()
-AX_COMPILER_FLAGS_CFLAGS(,,,[${DISABLED_WARNINGS}])
-
 dnl Specify gnu89 mode
 if test "$GCC" = "yes"; then
    CFLAGS="$CFLAGS -std=gnu89"



-- 
Aleksander
https://aleksander.es
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20191211/5482c112/attachment.htm>


More information about the libqmi-devel mailing list