RE: NetworkManager Ignoring rfcomm0 device (bluetooth DUN) on Fedora 13Beta

2010-05-10 Thread Nguyen Canh Toan
Hi, 

It seems that NetworkManager cannot find driver for your device, also your
device is not provide 'Generic interface'. Try to find/write its driver for
yourself.

 

  _  

From: networkmanager-list-boun...@gnome.org
[mailto:networkmanager-list-boun...@gnome.org] On Behalf Of Ascanio Alba
Sent: Sunday, May 09, 2010 9:55 PM
To: networkmanager-list@gnome.org
Subject: NetworkManager Ignoring rfcomm0 device (bluetooth DUN) on Fedora
13Beta

 

Hi,

 I have a bluetooth DUN device (/dev/rfcomm0) exported by modem-manager but
being ignored by NetworkManager.
This is on Fedora 13 Beta, latest updates-testing. I was getting some
SELinux denials but did an audit2allow to remove that variable from the
system.

blueman attaches to the DUN service.
modem-manager sees and exports the device, but NM ignores it.

Version: NetworkManager-0.8.0-12.git20100504.fc13.x86_64

NetworkManager --no-daemon --log-level=DEBUG

-- Original message: type=0x14 length=56 flags=REQUEST,ACK,ATOMIC
sequence-nr=1273466780 pid=4202530
NetworkManager[8226]: warn bluez error getting default adapter: The name
org.bluez was not provided by any .service files
NetworkManager[8226]: debug [1273466770.628023] [nm-netlink-monitor.c:117]
link_msg_handler(): netlink link message: iface idx 1 flags 0x10049
NetworkManager[8226]: debug [1273466770.628166] [nm-netlink-monitor.c:117]
link_msg_handler(): netlink link message: iface idx 2 flags 0x11043
NetworkManager[8226]: debug [1273466770.628277] [nm-netlink-monitor.c:117]
link_msg_handler(): netlink link message: iface idx 3 flags 0x1002
NetworkManager[8226]: info Activation (eth0) Stage 3 of 5 (IP Configure
Start) started...
NetworkManager[8226]: info Activation (eth0) Stage 4 of 5 (IP4 Configure
Get) scheduled...
NetworkManager[8226]: info Activation (eth0) Stage 3 of 5 (IP Configure
Start) complete.
NetworkManager[8226]: info Activation (eth0) Stage 4 of 5 (IP4 Configure
Get) started...
NetworkManager[8226]: info Activation (eth0) Stage 5 of 5 (IP Configure
Commit) scheduled...
NetworkManager[8226]: info Activation (eth0) Stage 4 of 5 (IP4 Configure
Get) complete.
NetworkManager[8226]: info Activation (eth0) Stage 5 of 5 (IP Configure
Commit) started...
NetworkManager[8226]: info (eth0): device state change: 7 - 8 (reason 0)
NetworkManager[8226]: info Policy set 'System eth0' (eth0) as default for
IPv4 routing and DNS.
NetworkManager[8226]: info Activation (eth0) successful, device activated.
NetworkManager[8226]: info Activation (eth0) Stage 5 of 5 (IP Configure
Commit) complete.
NetworkManager[8226]: debug [1273466778.926831] [nm-netlink-monitor.c:117]
link_msg_handler(): netlink link message: iface idx 7 flags 0x1002
NetworkManager[8226]: debug [1273466778.937908] [nm-udev-manager.c:477]
handle_uevent(): UDEV event: action 'add' subsys 'net' device 'pan0'
NetworkManager[8226]: warn /sys/devices/virtual/net/pan0: couldn't
determine device driver; ignoring...
NetworkManager[8226]: debug [1273466785.853458] [nm-udev-manager.c:477]
handle_uevent(): UDEV event: action 'change' subsys 'rfkill' device
'rfkill0'
NetworkManager[8226]: info ignoring modem 'rfcomm0' (no associated
Bluetooth device)



modem-manager --debug:

** Message: Loaded plugin Option High-Speed
** Message: Loaded plugin Ericsson MBM
** Message: Loaded plugin Huawei
** Message: Loaded plugin Generic
** Message: Loaded plugin MotoC
** Message: Loaded plugin AnyData
** Message: Loaded plugin Sierra
** Message: Loaded plugin Nokia
** Message: Loaded plugin Option
** Message: Loaded plugin ZTE
** Message: Loaded plugin Novatel
** Message: Loaded plugin Longcheer
** Message: Loaded plugin Gobi
** (modem-manager:8225): DEBUG: (tty/ttyS1): port's parent platform driver
is not whitelisted
** (modem-manager:8225): DEBUG: (tty/ttyS2): port's parent platform driver
is not whitelisted
** (modem-manager:8225): DEBUG: (tty/ttyS3): port's parent platform driver
is not whitelisted
** (modem-manager:8225): DEBUG: (tty/ttyS0): could not get port's parent
device
** (modem-manager:8225): DEBUG: (net/vboxnet0): could not get port's parent
device
** (modem-manager:8225): DEBUG: (net/pan0): could not get port's parent
device
** (modem-manager:8225): DEBUG: (tty/rfcomm0): could not get port's parent
device
** Message: (rfcomm0) opening serial device...
** (modem-manager:8225): DEBUG: 1273466797.123682 (rfcomm0) device open
count is 1 (open)
** (modem-manager:8225): DEBUG: (rfcomm0): probe requested by plugin
'Generic'
** (modem-manager:8225): DEBUG: 1273466797.222951 (rfcomm0): --
'AT+GCAPCR'
** (modem-manager:8225): DEBUG: 1273466798.23952 (rfcomm0): --
'AT+GCAPCRCRLF+GCAP: +CGSM,+DS,+WCRLFCRLFOKCRLF'
** (modem-manager:8225): DEBUG: 1273466798.24144 (rfcomm0) device open
count is 0 (close)
** Message: (rfcomm0) closing serial device...
** Message: (rfcomm0) type primary claimed by
/sys/devices/pci:00/:00:13.0/usb5/5-1
** Message: (rfcomm0) opening serial device...
** (modem-manager:8225): DEBUG: 1273466798.25980 (rfcomm0) device open
count is 

RE: Add new conntion with DBus API

2010-05-05 Thread Nguyen Canh Toan
Dear Jirka,

Thank for helping me,

When I try to run add-system-connection.py without/with root privileged, it
complain with messages as follow respectively:

dbus.exceptions.DBusException:
org.freedesktop.NetworkManagerSettings.System.NotPrivileged:
org.freedesktop.network-manager-settings.system.modify
auth_admin_keep_always

dbus.exceptions.DBusException:
org.freedesktop.NetworkManagerSettings.System.NotPrivileged: Error getting
information about caller: org.freedesktop.ConsoleKit.Manager.GeneralError:
Unable to lookup session information for process '22151'

Could you please explain it to me? It's very lack of information when google
it.

Thanks,
Toan Nguyen


-Original Message-
From: Jirka Klimes [mailto:jkli...@redhat.com] 
Sent: Wednesday, May 05, 2010 1:53 AM
To: networkmanager-list@gnome.org
Cc: Nguyen Canh Toan
Subject: Re: Add new conntion with DBus API

On Thursday 06 of May 2010 07:39:07 Nguyen Canh Toan wrote:
 Hi all,
 
 
 
 Currently, I have a purpose of programmatically add  remove connection
 configuration through DBus interface
 org.freedesktop.NetworkManagerSettings.Connection.
 
 I found an API Delete() on
 org.freedesktop.NetworkManagerSettings.Connection but I can't find what
 function stuff to create new connection.
 
 
 
 Did anyone experience with this issue? Could you please to share it to me?
 
 
 
 Thanks,
 
 Toan Nguyen

You search for AddConnection() method of 
org.freedesktop.NetworkManagerSettings interface.

For a simple python example see:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/pyth
on/add-
system-connection.py

More complex example can be found here:
http://markmail.org/message/2xfwvjqjovu4fk2j

For specification of settings parameters 
see:http://projects.gnome.org/NetworkManager/developers/settings-spec-08.htm
l

Jirka

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Add new conntion with DBus API

2010-05-04 Thread Nguyen Canh Toan
Hi all,

 

Currently, I have a purpose of programmatically add  remove connection
configuration through DBus interface
org.freedesktop.NetworkManagerSettings.Connection. 

I found an API Delete() on org.freedesktop.NetworkManagerSettings.Connection
but I can't find what function stuff to create new connection. 

 

Did anyone experience with this issue? Could you please to share it to me?

 

Thanks,

Toan Nguyen

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Confusing about DBus API specification

2010-04-28 Thread Nguyen Canh Toan
Thank Pablo for quickly reply, 

 

I think I am misunderstanding something. I have rewritten my script as your
advice but I still error. Here is my short script:

 

 

#!/usr/bin/env python

 

import dbus

bus = dbus.SystemBus()

 

proxy = bus.get_object(org.freedesktop.NetworkManager,
/org/freedesktop/NetworkManager)

proxy_prop = dbus.Interface(proxy, org.freedesktop.DBus.Properties)

manager = dbus.Interface(proxy, org.freedesktop.NetworkManager)

settings = dbus.Interface(proxy, org.freedesktop.NetworkManagerSettings)

 

#active connection

connections = proxy_prop.Get(org.freedesktop.NetworkManager,
ActiveConnections)

print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
WirelessHardwareEnabled)

print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
WirelessEnabled)

print %d % proxy_prop.Get(org.freedesktop.NetworkManager, State)

for con in connections:

print  %s % con

con_obj = bus.get_object(org.freedesktop.NetworkManager, con)

 

print list connection 

connections =
manager.ListConnections(dbus_interface=org.freedesktop.NetworkManagerSettin
gs)

for con in connections: 

print %s % con

 

 

It till say:

toa...@vt_ttpm_rd_toannc5:~/Desktop$ ./python_dbus_client 

1

1

3

 /org/freedesktop/NetworkManager/ActiveConnection/1

list connection 

Traceback (most recent call last):

  File ./python_dbus_client, line 21, in module

connections =
manager.ListConnections(dbus_interface=org.freedesktop.NetworkManagerSettin
gs)

  File /var/lib/python-support/python2.6/dbus/proxies.py, line 140, in
__call__

**keywords)

  File /var/lib/python-support/python2.6/dbus/connection.py, line 622, in
call_blocking

message, timeout)

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method ListConnections with signature  on interface
org.freedesktop.NetworkManagerSettings doesn't exist

 

Please help.

  _  

From: Pablo Martí Gamboa [mailto:pma...@warp.es] 
Sent: Tuesday, April 27, 2010 11:41 PM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: Confusing about DBus API specification

 

 

2010/4/29 Nguyen Canh Toan toan...@viettel.com.vn

Hi all, 

 

After reading DBus API
http://projects.gnome.org/NetworkManager/developers/spec-07.html#org.freedes
ktop.NetworkManager

I try to list all connection setting by below interface specification

 

org.freedesktop.NetworkManagerSettings

The NetworkManagerSettings interface is provided by the service which
provides connections to NetworkManager.

Methods:

ListConnections ( ) → ao

List the connections stored by this Settings object.

Returns

 

connections - ao

List of connections. 

 

Signals:

NewConnection ( o: connection )

Emitted when a new connection has been configured.

Parameters

 

connection - o

Object path of the new connection. 

 

Interface has no properties.

 

 

Without success. DBus service say:

 

Traceback (most recent call last):

  File ./python_dbus_client, line 21, in module

connections = manager.ListConnections()

  File /var/lib/python-support/python2.6/dbus/proxies.py, line 140, in
__call__

**keywords)

  File /var/lib/python-support/python2.6/dbus/connection.py, line 622, in
call_blocking

message, timeout)

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method ListConnections with signature  on interface
org.freedesktop.NetworkManager doesn't exist


That's because ListConnections is a method of the
org.freedesktop.NetworkManagerSettings interface ;)

Try executing your method as:

connections =
manager.ListConnections(dbus_interface=org.freedesktop.NetworkManagerSettin
gs)

Best regards,

-- 
Pablo Martí // http://minimoesfuerzo.org
python -c print '706d617267616d40676d61696c2e636f6d'.decode('hex')

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Confusing about DBus API specification

2010-04-28 Thread Nguyen Canh Toan
Dear Jirka, 

It's weird. After adjusting my script, it's still error: 

[Here is new script:]
#!/usr/bin/env python

import dbus
bus = dbus.SystemBus()

proxy = bus.get_object(org.freedesktop.NetworkManager,
/org/freedesktop/NetworkManager)
proxy_prop = dbus.Interface(proxy, org.freedesktop.DBus.Properties)
manager = dbus.Interface(proxy, org.freedesktop.NetworkManager)


#proxy_user_setting =
bus.get_object(org.freedesktop.NetworkManagerUserSettings,
/org/freedesktop/NetworkManagerUserSettings)
proxy_sys_setting =
bus.get_object(org.freedesktop.NetworkManagerSystemSettings,
/org/freedesktop/NetworkManagerSystemSettings)
settings = dbus.Interface(proxy_sys_setting,
org.freedesktop.NetworkManagerSettings)

print = active connection
connections = proxy_prop.Get(org.freedesktop.NetworkManager,
ActiveConnections)
print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
WirelessHardwareEnabled)
print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
WirelessEnabled)
print %d % proxy_prop.Get(org.freedesktop.NetworkManager, State)
for con in connections:
print  %s % con
con_obj = bus.get_object(org.freedesktop.NetworkManager, con)

print == list connection 
connections = settings.ListConnections()
for con in connections: 
print %s % con



[Here is log:]
toa...@vt_ttpm_rd_toannc5:~/Desktop$ ./python_dbus_client 
= active connection
1
1
3
== list connection 
Traceback (most recent call last):
  File ./python_dbus_client, line 25, in module
connections = settings.ListConnections()
  File /var/lib/python-support/python2.6/dbus/proxies.py, line 68, in
__call__
return self._proxy_method(*args, **keywords)
  File /var/lib/python-support/python2.6/dbus/proxies.py, line 140, in
__call__
**keywords)
  File /var/lib/python-support/python2.6/dbus/connection.py, line 622, in
call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method ListConnections with signature  on interface
org.freedesktop.NetworkManagerSettings doesn't exist


Please help.

-Original Message-
From: Jirka Klimes [mailto:jkli...@redhat.com] 
Sent: Wednesday, April 28, 2010 1:18 AM
To: networkmanager-list@gnome.org
Cc: Nguyen Canh Toan; 'Pablo Martí Gamboa'
Subject: Re: Confusing about DBus API specification

ListConnections() method is not provided by /org/freedesktop/NetworkManager 
service, rather /org/freedesktop/NetworkManagerSystemSettings and 
org.freedesktop.NetworkManagerUserSettings.
See inline comments to adapt your script.

On Thursday 29 of April 2010 11:05:13 Nguyen Canh Toan wrote:
 Thank Pablo for quickly reply,
 
 
 
 I think I am misunderstanding something. I have rewritten my script as
your
 advice but I still error. Here is my short script:
 
 
 
 
 
 #!/usr/bin/env python
 
 
 
 import dbus
 
 bus = dbus.SystemBus()
 
 
 
 proxy = bus.get_object(org.freedesktop.NetworkManager,
 /org/freedesktop/NetworkManager)
 
add here
proxy1 = bus.get_object(org.freedesktop.NetworkManagerUserSettings, 
/org/freedesktop/NetworkManagerSettings)
for listing user connections or
proxy1 = bus.get_object(org.freedesktop.NetworkManagerSystemSettings, 
/org/freedesktop/NetworkManagerSettings)
for listing system-wide connections.

 proxy_prop = dbus.Interface(proxy, org.freedesktop.DBus.Properties)
 
 manager = dbus.Interface(proxy, org.freedesktop.NetworkManager)
 
 settings = dbus.Interface(proxy, org.freedesktop.NetworkManagerSettings)
You need to use proxy1 here instead of proxy.
settings = dbus.Interface(proxy1, org.freedesktop.NetworkManagerSettings)

 
 
 
 #active connection
 
 connections = proxy_prop.Get(org.freedesktop.NetworkManager,
 ActiveConnections)
 
 print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
 WirelessHardwareEnabled)
 
 print %d % proxy_prop.Get(org.freedesktop.NetworkManager,
 WirelessEnabled)
 
 print %d % proxy_prop.Get(org.freedesktop.NetworkManager, State)
 
 for con in connections:
 
 print  %s % con
 
 con_obj = bus.get_object(org.freedesktop.NetworkManager,
con)
 
 
 
 print list connection 
 
 connections =

manager.ListConnections(dbus_interface=org.freedesktop.NetworkManagerSetti
 n gs)
this line should look like this:
connections = settings.ListConnections()

i.e. using settings interface and no arguments to ListConnections()

 
 for con in connections:
 
 print %s % con
 
 

Jirka

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Confusing about DBus API specification

2010-04-28 Thread Nguyen Canh Toan

Dear Dan,

I do understand these fundamental concepts. Thank for your useful tutorial
anyway.

I think my problem is I do not understand object as well as interface
hierarchy exposed by NetworkManager DBus service.

According to API spec here
(http://projects.gnome.org/NetworkManager/developers/spec-07.html#org.freede
sktop.NetworkManager) and
(http://live.gnome.org/NetworkManager/SystemSetting). I understand it as
below:

1. Service DBus named org.freedesktop.NetworkManagerSystemSetting and
org.freedesktop.NetworkManagerUserSetting is one which I need to connect to
inorder to get connection configuration.
2. Get org.freedesktop.NetworkManagerSettings interface of service proxy
3. Invoke ListConnection() on returned interface.


It seems that your API spec isn't very clear so newcomers, like me, get
confused when doing with this.

Please instruct me how to get used particularly this service. Or please make
your spec more clearly.

Thank for your time  consideration.
Toan Nguyen 

-Original Message-
From: Dan Williams [mailto:d...@redhat.com] 
Sent: Wednesday, April 28, 2010 11:52 AM
To: Nguyen Canh Toan
Cc: jkli...@redhat.com; networkmanager-list@gnome.org
Subject: RE: Confusing about DBus API speciDan Williams
[d...@redhat.com]fication

On Thu, 2010-04-29 at 06:08 -0700, Nguyen Canh Toan wrote:
 Dear Jirka, 
 
 It's weird. After adjusting my script, it's still error: 

D-Bus is simply an IPC mechanism, but it layers a few concepts on top of
pure message-passing, as explained below.  It did take me some time to
understand how the D-Bus object model really works, so don't worry about
it you don't completely understand how it all works yet.

1) 'service': a program that responds to requests from clients.  Each
service is identified by a bus name which clients use to find the
service and send requests to it.  The bus name usually looks like
org.foobar.Baz.  A program can claim more than one bus name; NM claims
org.freedesktop.NetworkManager and
org.freedesktop.NetworkManagerSystemSettings, each is a unique serivce
which provides different functionality to clients.

2) 'object': a method of organizing distinct entities, much like
programming languages have objects.  Each object is uniquely identified
by an object path (basically a pointer) that looks like
/org/foobar/Baz/235235. Each request sent to the service must be
directed to a specific object.  Many services have a base object with a
well-known path that you use to bootstrap your communication with the
service.

3) 'interface': each request belongs to an interface, which is simply a
way of logically separating different functionality.  The same way that
object-oriented languages like Java or C++ or GLib define an
interface; a specific API that different objects can implement, but
the caller doesn't need to know what type the object is, just the
interface.  Interface names often look like D-Bus service names, but
have no relation to them.

4) 'method call': a request for an operation or information that a
client sends to the service; method calls are defined by an Interface
and are sent to objects.

Say you have a binary called mcdonaldsd that provides a D-Bus service
called org.fastfood.McDonalds.  Clients that want to talk to this
service use org.fastfood.McDonalds to direct requests to mcdonaldsd.

mcdonaldsd provides a base object called /org/fastfood/McDonalds.
This object implements the org.fastfood.McDonalds interface, which
defines the method calls:

  - GetItems(void) - ao
  - Order(ao) - b

GetItems returns an array of object-paths representing all the things on
the menu that you can order.  So if you call it you'll get something
like this returned:

[ '/org/fastfood/McDonalds/Item/0', '/org/fastfood/McDonalds/Item/1' ]

Each of these returned object paths is a pointer to an object;
mcdonaldsd probably even implements these as objects internally using
Java or C++ or GObject or whatever.  These objects are probably
completely different (one may be a burger, one may be a drink) but they
all implement a common interface org.fastfood.McDonalds.Item.

The org.fastfood.McDonalds.Item interface has the following method
calls:

  - GetName
  - GetType  (either TYPE_BURGER, TYPE_DRINK, or TYPE_FRIES)
  - GetPrice
  - Consume

So even if you don't know what /org/fastfood/McDonalds/Item/0 is, you
still can get a lot of information about it, enough to decide whether
you want to order it or not.

Assume that item 0 is a BigMac and item 1 is Coke.  These are
clearly different objects, but each still has a name, a calorie count, a
price, and can be consumed.

Next, since each item is different (even though they all implement the
common org.fastfood.McDonalds.Item interface) each item type will
implement other interfaces that define functionality specific to that
type of item.

So item 0 (BigMac) implements the org.fastfood.McDonalds.Item.Burger
interface which has the following methods:

  - Unwrap
  - AddMustard
  - RemovePickle (nobody likes those

Confusing about DBus API specification

2010-04-27 Thread Nguyen Canh Toan
Hi all, 

 

After reading DBus API
http://projects.gnome.org/NetworkManager/developers/spec-07.html#org.freedes
ktop.NetworkManager

I try to list all connection setting by below interface specification

 

org.freedesktop.NetworkManagerSettings

The NetworkManagerSettings interface is provided by the service which
provides connections to NetworkManager.

Methods:

ListConnections ( ) → ao

List the connections stored by this Settings object.

Returns

 

connections - ao

List of connections. 

 

Signals:

NewConnection ( o: connection )

Emitted when a new connection has been configured.

Parameters

 

connection - o

Object path of the new connection. 

 

Interface has no properties.

 

 

Without success. DBus service say:

 

Traceback (most recent call last):

  File ./python_dbus_client, line 21, in module

connections = manager.ListConnections()

  File /var/lib/python-support/python2.6/dbus/proxies.py, line 140, in
__call__

**keywords)

  File /var/lib/python-support/python2.6/dbus/connection.py, line 622, in
call_blocking

message, timeout)

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method ListConnections with signature  on interface
org.freedesktop.NetworkManager doesn't exist

 

 

My  pythons script run correctly with other interface. 

I am using NetworkManager version 0.7.0, ubuntu 9.04

 

Best Regards,

Toan Nguyen

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Setup development evironment

2010-04-21 Thread Nguyen Canh Toan
Dear Mirsal, 

I knew and did modify configure.ac  Makefile.am. After read through that
book, I solved my issue. Thank.

For newbie information: After modify those file, instead of calling
autoconf, we should call autoreconf.

Toan Nguyen,

-Original Message-
From: Mirsal Ennaime [mailto:mirsal.enna...@gmail.com] 
Sent: Tuesday, April 20, 2010 11:19 PM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: Setup development evironment

On Thu, Apr 22, 2010 at 8:38 AM, Nguyen Canh Toan
toan...@viettel.com.vn wrote:
 Hi all,

Hello,

 At the moment, I am trying to modifying nm-applet source code. In order to
 compiling some new source file, that I added new source files into certain
 project source directory then I modified directly into Makefile, and the
 result run correctly. But, I know that modifying directly Makefile is
wrong
 way of developing my application based on opensource code, so I try to use
 GNU build tools (aclocal, autoconf, automake).

Indeed, modifying Makefiles is the wrong way.
You'll have to modify src/Makefile.am in order to make the build
system aware of your new source files, and configure.ac for it to know
about external dependencies and build-time configuration. Run the
autogen.sh script whenever you make modifications to the build system.

I'd advise you to read about the autotools
(http://sourceware.org/autobook/ for example)

-- 
Mirsal

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Setup development evironment

2010-04-21 Thread Nguyen Canh Toan
The problems is I cannot find autogen.sh in nm-applet-0.7.0 source from CVS

-Original Message-
From: Mirsal Ennaime [mailto:mirsal.enna...@gmail.com] 
Sent: Wednesday, April 21, 2010 3:51 AM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: Setup development evironment

On Thu, Apr 22, 2010 at 2:27 PM, Nguyen Canh Toan
toan...@viettel.com.vn wrote:
 For newbie information: After modify those file, instead of calling
 autoconf, we should call autoreconf.

AFAIK, running the autogen.sh script takes care of that.

-- 
Mirsal

___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Setup development evironment

2010-04-20 Thread Nguyen Canh Toan
Hi all,

 

At the moment, I am trying to modifying nm-applet source code. In order to
compiling some new source file, that I added new source files into certain
project source directory then I modified directly into Makefile, and the
result run correctly. But, I know that modifying directly Makefile is wrong
way of developing my application based on opensource code, so I try to use
GNU build tools (aclocal, autoconf, automake).

 

What I did is:

1.  Get nm-applet source code from repository.
2.  Copy all of my new source code into source directory.
3.  Run aclocal, autoconf  automake
4.  ./configure -prefix=/usr/local
5.  make

 

I don't know how to fix this so that I can setup development environment
correctly. 

 

Here is some log. 

toa...@toannc-desktop:~/Desktop/test$ make

make  all-recursive

make[1]: Entering directory `/home/toannc/Desktop/test'

Making all in src

make[2]: Entering directory `/home/toannc/Desktop/test/src'

Making all in marshallers

make[3]: Entering directory `/home/toannc/Desktop/test/src/marshallers'

make  all-am

make[4]: Entering directory `/home/toannc/Desktop/test/src/marshallers'

/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../..  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DG_DISABLE_DEPRECATED   -Wall -std=gnu89 -g -O2 -Wshadow
-Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement
-Wstrict-prototypes -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare
-fno-strict-aliasing -MT libmarshallers_la-nma-marshal-main.lo -MD -MP -MF
.deps/libmarshallers_la-nma-marshal-main.Tpo -c -o
libmarshallers_la-nma-marshal-main.lo `test -f 'nma-marshal-main.c' || echo
'./'`nma-marshal-main.c

../../libtool: line 821: X--tag=CC: command not found

../../libtool: line 854: libtool: ignoring unknown tag : command not found

../../libtool: line 821: X--mode=compile: command not found

../../libtool: line 988: *** Warning: inferring the mode of operation is
deprecated.: command not found

../../libtool: line 989: *** Future versions of Libtool will require
--mode=MODE be specified.: command not found

../../libtool: line 1132: Xgcc: command not found

../../libtool: line 1132: X-DHAVE_CONFIG_H: command not found

../../libtool: line 1132: X-I.: command not found

../../libtool: line 1132: X-I../..: No such file or directory

../../libtool: line 1132: X-I/usr/include/glib-2.0: No such file or
directory

../../libtool: line 1132: X-I/usr/lib/glib-2.0/include: No such file or
directory

../../libtool: line 1132: X-DG_DISABLE_DEPRECATED: command not found

../../libtool: line 1132: X-Wall: command not found

../../libtool: line 1132: X-std=gnu89: command not found

../../libtool: line 1132: X-g: command not found

../../libtool: line 1132: X-O2: command not found

../../libtool: line 1132: X-Wshadow: command not found

../../libtool: line 1132: X-Wmissing-declarations: command not found

../../libtool: line 1132: X-Wmissing-prototypes: command not found

../../libtool: line 1132: X-Wdeclaration-after-statement: command not found

../../libtool: line 1132: X-Wstrict-prototypes: command not found

../../libtool: line 1132: X-Wfloat-equal: command not found

../../libtool: line 1132: X-Wno-unused-parameter: command not found

../../libtool: line 1132: X-Wno-sign-compare: command not found

../../libtool: line 1132: X-fno-strict-aliasing: command not found

../../libtool: line 1132: X-MT: command not found

../../libtool: line 1132: Xlibmarshallers_la-nma-marshal-main.lo: command
not found

../../libtool: line 1132: X-MD: command not found

../../libtool: line 1132: X-MP: command not found

../../libtool: line 1132: X-MF: command not found

../../libtool: line 1132: X.deps/libmarshallers_la-nma-marshal-main.Tpo: No
such file or directory

../../libtool: line 1132: X-c: command not found

../../libtool: line 1184: Xlibmarshallers_la-nma-marshal-main.lo: command
not found

../../libtool: line 1189: libtool: compile: cannot determine name of library
object from `': command not found

make[4]: *** [libmarshallers_la-nma-marshal-main.lo] Error 1

make[4]: Leaving directory `/home/toannc/Desktop/test/src/marshallers'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/home/toannc/Desktop/test/src/marshallers'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/toannc/Desktop/test/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/toannc/Desktop/test'

make: *** [all] Error 2

 

toa...@toannc-desktop:~/Desktop/test$ aclocal --version

aclocal (GNU automake) 1.10.2

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv2+: GNU GPL version 2 or later
http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

 

Written by Tom Tromey tro...@redhat.com

   and Alexandre Duret-Lutz a...@gnu.org.

toa...@toannc-desktop:~/Desktop/test$ autoconf --version


RE: isblank error in make install

2010-04-02 Thread Nguyen Canh Toan
Post your log file sothat we can help you



  _

From: networkmanager-list-boun...@gnome.org
[mailto:networkmanager-list-boun...@gnome.org] On Behalf Of ヴィカス ヤダ
ヴァ (vikas yadav)
Sent: Thursday, April 01, 2010 9:24 PM
To: NetworkManager-list@gnome.org
Subject: isblank error in make install



Hi,

Im not able to fix the isblank error i get in the source files when I
compile NM.
The other problem is, since install is incomple, i bricked by original NM
too in my system and so I have to work out to start network on every boot.

Please suggest,
Vikas

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: trying to compiling ubuntu 9.04 - gudev stuck

2010-03-30 Thread Nguyen Canh Toan
Do search in repository

$ apt-cache search polkit



And install development packages.



  _

From: mevi...@gmail.com [mailto:mevi...@gmail.com] On Behalf Of Vikas Yadav
Sent: Monday, March 29, 2010 8:46 PM
To: Nguyen Canh Toan
Cc: NetworkManager-list@gnome.org
Subject: Re: trying to compiling ubuntu 9.04 - gudev stuck




Thanks for helping me.
I went past gudev and now cannot find polkit-gobject-1 anywhere.
Please suggest.

Thanks,'
vikas



2010/3/31 Nguyen Canh Toan toan...@viettel.com.vn

Hi Vikas,



I experienced with compiling NM on 9.04.



Gudev is included into udev from udev-143. Download udev
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html

And reinstall it.



I recommend you use udev-144.






  _


From: networkmanager-list-boun...@gnome.org
[mailto:networkmanager-list-boun...@gnome.org] On Behalf Of ヴィカス ヤダ
ヴァ (vikas yadav)
Sent: Monday, March 29, 2010 8:16 AM
To: NetworkManager-list@gnome.org
Subject: trying to compiling ubuntu 9.04 - gudev stuck



Hi,

I wanted to try to code some automatic detection between home and office. NM
keeps chosing the single default on every reboot and I have to change it on
every time in home.
I download GIT and then it complained about gudev which I have googled a lot
but located nothing even in aptitude search or anywhere else.
Please suggest.

Thanks,
vikas



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Core dump with nm-applet

2010-03-29 Thread Nguyen Canh Toan
Have you install gtk, glib properly?

-Original Message-
From: networkmanager-list-boun...@gnome.org
[mailto:networkmanager-list-boun...@gnome.org] On Behalf Of van Schelve
Sent: Friday, March 26, 2010 3:33 AM
To: networkmanager-list@gnome.org
Subject: Core dump with nm-applet

Hi.

I've installed nm, nm-applet and mm from git. Now when when either click
on 
Connect to Hidden Wireless network... or Create New Wireless
Network...
nm-applet core dumps:

m525...@nc0631:~/lap-devel/lvm-printing-base/src$ nm-applet 

(nm-applet:19849): GLib-GObject-WARNING **: invalid (NULL) pointer
instance

(nm-applet:19849): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_model: assertion
`GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_active: assertion
`GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): GLib-GObject-WARNING **: invalid (NULL) pointer
instance

(nm-applet:19849): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_widget_hide: assertion
`GTK_IS_WIDGET (widget)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_widget_hide: assertion
`GTK_IS_WIDGET (widget)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_cell_layout_clear: assertion
`GTK_IS_CELL_LAYOUT (cell_layout)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_cell_layout_pack_start: assertion
`GTK_IS_CELL_LAYOUT (cell_layout)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_cell_layout_add_attribute:
assertion `GTK_IS_CELL_LAYOUT (cell_layout)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_wrap_width:
assertion `GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_model: assertion
`GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_row_separator_func:
assertion `GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): Gtk-CRITICAL **: gtk_combo_box_set_active: assertion
`GTK_IS_COMBO_BOX (combo_box)' failed

(nm-applet:19849): GLib-GObject-WARNING **: invalid (NULL) pointer
instance

(nm-applet:19849): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

** (nm-applet:19849): CRITICAL **: security_combo_init: assertion
`priv-sec_combo != NULL' failed

** (nm-applet:19849): WARNING **: Couldn't set up wireless security combo
box.

** (nm-applet:19849): WARNING **: WARN  internal_new_other(): Couldn't
create wireless security dialog.


(nm-applet:19849): GLib-GObject-WARNING **: instance with invalid (NULL)
class pointer

(nm-applet:19849): GLib-GObject-CRITICAL **: g_signal_handlers_destroy:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Segmentation fault (core dumped)

Shall I open a bug for this or is it already known?

Hans-Gerd
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: About DBus Interface specification

2010-03-23 Thread Nguyen Canh Toan
Dear Mr.Dan,

I've read your recently uploaded spec and found it very different from what
you uploaded before. However, I don't find any spec about sending/receiving
SMS any more. I have also searched the mail-list and understood that at this
time, you don't provide a full SMS functionality. 

At present, my project needs those SMS functions. It would be very helpful
of you if you could direct me how to use ModemManager(also NetworkManager)
in order to make SMS functionality perform properly in the real world. I
will certainly try my best to give contribution to your source repository.

Yours faithfully,
Toan Nguyen

-Original Message-
From: Dan Williams [mailto:d...@redhat.com] 
Sent: Tuesday, March 23, 2010 3:06 AM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: About DBus Interface specification

On Fri, 2010-03-19 at 22:11 -0700, Nguyen Canh Toan wrote: 
 Dear Dan,
 
  
 
 Thank for your works about DBus Interface specification
 http://www.bgiw.org/~dan/mm-spec.html
 
  
 
 But when writing client application, I found it provide not enough
 information. For example, 
 
 With org.freedesktop.ModemManager.Modem Interface. I cannot find DBus
 name also Object path in order to make methods call GetInfo() 

So that interface is actually provided by ModemManager, not by
NetworkManager.  NetworkManager acts as the central controller daemon
that coordinates between various pieces of hardware, while most specific
hardware is driven by it's own service (wpa_supplicant, ModemManager,
etc).

I've uploaded the generated spec to:

http://projects.gnome.org/NetworkManager/developers/mm-spec-04.html

It's the spec from git master though, so some of the stuff like
AccessTechnology and SetAllowedMode hasn't shown up in a release quite
yet.

Dan




___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: About DBus Interface specification

2010-03-23 Thread Nguyen Canh Toan
Dear all,

Thank for your reply,

Before working further on ModemManager, I read your spec and do some testing
with simple python script. It seems I misunderstand something. I don't think
ModemManager doesn't install properly in my workstation because I can access
Internet perfectly. Would you be so kind as to view my script to see what's
going wrong.

Here is my testing script for testing Read Type property of
org.freedesktop.ModemManager.Modem interface
=
#!/usr/bin/env python
import dbus
bus = dbus.SystemBus()
proxy = bus.get_object(org.freedesktop.ModemManager, /org/freedesktop/
ModemManager)
manager = dbus.Interface(proxy, org.freedesktop.ModemManager)
devices = manager.EnumerateDevices()
for d in devices:
dev_proxy = bus.get_object(org.freedesktop. ModemManager, d)
prop_iface = dbus.Interface(dev_proxy,
org.freedesktop.DBus.Properties)
dev_iface = dbus.Interface(dev_proxy,
org.freedesktop.ModemManager.Modem)
#info = dev_iface.GetInfo()
_type = prop_iface.Get(org.freedesktop.ModemManager.Modem, Type)
print %s % _type

== the output say: dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.ServiceUnknow: The name
org.freedesktop.ModemManager was not provided by any .service files
===
Now if I change all ModemManager words into NetworkManager, the interpreter
don't complain above error anymore but: dbus.exceptions.DBusException:
org.freedesktop.Dbus.Error.InvalidArgs: No such property Type




Could you please give me some code example to work with ModemManager? 

Thanks and best regards,
Toan Nguyen

-Original Message-
From: Dan Williams [mailto:d...@redhat.com] 
Sent: Tuesday, March 23, 2010 11:04 AM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: RE: About DBus Interface specification

On Wed, 2010-03-24 at 06:10 -0700, Nguyen Canh Toan wrote:
 Dear Mr.Dan,
 
 I've read your recently uploaded spec and found it very different from
what
 you uploaded before. However, I don't find any spec about
sending/receiving
 SMS any more. I have also searched the mail-list and understood that at
this
 time, you don't provide a full SMS functionality. 

That part of the spec is:

http://projects.gnome.org/NetworkManager/developers/mm-spec-04.html#org.free
desktop.ModemManager.Modem.Gsm.SMS

 At present, my project needs those SMS functions. It would be very helpful
 of you if you could direct me how to use ModemManager(also NetworkManager)
 in order to make SMS functionality perform properly in the real world. I
 will certainly try my best to give contribution to your source repository.

At the moment though, only SMS sending is actually implemented for most
cards and in a generic fashion.  We've been concentrating on making the
actual data connections work as well as possible before moving on to the
SMS bits :(  Any help in this area would be appreciated though.  Other
implementations of the ModemManager specification like Wader (the actual
modem-manager program is only one implementation) do implement the full
SMS spec.

Dan

 Yours faithfully,
 Toan Nguyen
 
 -Original Message-
 From: Dan Williams [mailto:d...@redhat.com] 
 Sent: Tuesday, March 23, 2010 3:06 AM
 To: Nguyen Canh Toan
 Cc: networkmanager-list@gnome.org
 Subject: Re: About DBus Interface specification
 
 On Fri, 2010-03-19 at 22:11 -0700, Nguyen Canh Toan wrote: 
  Dear Dan,
  
   
  
  Thank for your works about DBus Interface specification
  http://www.bgiw.org/~dan/mm-spec.html
  
   
  
  But when writing client application, I found it provide not enough
  information. For example, 
  
  With org.freedesktop.ModemManager.Modem Interface. I cannot find DBus
  name also Object path in order to make methods call GetInfo() 
 
 So that interface is actually provided by ModemManager, not by
 NetworkManager.  NetworkManager acts as the central controller daemon
 that coordinates between various pieces of hardware, while most specific
 hardware is driven by it's own service (wpa_supplicant, ModemManager,
 etc).
 
 I've uploaded the generated spec to:
 
 http://projects.gnome.org/NetworkManager/developers/mm-spec-04.html
 
 It's the spec from git master though, so some of the stuff like
 AccessTechnology and SetAllowedMode hasn't shown up in a release quite
 yet.
 
 Dan
 
 
 
 


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


About DBus Interface specification

2010-03-18 Thread Nguyen Canh Toan
Dear Dan,

 

Thank for your works about DBus Interface specification
http://www.bgiw.org/~dan/mm-spec.html

 

But when writing client application, I found it provide not enough
information. For example, 

With org.freedesktop.ModemManager.Modem Interface. I cannot find DBus name
also Object path in order to make methods call GetInfo() 

 

Hope my suggestion will be noticed to make that specification more clearly. 

 

ToanNC.

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Received Bytes, transmited bytes and connection speed

2010-03-17 Thread Nguyen Canh Toan
Dear all,

 

I am wondering how to get current connection speed. Or, alternatively, how
to get total bytes received and transmited (so current speed ~
RX[n]-RX[n-1]).

 

Thanks.

Toannc

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Received Bytes, transmited bytes and connection speed

2010-03-17 Thread Nguyen Canh Toan
Dear Dan,

I only want to get an approximate connection speed but not a actual
connection speed. 
As you mention, with 3G devices, I only get a general access technology, but
I don't care what is this. All things I interest in the speed and/or total
bytes transmitted and received. How can I get it?

Toannc.

-Original Message-
From: Dan Williams [mailto:d...@redhat.com] 
Sent: Wednesday, March 17, 2010 5:29 PM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: Received Bytes, transmited bytes and connection speed

On Thu, 2010-03-18 at 03:40 -0700, Nguyen Canh Toan wrote:
 Dear all,
 
  
 
 I am wondering how to get current connection speed. Or, alternatively,
 how to get total bytes received and transmited (so current speed ~
 RX[n]-RX[n-1]).

Using bytes received and transmitted won't really get you a connection
speed, since devices are usually not transmitting at full capacity all
the time.  It'll give you a current DL/UL rate, but certainly not the
actual connection speed of the device.

Current connection speed is tricky, and depends on the specific device
and the technology that the device is using.

For Ethernet, you have the 'Speed' property in the D-Bus interface,
which reports the current network device speed (10Mb, 100Mb, 1000Mb,
etc) in Mb/s.

For Wifi, there's the 'Bitrate' property in the D-Bus interface, which
while the device is associated to an access point, reports the device's
current rate in Kb/s (since wifi devices can transmit in odd rates, we
can't just use Mb/s).

For 3G, you can only get the general access technology that the device
is using, not a raw bitrate.  ModemManager reports current access
technology for devices that support it via the AccessTechnology property
of the device for GSM devices, which we'll also probably use for CDMA
when that support gets folded in.

For Bluetooth, it'll be the same as either Ethernet or 3G depending on
how you're using the bluetooth device.

Dan



___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Newbie learn how to use NetworkManager lib

2010-03-16 Thread Nguyen Canh Toan
Dear all,

 

I am newbie to NetworkManager. Currently, I have to build an application
which monitor networking state (connection state, current download  upload
speed .) I don't know how to start. Please help :-(

 

Thanks,

ToanNC

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: Newbie learn how to use NetworkManager lib

2010-03-16 Thread Nguyen Canh Toan
Dear Mark,

 

Thank you for your reply, 

 

First, sorry because of providing lack of information. Let me tell you a
little about what I am doing now: I am developing an application on Ubuntun,
with C programming language, which behave very similar to nm-applet, it
manage all settings  connection state of an HSPA USB Data Device (it means
only manage wwan connection type, you know). So, I decided to hack nm-applet
source code.

 

I have experienced with programming C  C++ on windows platforms, and I feel
quickly familiar with programming C on linux. My problem is: I found few
documentation of NetworkManager lib (libnm.) and don't know where to find
API specifications also signals specifications. I did modify nm-applet GUI
and now I need to continually get connection state (status, speed,
description, .) to update my GUI forms

 

 

ToanNC.

 

 

  _  

From: Mark Renouf [mailto:mark.ren...@gmail.com] 
Sent: Tuesday, March 16, 2010 4:39 AM
To: Nguyen Canh Toan
Cc: networkmanager-list@gnome.org
Subject: Re: Newbie learn how to use NetworkManager lib

 

Having just done such a thing I think I can help point you in the right
direction. 

Of course, the exact methods and effort required depend heavily on your
choice of language. If you are writing C, then I would recommend libnm-glib
and libnm-util. You can monitor device state via gobject signal handlers. 

Anyone familiar with Glib can help you with that. Ping me off-list and I
could share some code snippets.

On Mar 16, 2010 4:12 AM, Nguyen Canh Toan toan...@viettel.com.vn wrote:

Dear all,

 

I am newbie to NetworkManager. Currently, I have to build an application
which monitor networking state (connection state, current download  upload
speed .) I don't know how to start. Please help :-(

 

Thanks,

ToanNC


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Fail to compile ModemManager

2010-03-08 Thread Nguyen Canh Toan
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
toa...@vt_ttpm_rd_toannc5:~/Desktop/ModemManager-0.3$ udevadm -V
143

Please help!


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list