Re: Fail to compile ModemManager



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



On Tue, 2010-03-09 at 16:38 -0800, Dan Williams wrote:
> On Tue, 2010-03-09 at 16:03 +0700, Nguyen Canh Toan wrote:
> > Dear Jirka,
> > 
> > I have experienced hard time with this problem. Thank for your quickly
> > reply. But, As I mention, I am using currently udev143 which is said
> > that support ...
> 
> Even udev-143 should be sufficient, since the function you were having
> problems with earlier definitely exists in libudev in the 143 release.
> I'm running ModemManager on a machine with udev-143 on it too.  I'd
> recommend that we figure out what problems are with udev-143 before you
> update to a later udev version, since doing that is tricky due to
> interdependencies in the udev stack.
> 
> With udev-143, what do you get for:
> 
> grep udev_monitor_filter_add_match_subsystem_devtype /usr/lib/libudev.so
> 
> Dan
> 
> > I also tried to upgrade udev to 147~6. But get fail to recompile it
> > too!. Here is output:
> > 
> > libtool: link: gcc -g -O2 -Wl,--as-needed -o extras/usb_id/usb_id
> > extras/usb_id/usb_id.o  libudev/.libs/libudev-private.a
> > depbase=`echo extras/v4l_id/v4l_id.o | sed 's|[^/]*$|.deps/&|;s|\.o
> > $||'`;\
> > 	gcc -DHAVE_CONFIG_H -I.  -include ./config.h -I./libudev -DSYSCONFDIR=
> > \""/etc"\" -DLIBEXECDIR=\""/usr/libexec"\"   -g -O2 -MT
> > extras/v4l_id/v4l_id.o -MD -MP -MF $depbase.Tpo -c -o
> > extras/v4l_id/v4l_id.o extras/v4l_id/v4l_id.c &&\
> > 	mv -f $depbase.Tpo $depbase.Po
> > /bin/bash ./libtool --tag=CC   --mode=link gcc  -g -O2 -Wl,--as-needed
> > -o extras/v4l_id/v4l_id extras/v4l_id/v4l_id.o
> > libudev/libudev-private.la 
> > libtool: link: gcc -g -O2 -Wl,--as-needed -o extras/v4l_id/v4l_id
> > extras/v4l_id/v4l_id.o  libudev/.libs/libudev-private.a
> > gcc -DHAVE_CONFIG_H -I.  -include ./config.h -I./libudev -DSYSCONFDIR=
> > \""/etc"\" -DLIBEXECDIR=\""/usr/libexec"\"    -g -O2 -MT
> > extras/hid2hci/extras_hid2hci_hid2hci-hid2hci.o -MD -MP -MF
> > extras/hid2hci/.deps/extras_hid2hci_hid2hci-hid2hci.Tpo -c -o
> > extras/hid2hci/extras_hid2hci_hid2hci-hid2hci.o `test -f
> > 'extras/hid2hci/hid2hci.c' || echo './'`extras/hid2hci/hid2hci.c
> > In file included from extras/hid2hci/hid2hci.c:31:
> > /usr/include/linux/hiddev.h:40: error: expected specifier-qualifier-list
> > before ‘__u32’
> > /usr/include/linux/hiddev.h:51: error: expected specifier-qualifier-list
> > before ‘__u32’
> > /usr/include/linux/hiddev.h:59: error: expected specifier-qualifier-list
> > before ‘__s32’
> > /usr/include/linux/hiddev.h:64: error: expected specifier-qualifier-list
> > before ‘__u32’
> > /usr/include/linux/hiddev.h:89: error: expected specifier-qualifier-list
> > before ‘__u32’
> > /usr/include/linux/hiddev.h:119: error: expected
> > specifier-qualifier-list before ‘__u32’
> > /usr/include/linux/hiddev.h:132: error: expected
> > specifier-qualifier-list before ‘__u32’
> > extras/hid2hci/hid2hci.c: In function ‘hid_logitech_send_report’:
> > extras/hid2hci/hid2hci.c:68: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘report_type’
> > extras/hid2hci/hid2hci.c:69: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘report_id’
> > extras/hid2hci/hid2hci.c:70: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘field_index’
> > extras/hid2hci/hid2hci.c:71: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘usage_index’
> > extras/hid2hci/hid2hci.c:72: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘usage_code’
> > extras/hid2hci/hid2hci.c:73: error: ‘struct hiddev_usage_ref’ has no
> > member named ‘value’
> > extras/hid2hci/hid2hci.c:80: error: ‘struct hiddev_report_info’ has no
> > member named ‘report_type’
> > extras/hid2hci/hid2hci.c:81: error: ‘struct hiddev_report_info’ has no
> > member named ‘report_id’
> > extras/hid2hci/hid2hci.c:82: error: ‘struct hiddev_report_info’ has no
> > member named ‘num_fields’
> > make[2]: *** [extras/hid2hci/extras_hid2hci_hid2hci-hid2hci.o] Error 1
> > make[1]: *** [all-recursive] Error 1
> > make: *** [all] Error 2
> > 
> > 
> > Iam wondering about whether to upgrade my Ubuntu 9.04 to 9.10 or not.
> > It's seem that my OS is rather old.
> > Please help.
> > 
> > 
> > 
> > On Tue, 2010-03-09 at 09:33 +0100, Jirka Klimes wrote:
> > > On Tuesday 09 of March 2010 05:13:08 Nguyen Canh Toan wrote:
> > > > Hi,
> > > > 
> > > > I am trying to recompile ModemManager.
> > > > 
> > > > My workstation:
> > > > Linux vt_ttpm_rd_toannc5 2.6.28-18-generic #59-Ubuntu SMP Thu Jan 28
> > > > 01:23:03 UTC 2010 i686 GNU/Linux
> > > > 
> > > > Make process output the following error and exit:
> > > > ...........
> > > > -lglib-2.0   ../marshallers/libmarshallers.la ./libmodem-helpers.la
> > > > libtool: link: gcc -Wall -Werror -std=gnu89 -g -O2 -Wshadow
> > > > -Wmissing-declarations -Wmissing-prototypes
> > > > -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter
> > > > -Wno-sign-compare -fno-strict-aliasing -o modem-manager
> > > > modem_manager-main.o modem_manager-mm-callback-info.o
> > > > modem_manager-mm-manager.o modem_manager-mm-modem.o
> > > > modem_manager-mm-port.o modem_manager-mm-modem-base.o
> > > > modem_manager-mm-serial-port.o modem_manager-mm-serial-parsers.o
> > > > modem_manager-mm-generic-cdma.o modem_manager-mm-generic-gsm.o
> > > > modem_manager-mm-modem-cdma.o modem_manager-mm-modem-gsm-card.o
> > > > modem_manager-mm-modem-gsm-network.o modem_manager-mm-modem-gsm-sms.o
> > > > modem_manager-mm-modem-simple.o modem_manager-mm-options.o
> > > > modem_manager-mm-plugin.o modem_manager-mm-plugin-base.o
> > > > modem_manager-mm-properties-changed-signal.o -Wl,--export-dynamic
> > > > -L//lib -lgudev-1.0 ../marshallers/.libs/libmarshallers.a -ldbus-glib-1
> > > > -ldbus-1 /usr/lib/libgmodule-2.0.so /usr/lib/libgobject-2.0.so
> > > > /usr/lib/libglib-2.0.so ./.libs/libmodem-helpers.a
> > > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libgudev-1.0.so:
> > > > undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
> > > > collect2: ld returned 1 exit status
> > > > make[4]: *** [modem-manager] Error 1
> > > > make[4]: Leaving directory `/home/toannc/Desktop/ModemManager-0.3/src'
> > > > make[3]: *** [all-recursive] Error 1
> > > > make[3]: Leaving directory `/home/toannc/Desktop/ModemManager-0.3/src'
> > > > make[2]: *** [all] Error 2
> > > > make[2]: Leaving directory `/home/toannc/Desktop/ModemManager-0.3/src'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory `/home/toannc/Desktop/ModemManager-0.3'
> > > > make: *** [all] Error 2
> > > > 
> > > > Currently, I am using udev-143
> > > > toannc vt_ttpm_rd_toannc5:~/Desktop/ModemManager-0.3$ udevadm -V
> > > > 143
> > > > 
> > > 
> > > You should probably upgrade udev as 
> > > udev_monitor_filter_add_match_subsystem_devtype was not found on your system.
> > > 
> > > You can look at https://bugs.launchpad.net/ubuntu/+source/udev/+bug/427672 , 
> > > last comment suggest udev - 147-1.
> > > 
> > > Problems in compiling due to udev was also discussed on this list
> > > some time ago:
> > > http://www.mail-archive.com/networkmanager-list gnome org/msg13072.html
> > > 
> > > Jirka
> > 
> > _______________________________________________
> > NetworkManager-list mailing list
> > NetworkManager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
> 



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