Master build failed for target 'test-helpers'

Aleksander Morgado aleksander at
Thu Jan 18 14:16:26 UTC 2018

On Thu, Jan 18, 2018 at 2:52 PM, Daniele Palmas <dnlplm at> wrote:
> Hi,
> building current master returns the following error in my system:

Pushed to git master, thanks.

For reference, I wrongly tend to ignore LIBADD rules in this kind of
cases because I try to make sure the actual programs being built get
the dependent libraries specified in the correct order. But it's
definitely the correct way to specify linker deps in the libraries
themselves, as in this case.

> ...
> make[4]: Entering directory '/home/daniele/git/libqmi/src/qmicli/test'
>   CC       test_helpers-test-helpers.o
>   CCLD     test-helpers
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/
> undefined reference to symbol 'g_type_class_unref'
> /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/
> error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> Makefile:393: recipe for target 'test-helpers' failed
> ...
> Not sure if it is the right way to fix this issue, but the attached
> patch allows building.
> Regards,
> Daniele
> _______________________________________________
> libqmi-devel mailing list
> libqmi-devel at


More information about the libqmi-devel mailing list