All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] libqmi and modem-manager
@ 2017-05-11 13:01 Vicente Olivert Riera
  2017-05-11 13:03 ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2017-05-11 13:01 UTC (permalink / raw)
  To: buildroot

Hello Thomas and Matthew,

this commit from Matthew broke libqmi compilation:

https://git.busybox.net/buildroot/commit/?id=c78b65c4f161ec101ff02880788ef22eb7c87d76

Then this commit from Thomas fixed the former bogus commit and libqmi
started to compile file again:

https://git.busybox.net/buildroot/commit/?id=4d11848a21d4424a04e8428c4cd3bd5e972aacdf

The problem is that now modem-manager with qmi support fails to compile
with an error like this one:

  CC       mm-modem-helpers-qmi.lo
In file included from
/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-message.h:39:0,
                 from
/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-device.h:34,
                 from
/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/libqmi-glib.h:32,
                 from mm-modem-helpers-qmi.h:22,
                 from mm-modem-helpers-qmi.c:16:
/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-utils.h:37:15:
error: static declaration of ?canonicalize_file_name? follows non-static
declaration
 static char * canonicalize_file_name(const char *path)

If I revert both commits modem-manager with qmi support compiles just fine.

Could you please have a look to that issue?

This is the defconfig I'm using:

BR2_mipsel=y
BR2_mips_32r2=y
# BR2_MIPS_SOFT_FLOAT is not set
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_MODEM_MANAGER=y
BR2_PACKAGE_MODEM_MANAGER_LIBQMI=y
# BR2_TARGET_ROOTFS_TAR is not set

Thanks,
-- 
Vincent

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] libqmi and modem-manager
  2017-05-11 13:01 [Buildroot] libqmi and modem-manager Vicente Olivert Riera
@ 2017-05-11 13:03 ` Matthew Weber
  2017-05-13  3:13   ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Weber @ 2017-05-11 13:03 UTC (permalink / raw)
  To: buildroot

Vicente,

On Thu, May 11, 2017 at 8:01 AM, Vicente Olivert Riera
<Vincent.Riera@imgtec.com> wrote:
> Hello Thomas and Matthew,
>
> this commit from Matthew broke libqmi compilation:
>
> https://git.busybox.net/buildroot/commit/?id=c78b65c4f161ec101ff02880788ef22eb7c87d76
>
> Then this commit from Thomas fixed the former bogus commit and libqmi
> started to compile file again:
>
> https://git.busybox.net/buildroot/commit/?id=4d11848a21d4424a04e8428c4cd3bd5e972aacdf
>
> The problem is that now modem-manager with qmi support fails to compile
> with an error like this one:
>
>   CC       mm-modem-helpers-qmi.lo
> In file included from
> /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-message.h:39:0,
>                  from
> /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-device.h:34,
>                  from
> /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/libqmi-glib.h:32,
>                  from mm-modem-helpers-qmi.h:22,
>                  from mm-modem-helpers-qmi.c:16:
> /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-utils.h:37:15:
> error: static declaration of ?canonicalize_file_name? follows non-static
> declaration
>  static char * canonicalize_file_name(const char *path)
>
> If I revert both commits modem-manager with qmi support compiles just fine.
>
> Could you please have a look to that issue?
>
> This is the defconfig I'm using:
>
> BR2_mipsel=y
> BR2_mips_32r2=y
> # BR2_MIPS_SOFT_FLOAT is not set
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_PACKAGE_MODEM_MANAGER=y
> BR2_PACKAGE_MODEM_MANAGER_LIBQMI=y
> # BR2_TARGET_ROOTFS_TAR is not set
>

I'll take a look, sorry about the indirect build failure.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] libqmi and modem-manager
  2017-05-11 13:03 ` Matthew Weber
@ 2017-05-13  3:13   ` Matthew Weber
  2017-05-15  2:29     ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Weber @ 2017-05-13  3:13 UTC (permalink / raw)
  To: buildroot

Vicente,

On Thu, May 11, 2017 at 8:03 AM, Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
>
> Vicente,
>
> On Thu, May 11, 2017 at 8:01 AM, Vicente Olivert Riera
> <Vincent.Riera@imgtec.com> wrote:
> > Hello Thomas and Matthew,
> >
> > this commit from Matthew broke libqmi compilation:
> >
> > https://git.busybox.net/buildroot/commit/?id=c78b65c4f161ec101ff02880788ef22eb7c87d76
> >
> > Then this commit from Thomas fixed the former bogus commit and libqmi
> > started to compile file again:
> >
> > https://git.busybox.net/buildroot/commit/?id=4d11848a21d4424a04e8428c4cd3bd5e972aacdf
> >
> > The problem is that now modem-manager with qmi support fails to compile
> > with an error like this one:
> >
> >   CC       mm-modem-helpers-qmi.lo
> > In file included from
> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-message.h:39:0,
> >                  from
> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-device.h:34,
> >                  from
> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/libqmi-glib.h:32,
> >                  from mm-modem-helpers-qmi.h:22,
> >                  from mm-modem-helpers-qmi.c:16:
> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-utils.h:37:15:
> > error: static declaration of ?canonicalize_file_name? follows non-static
> > declaration
> >  static char * canonicalize_file_name(const char *path)
> >
> > If I revert both commits modem-manager with qmi support compiles just fine.
> >
> > Could you please have a look to that issue?
> >
> > This is the defconfig I'm using:
> >
> > BR2_mipsel=y
> > BR2_mips_32r2=y
> > # BR2_MIPS_SOFT_FLOAT is not set
> > BR2_TOOLCHAIN_EXTERNAL=y
> > BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> > BR2_PACKAGE_MODEM_MANAGER=y
> > BR2_PACKAGE_MODEM_MANAGER_LIBQMI=y
> > # BR2_TARGET_ROOTFS_TAR is not set
> >
>
>

So the fix I'm currently testing removes the static inline from the
libqmi header and instead puts the function in the file where it's
used.  I didn't realize the header was a shared file for other
packages to use.  So far no build failures across both musl and glibc
test builds.

Matt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] libqmi and modem-manager
  2017-05-13  3:13   ` Matthew Weber
@ 2017-05-15  2:29     ` Matthew Weber
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2017-05-15  2:29 UTC (permalink / raw)
  To: buildroot

Vicente,

On Fri, May 12, 2017 at 10:13 PM, Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
> Vicente,
>
> On Thu, May 11, 2017 at 8:03 AM, Matthew Weber
> <matthew.weber@rockwellcollins.com> wrote:
>>
>> Vicente,
>>
>> On Thu, May 11, 2017 at 8:01 AM, Vicente Olivert Riera
>> <Vincent.Riera@imgtec.com> wrote:
>> > Hello Thomas and Matthew,
>> >
>> > this commit from Matthew broke libqmi compilation:
>> >
>> > https://git.busybox.net/buildroot/commit/?id=c78b65c4f161ec101ff02880788ef22eb7c87d76
>> >
>> > Then this commit from Thomas fixed the former bogus commit and libqmi
>> > started to compile file again:
>> >
>> > https://git.busybox.net/buildroot/commit/?id=4d11848a21d4424a04e8428c4cd3bd5e972aacdf
>> >
>> > The problem is that now modem-manager with qmi support fails to compile
>> > with an error like this one:
>> >
>> >   CC       mm-modem-helpers-qmi.lo
>> > In file included from
>> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-message.h:39:0,
>> >                  from
>> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-device.h:34,
>> >                  from
>> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/libqmi-glib.h:32,
>> >                  from mm-modem-helpers-qmi.h:22,
>> >                  from mm-modem-helpers-qmi.c:16:
>> > /br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include/libqmi-glib/qmi-utils.h:37:15:
>> > error: static declaration of ?canonicalize_file_name? follows non-static
>> > declaration
>> >  static char * canonicalize_file_name(const char *path)
>> >
>> > If I revert both commits modem-manager with qmi support compiles just fine.
>> >
>> > Could you please have a look to that issue?
>> >
>> > This is the defconfig I'm using:
>> >
>> > BR2_mipsel=y
>> > BR2_mips_32r2=y
>> > # BR2_MIPS_SOFT_FLOAT is not set
>> > BR2_TOOLCHAIN_EXTERNAL=y
>> > BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
>> > BR2_PACKAGE_MODEM_MANAGER=y
>> > BR2_PACKAGE_MODEM_MANAGER_LIBQMI=y
>> > # BR2_TARGET_ROOTFS_TAR is not set
>> >
>>
>>
>
> So the fix I'm currently testing removes the static inline from the
> libqmi header and instead puts the function in the file where it's
> used.  I didn't realize the header was a shared file for other
> packages to use.  So far no build failures across both musl and glibc
> test builds.
>


I've created the following patch and so far it tests out to accomplish
the original musl fix in libqmi and the modem-manager issue above.

https://patchwork.ozlabs.org/patch/762195/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-15  2:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 13:01 [Buildroot] libqmi and modem-manager Vicente Olivert Riera
2017-05-11 13:03 ` Matthew Weber
2017-05-13  3:13   ` Matthew Weber
2017-05-15  2:29     ` Matthew Weber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.