[maemo-developers] [maemo-developers] osso_socket doesn't work under scratchbox

From: Vladislav Vasiliev vlad at gas.by
Date: Mon Aug 28 17:44:25 EEST 2006
<Skip>
>>
>> My environment: Maemo 2.0 i386 rootstrap, af-sb-init.sh started.
>> I'm using /usr/share/doc/osso-ic-dev/examples/osso-socket.c example.
>> Compile it:
>> gcc osso-socket.c -o osso-socket `pkg-config --cflags --libs osso-ic
>> glib-2.0`   -DDBUS_API_SUBJECT_TO_CHANGE
>> and run:
>> run-standalone.sh ./osso-socket 192.168.1.1 80
>> So, this is the output I get:
>> socket error: No route to host
>
> Some basic sanity check questions:
>
> Does connection to eg. localhost work?
No.  :(

./osso-socket 127.0.0.1 80
socket error: No route to host
Tracking osso_socket(2=PF_INET, 1=SOCK_STREAM, 6=tcp) = 3
>
> Does wget or any other network utility work under scratchbox for you?
Yes. Work fine.

>wget 127.0.0.1
--17:26:43--  http://127.0.0.1/
           => `index.html'
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,456 [text/html]

    0K .                                                     100%  
13.89 MB/s

17:26:43 (13.89 MB/s) - `index.html' saved [1456/1456]
>
> Have you "synced" the resolv.conf from /etc outside scratchbox to
> inside it?
Yes.
 /etc/resolv.conf and
/scratchbox/users/vlad/targets/SDK_PC/etc/resolv.conf is "synced".


Vlad Vasiliev


More information about the maemo-developers mailing list