Re: altair/tests/test_modem_helpers_altair_lte-test-modem-helpers-altair-lte.o



Op 2013-10-31 om 11:11 schreef Geert Stappers:

Hello NM & MM Mailinglist,

Over here I have a strange error while compiling modem-manager
from git. This is what `make` gives me:

<screenshot>
  CCLD     test-modem-helpers-huawei
  CC       altair/test_modem_helpers_altair_lte-mm-modem-helpers-altair-lte.o
  CC       altair/tests/test_modem_helpers_altair_lte-test-modem-helpers-altair-lte.o
  CCLD     test-modem-helpers-altair-lte
/usr/bin/ld: altair/tests/test_modem_helpers_altair_lte-test-modem-helpers-altair-lte.o: undefined 
reference to symbol 'g_type_init'
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [test-modem-helpers-altair-lte] Error 1
make[2]: Leaving directory `/home/stappers/src/ModemManager/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/stappers/src/ModemManager'
make: *** [all] Error 2
</screenshot>

The strange thing is that previous test with 'g_type_init' do get compiled.


My workaround is to not build the altair plug-in test.

diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index d775d5a..24994e1 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -359,17 +359,6 @@ libmm_plugin_altair_lte_la_SOURCES = \
 libmm_plugin_altair_lte_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS)
 libmm_plugin_altair_lte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
 
-noinst_PROGRAMS += test-modem-helpers-altair-lte
-test_modem_helpers_altair_lte_SOURCES = \
-       altair/mm-modem-helpers-altair-lte.c \
-       altair/mm-modem-helpers-altair-lte.h \
-       altair/tests/test-modem-helpers-altair-lte.c
-test_modem_helpers_altair_lte_CPPFLAGS = \
-       -I$(top_srcdir)/plugins/altair \
-       $(PLUGIN_COMMON_COMPILER_FLAGS)
-test_modem_helpers_altair_lte_LDFLAGS = $(top_builddir)/libmm-glib/libmm-glib.l
-
-
 # VIA modem
 libmm_plugin_via_la_SOURCES = \
        via/mm-plugin-via.c \


Now I have a completed build.


Groeten
Geert Stappers
-- 
Leven en laten leven


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]