Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141491 - app-pda/synce-librapi2-0.9.2 doesn't work with Yakumo Alpha-X GPS
Summary: app-pda/synce-librapi2-0.9.2 doesn't work with Yakumo Alpha-X GPS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo PDA project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-23 06:52 UTC by Alin Năstac (RETIRED)
Modified: 2009-08-05 14:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
synce-dccm-0.9.1-r1.ebuild (synce-dccm-0.9.1-r1.ebuild,665 bytes, application/octet-stream)
2006-08-03 02:28 UTC, Sergio CERLESI
Details
synce-dccm-0.9.1-os-version.patch (synce-dccm-0.9.1-os-version.patch,613 bytes, patch)
2006-08-03 02:29 UTC, Sergio CERLESI
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alin Năstac (RETIRED) gentoo-dev 2006-07-23 06:52:30 UTC
I discovered that synce packages (the ~x86 ones) works partially for me when I tried to communicate with my Yakumo Alpha-X GPS. The only thing working is the PPP connection, which I was able to start by running:
  vdccm (as user)
  synce-serial-start (as root)

The following command output shows that librapi2 library is the failing component:
   mrness@alin ~/.synce $ pstatus -d 3
   [rapi_context_connect:161] failed to connect to proxy for 192.168.0.2
pstatus: Unable to initialize RAPI: An unspecified failure has occurred

I was able to make it work by altering synce-librapi2 with the following patch:
--- librapi-0.9.2.orig/src/support/rapi_context.c       2006-07-23 11:37:08.355776000 +0300
+++ librapi-0.9.2/src/support/rapi_context.c    2006-07-23 11:36:36.689797000 +0300
@@ -122,7 +122,7 @@
                goto fail;
        }

-    if (info->os_version < 5) {
+    if (true /*info->os_version < 5*/) {
         if ( !synce_socket_connect(context->socket, info->ip, RAPI_PORT) )
         {
             synce_error("failed to connect to %s", info->ip);


I didn't attached the patch because it isn't really a solution, but a workaround. Here you have my ~/.synce/active_connection file:
mrness@alin ~/.synce $ cat active_connection
  [device]
  os_version=5380
  build_number=1088
  processor_type=2577
  partner_id_1=1338929223
  partner_id_2=1664431742
  name=pocket_pc
  class=PocketPC
  hardware=YAKUMO alphaX GPS
  ip=192.168.0.2
  port=1029

... and here is my partial pstatus output (when librapi2 patch has been applied):
  mrness@alin ~/.synce $ pstatus
  Version
  =======
  Version:    4.21.1088 (Microsoft Windows Mobile 2003 Pocket PC Phone Edition)
  Platform:   3 (Windows CE)
  Details:    ""
 
  System
  ======
  Processor architecture: 5 (ARM)
  Processor type:         2577 (StrongARM)
  Page size:              0x10000

The reported OS is strange. According to my PDA, the OS is Windows Mobile 2003 Second Edition.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2006-07-23 14:13:19 UTC
i'll try and get some upstream people to look at this. there seems to be some important debugging information that will be useful to them.

meanwhile, have you tried 0.9.1?
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-07-24 00:18:41 UTC
Emerging =app-pda/synce-librapi2-0.9.1 also do the trick.
This version doesn't use synce_socket_connect_proxy(), therefore it works for me.
Comment 3 Angel Olivera 2006-07-29 12:44:57 UTC
Works for a DELL Axim X3 (WM2003) with =app-pda/synce-librapi2-0.9.1, but not with 0.9.2.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2006-07-29 15:38:21 UTC
i've masked 0.9.2 until this issue gets resolved. thanks all for reporting.
Comment 5 Sergio CERLESI 2006-08-03 02:28:58 UTC
Created attachment 93321 [details]
synce-dccm-0.9.1-r1.ebuild

New ebuild that applied the synce-dccm-0.9.1-os-version.patch
Comment 6 Sergio CERLESI 2006-08-03 02:29:48 UTC
Created attachment 93322 [details, diff]
synce-dccm-0.9.1-os-version.patch
Comment 7 Sergio CERLESI 2006-08-03 02:38:07 UTC
I had the same problem on my system.

The problem seems to be the "dccm" that create the file active_connection with a wrong os_version, the patch that I attaced fix the issue on my system.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2006-09-07 00:24:54 UTC
Hmm... I think your patch doesn't do what it should. 
What if version is "5.1"?
Comment 9 Iain Buchanan 2009-08-05 12:13:00 UTC
Please try a recent version of SynCE.  mescalinum: close?
Comment 10 Federico Ferri (RETIRED) gentoo-dev 2009-08-05 14:02:11 UTC
0.9.2 packages are gone