Openwrt modemmanager compile error
lspwaterproofing at gmail.com
Tue Feb 20 18:24:22 UTC 2018
On Feb 20, 2018 12:12 PM, "Aleksander Morgado" <aleksander at aleksander.es>
On Tue, Feb 20, 2018 at 7:02 PM, Russ Westrem
<lspwaterproofing at gmail.com> wrote:
> On Tue, Feb 20, 2018 at 11:53 AM, Aleksander Morgado
> <aleksander at aleksander.es> wrote:
>> >> make: Entering directory
>> >> '/home/russ/MM/source/build_dir/target-arm_cortex-a9+
>> >> CC libmbim_glib_core_la-mbim-device.lo
>> >> mbim-device.c: In function 'initable_init_async':
>> >> mbim-device.c:2168:15: error: assignment from incompatible pointer
>> >> [-Werror=incompatible-pointer-types]
>> >> ctx->self = g_object_ref (initable);
>> >> ^
>> > Oh, I think this is a recent change in GLib, which makes
>> > g_object_ref() keep the type info in its return value.
>> > This specific issue is anyway obsolete in MBIM 1.16.0 as that code was
>> > changed during the switch to GTask. I'd suggest you upgrade to 1.16.0
>> > and retry.
>> > Still a little new to this.
>> > I'm in the libmbim makefile. Where do I find the exact info to put
>> > PKG_VERSION
>> > And
>> > PKG_SOURCE_VERSION
>> > so that I can get the 1.16.0 libmbim
>> If you want the exact stable version release, you can just refer to
>> the tag in PKG_SOURCE_VERSION, e.g. this would probably work:
>> You could probably just get rid of the second one, but as we're
>> building from git you may want in the future to use a newer commit id
>> while keeping the PKG_VERSION, or using something like
>> If you prefer to refer to the commit id instead:
> ok did that. Now i have an issue with the patch.
> Applying ./patches/0001-openwrt-remove-docs.patch using plaintext:
> patching file Makefile.am
> Hunk #1 succeeded at 1 with fuzz 2.
> patching file autogen.sh
> Hunk #1 FAILED at 14.
> 1 out of 1 hunk FAILED -- saving rejects to file autogen.sh.rej
> patching file configure.ac
> Hunk #1 succeeded at 101 (offset 9 lines).
> Hunk #2 succeeded at 157 (offset 8 lines).
> Hunk #3 succeeded at 173 (offset 10 lines).
> Hunk #4 succeeded at 190 (offset 10 lines).
> Patch failed! Please fix ./patches/0001-openwrt-remove-docs.patch!
> Makefile:69: recipe for target
What happens if you just remove both patches from the patches/ directory?
I should update the openwrt repo with newer versions myself...
That worked then had the same issues for libqmi. I updated libqmi to
1.20.0 and then got the patch error. I then removed the libqmi patches as
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ModemManager-devel