Re: Fail to compile ModemManager



On Wed, 2010-03-10 at 13:57 +0700, Nguyen Canh Toan wrote:
> Dear Dan,
> 
> Thank for your consideration, my PC said:
> 
> toannc vt_ttpm_rd_toannc5:~/Desktop/nm-applet-0.7.0$ udevadm -V
> 143
> 
> toannc vt_ttpm_rd_toannc5:~/Desktop/nm-applet-0.7.0$ grep
> udev_monitor_filter_add_match_subsystem_devtype /usr/lib/libudev.so
> Binary file /usr/lib/libudev.so matches

Ok, this implies that you should  not have gotten the original error
that you did get.  That error indicated that the function in the error
message was not provided by libudev.so, but your grep indicates that it
is provided by libudev.so.

Now that I look at your original error, it may be the case that you're
using a newer linker, but ModemManager is not updated to support that.
I don't see -ludev on the link line, which coudl cause the issue.  Does
this patch help... if not, please include the full error line from build
build.

Dan


diff --git a/configure.ac b/configure.ac
index 6f6621d..eba9411 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,10 @@ PKG_CHECK_MODULES(GUDEV, gudev-1.0)
 AC_SUBST(GUDEV_CFLAGS)
 AC_SUBST(GUDEV_LIBS)
 
+PKG_CHECK_MODULES(UDEV, libudev)
+AC_SUBST(UDEV_CFLAGS)
+AC_SUBST(UDEV_LIBS)
+
 AC_ARG_WITH(dbus-sys-dir, AS_HELP_STRING([--with-dbus-sys-dir=DIR], [where D-BUS system.d directory is]))
 
 if test -n "$with_dbus_sys_dir" ; then
diff --git a/src/Makefile.am b/src/Makefile.am
index 3d93806..b34cbd0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,6 +16,7 @@ sbin_PROGRAMS = modem-manager
 modem_manager_CPPFLAGS = \
 	$(MM_CFLAGS) \
 	$(GUDEV_CFLAGS) \
+	$(UDEV_CFLAGS) \
 	$(top_srcdir) \
 	-I${top_builddir}/marshallers \
 	-DPLUGINDIR=\"$(pkglibdir)\"
@@ -27,6 +28,7 @@ endif
 modem_manager_LDADD = \
 	$(MM_LIBS) \
 	$(GUDEV_LIBS) \
+	$(UDEV_LIBS) \
 	$(top_builddir)/marshallers/libmarshallers.la \
 	$(top_builddir)/libqcdm/src/libqcdm.la \
 	$(builddir)/libmodem-helpers.la




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