errors on running obexputter

2009-07-10 Thread liuyp

Hi,

I am trying running the bluetooth application obexputter_0.1.1.tar.gz on my
maemo 4.1 based ubuntu 8.4.

After some fix in some files,  ./autogen and ./configure are working
fluently, but MAKE command result in some warning and can't get the
x-executable file.  Almost all the errors are  undefined reference to some
functions.

could you give me some help? Thank you.

Br, Liu

--errors
list.
[sbox-DIABLO_X86: ~/trunk] > make
Making all in src
make[1]: Entering directory `/home/sbox/trunk/src'
/bin/sh ../libtool --mode=link gcc  -g -O2   -o obexputter 
obexputter-obexputter.o obexputter-hci_scan.o obexputter-sdp_search.o
obexputter-obexput.o -lgconf-2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0
-lglib-2.0   -lglib-2.0   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0   -lhildon-1 -lhildonfm -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lhildonhelp -lglib-2.0 -losso  
-losso -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0   -lgwobex -lglib-2.0
-lopenobex   -lopenobex   
gcc -g -O2 -o obexputter obexputter-obexputter.o obexputter-hci_scan.o
obexputter-sdp_search.o obexputter-obexput.o  /usr/lib/libgconf-2.so
-lhildon-1 -lhildonfm -lgtk-x11-2.0 -lgdk-x11-2.0 /usr/lib/libatk-1.0.so
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo
/usr/lib/libgmodule-2.0.so -ldl -lhildonhelp -losso -ldbus-glib-1 -ldbus-1
/usr/lib/libgobject-2.0.so /usr/lib/libgwobex.so /usr/lib/libgthread-2.0.so
-lpthread -lrt /usr/lib/libglib-2.0.so /usr/lib/libopenobex.so

obexputter-hci_scan.o: In function
`hci_scan':/home/sbox/trunk/src/hci_scan.c:49: undefined reference to
`hci_inquiry'
:/home/sbox/trunk/src/hci_scan.c:53: undefined reference to `hci_open_dev'
:/home/sbox/trunk/src/hci_scan.c:68: undefined reference to `ba2str'
:/home/sbox/trunk/src/hci_scan.c:62: undefined reference to
`hci_read_remote_name'
obexputter-hci_scan.o: In function
`hci_scan_names':/home/sbox/trunk/src/hci_scan.c:95: undefined reference to
`hci_open_dev'
:/home/sbox/trunk/src/hci_scan.c:106: undefined reference to `str2ba'
:/home/sbox/trunk/src/hci_scan.c:107: undefined reference to
`hci_read_remote_name'
obexputter-sdp_search.o: In function
`get_obex_channel':/home/sbox/trunk/src/sdp_search.c:44: undefined reference
to `str2ba'
:/home/sbox/trunk/src/sdp_search.c:45: undefined reference to
`sdp_uuid16_create'
:/home/sbox/trunk/src/sdp_search.c:48: undefined reference to `sdp_connect'
:/home/sbox/trunk/src/sdp_search.c:49: undefined reference to `ba2str'
:/home/sbox/trunk/src/sdp_search.c:54: undefined reference to
`sdp_list_append'
:/home/sbox/trunk/src/sdp_search.c:55: undefined reference to
`sdp_list_append'
:/home/sbox/trunk/src/sdp_search.c:56: undefined reference to
`sdp_service_search_attr_req'
:/home/sbox/trunk/src/sdp_search.c:60: undefined reference to
`sdp_list_free'
:/home/sbox/trunk/src/sdp_search.c:61: undefined reference to
`sdp_list_free'
:/home/sbox/trunk/src/sdp_search.c:66: undefined reference to
`sdp_get_access_protos'
:/home/sbox/trunk/src/sdp_search.c:75: undefined reference to
`sdp_list_free'
:/home/sbox/trunk/src/sdp_search.c:80: undefined reference to
`sdp_record_free'
:/home/sbox/trunk/src/sdp_search.c:83: undefined reference to `sdp_close'
:/home/sbox/trunk/src/sdp_search.c:102: undefined reference to
`sdp_uuid2strn'
:/home/sbox/trunk/src/sdp_search.c:103: undefined reference to
`sdp_proto_uuid2strn'
:/home/sbox/trunk/src/sdp_search.c:104: undefined reference to
`sdp_uuid_to_proto'
:/home/sbox/trunk/src/sdp_search.c:57: undefined reference to `sdp_close'
obexputter-obexput.o: In function
`get_connected_sock':/home/sbox/trunk/src/obexput.c:53: undefined reference
to `str2ba'
collect2: ld returned 1 exit status
make[1]: *** [obexputter] Error 1
make[1]: Leaving directory `/home/sbox/trunk/src'
make: *** [all-recursive] Error 1

-- 
View this message in context: 
http://n2.nabble.com/errors--on-running-obexputter-tp3236271p3236271.html
Sent from the maemo-developers mailing list archive at Nabble.com.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: asking help about installing xephyr

2009-06-18 Thread liuyp
Hi Conny and Amit,

when I open 2 terminals to run commands seperately, and change /tmp
permission, i got something like this>
drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp,
 then a  GTK window come out, however there are many warnings at the same
time
you can see details as followings.

Anyway, this UI has appeared the first time since i have tried to get it
almost one week.

if you have further hints, please help a bit.

Thank you very much.

Br, liu

at  sbox terminal window>

s...@liuyp-laptop:~$ df -h
FilesystemSize  Used Avail Use% Mounted on
/host/ubuntu/disks/root.disk
  8.4G  5.5G  2.5G  70% /
varrun755M  108K  755M   1% /var/run
varlock   755M 0  755M   0% /var/lock
udev  755M   56K  755M   1% /dev
devshm755M   24K  755M   1% /dev/shm
lrm   755M   40M  716M   6%
/lib/modules/2.6.24-24-generic/volatile
gvfs-fuse-daemon  8.4G  5.5G  2.5G  70% /home/sbox/.gvfs

s...@liuyp-laptop:~$ ls -l /tmp/
total 60
drwxrwxrwx 2 sbox  sbox  4096 2009-06-17 16:47 af-piddir
-rw-r--r-- 1 sbox  sbox  7203 2009-06-17 15:10 cputransp_sbox.log
drwx------ 2 liuyp liuyp 4096 2009-06-18 14:30 gconfd-liuyp
drwx-- 3 sbox  sbox  4096 2009-06-17 14:57 gconfd-sbox
srwxr-xr-x 1 sbox  sbox 0 2009-06-18 14:40 gedit-svn.sbox.880355535
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 keyring-nJALAT
-rw-r--r-- 1 sbox  sbox 5 2009-06-17 16:47 maemo-launcher.pid
drwx------ 2 liuyp liuyp 4096 2009-06-18 14:30 orbit-liuyp
drwx-- 2 sbox  sbox  4096 2009-06-18 14:40 orbit-sbox
drwxrwxr-x 2 sbox  sbox  4096 2009-06-17 16:47 osso-appl-states
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 pulse-sbox
drwx-- 2 sbox  sbox  4096 2009-06-17 14:57 seahorse-EkyRWl
-rw-rw-r-- 1 sbox  sbox33 2009-06-17 16:54 session_bus_address.sbox
srwxrwxrwx 1 sbox  sbox 0 2009-06-17 16:47 session_bus_socket
-rw--- 1 root  root 0 2009-06-17 14:55 tmp.QkxhLZ5622
drwx-- 3 sbox  sbox  4096 2009-06-17 14:58 Tracker-sbox.5969
drwx-- 2 sbox  sbox  4096 2009-06-17 14:58 virtual-sbox.EZvZnB

 s...@liuyp-laptop:/$ sudo chmod 777 -R /tmp
s...@liuyp-laptop:/$ ls -l
total 84
drwxr-xr-x   2 root root  4096 2009-06-16 12:28 bin
drwxrwxrwx   1 root root  4096 2009-06-14 14:46 boot
lrwxrwxrwx   1 root root11 2009-06-14 15:25 cdrom -> media/cdrom
drwxr-xr-x  13 root root 14000 2009-06-18 14:24 dev
drwxr-xr-x 122 root root  4096 2009-06-18 14:51 etc
drwxr-xr-x   4 root root  4096 2009-06-15 14:04 home
drwxrwxrwx   1 root root  4096 2009-06-14 12:16 host
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 initrd
lrwxrwxrwx   1 root root33 2009-06-14 14:44 initrd.img ->
boot/initrd.img-2.6.24-24-generic
lrwxrwxrwx   1 root root33 2009-06-14 16:32 initrd.img.old ->
boot/initrd.img-2.6.24-23-generic
drwxr-xr-x  16 root root  4096 2009-06-16 12:28 lib
drwx--   2 root root 16384 2009-06-14 15:25 lost+found
drwxr-xr-x   3 root root  4096 2009-01-20 12:01 media
drwxr-xr-x   2 root root  4096 2008-04-15 08:53 mnt
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 opt
dr-xr-xr-x 142 root root 0 2009-06-17 17:54 proc
drwxr-xr-x   8 root root  4096 2009-06-16 01:05 root
drwxr-xr-x   2 root root  4096 2009-06-16 12:28 sbin
drwxr-xr-x  14 root root  4096 2009-06-15 14:42 scratchbox
drwxr-xr-x   2 root root  4096 2009-01-20 12:01 srv
drwxr-xr-x  12 root root 0 2009-06-17 17:54 sys
drwxrwxrwx  17 root root  4096 2009-06-18 15:17 tmp
drwxr-xr-x  11 root root  4096 2009-01-20 12:05 usr
drwxr-xr-x  15 root root  4096 2009-01-20 12:21 var
lrwxrwxrwx   1 root root30 2009-06-14 14:44 vmlinuz ->
boot/vmlinuz-2.6.24-24-generic
lrwxrwxrwx   1 root root30 2009-06-14 16:32 vmlinuz.old ->
boot/vmlinuz-2.6.24-23-generic

s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
-extension Composite
_XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

at another scratchbox terminal>
[sbox-DIABLO_X86: ~] > export DISPLAY=:2
[sbox-DIABLO_X86: ~] > af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
DBUS system bus is already running, doing nothing
D-BUS session bus daemon is already running, doing nothing
Starting Maemo Launcher: maemo-launcher start failed.
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bi

Re: asking help about installing xephyr

2009-06-17 Thread liuyp

come on... buddy..:confused::confused:
-- 
View this message in context: 
http://n2.nabble.com/asking-help-about-installing-xephyr-tp3089295p3093252.html
Sent from the maemo-developers mailing list archive at Nabble.com.

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


asking help about installing xephyr

2009-06-16 Thread liuyp
Hi maemo and linux  experts,
I am quite new to linux and maemo. I can\t install xephyr of maemo 4.1.2
diablo in my ubuntu 8.04 (Wubi within vista), and some errs happened as
following.  I have been struggling for it long time. please give your hands
kindly.


s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1 &
[1] 8356
s...@liuyp-laptop:~$ expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

s...@liuyp-laptop:~$ DISPLAY=:2 Xephyr -screen 480x640 -dpi 283 -ac -br :1 &

Fatal server error:
Server is already active for display 1
If this server is no longer running, remove /tmp/.X1-lock
and start again.

[2] 8362
[2]+  Exit 1  DISPLAY=:2 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac -br :1
&XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
":0.0"
  after 579 requests (579 known processed) with 0 events remaining.

[2] 8416
[1]   Exit 1  DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
Could not init font path element /usr/share/fonts/X11/cyrillic, removing
from list!

s...@liuyp-laptop:~$ XIO:  fatal IO error 11 (Resource temporarily
unavailable) on X server ":0.0"
  after 324 requests (324 known processed) with 0 events remaining.

[2]+  Exit 1  DISPLAY=:0 Xephyr -screen 480x640 -dpi 283 -ac
-br :1
s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac
-extension Composite

Xephyr cannot open host display. Is DISPLAY set?
s...@liuyp-laptop:~$ scratchbox

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-DIABLO_X86: ~] > export DISPLAY=:2
[sbox-DIABLO_X86: ~] > af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
Starting DBUS system bus
Starting D-BUS session bus daemon
Starting Maemo Launcher: maemo-launcher.
maemo-launcher: warning rising the oom shield for pid=8526 status=5632
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'
[sbox-DIABLO_X86: ~] > _X11TransSocketINETConnect() can't get address for
localhost:6002: Temporary failure in name resolution
sapwood-server[8537]: GLIB WARNING ** Gdk - cannot open display:
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
matchbox-wm: can't open display! check your DISPLAY variable.
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
Could not open display. Is the DISPLAY environment variable set?
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
hildon-input-method[8569]: GLIB WARNING ** Gtk - cannot open display:
maemo-launcher: child (pid=8569) terminated due to exit()=1
_X11TransSocketINETConnect() can't get address for localhost:6002: Temporary
failure in name resolution
hildon-desktop[8584]: GLIB WARNING ** Gtk - cannot open display:
maemo-launcher: child (pid=8584) terminated due to exit()=1

[sbox-DIABLO_X86: ~] > logout
s...@liuyp-laptop:~$ Xephyr :2 -host-cursor -screen 800x480x16 -fp
/usr/share/fonts/X11/cyrillic  -dpi 96 -ac -extension Composite

Xephyr cannot open host display. Is DISPLAY set?

s...@liuyp-laptop:~$ scratchbox

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

[sbox-DIABLO_X86: ~] > export DISPLAY=:2
[sbox-DIABLO_X86: ~] > af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
DBUS system bus is already running, doing nothing
D-BUS session bus daemon is already running, doing nothing
Starting Maemo Launcher: maemo-launcher start failed.
Starting Sapwood image server
Starting Matchbox window manager
Starting clipboard-manager
Starting Keyboard
maemo-la