setsockopt error on arm-linux
Christian Henz <[email protected]> Wed, 12 Jul 2006 19:46:54 +0200
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
--Boundary-00=_PWTtE4heHrs3CT5
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi.
I'm having a hard time trying to get a libupnp-based software to run on the
Nokia 770. I tried to run the upnp_tv_ctrlpt example and get the following
error:
# ./upnp_tv_ctrlpt
Intializing UPnP with ipaddress=(null) port=0
WinCEStart: UpnpInit() Error: -208
Error starting UPnP TV Control Point
The error code is UPNP_E_SOCKET_ERROR and comes back from ssdp_server.c:988.
setsockopt returns -1 and errno is set to ENODEV. I ran the example with
strace and the relevant part is:
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10
setsockopt(10, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(10, {sa_family=AF_INET, sin_port=htons(1900),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
setsockopt(10, SOL_IP, IP_ADD_MEMBERSHIP, "\357\377\377\372\0\0\0\0", 8) = -1
ENODEV (No such device)
System info:
# uname -a
Linux Nokia770-26 2.6.16-omap1 #1 PREEMPT Tue Jul 11 14:28:16 CEST 2006
armv5tejl unknown
On PC it all works fine. Does anyone have an idea what could be the problem?
Has anybody else had problems with libupnp on arm-linux? Could it be a WLAN
issue?
thanks,
Christian Henz
--Boundary-00=_PWTtE4heHrs3CT5
Content-Type: text/plain;
charset="us-ascii";
name="IUpnpErrFile.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="IUpnpErrFile.txt"
******************************************************************
* DEBUG *
* FILE: src/ssdp/ssdp_server.c, LINE: 984 *
******************************************************************
Error in joining multicast group !!!
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 237 *
******************************************************************
Miniserver failed to start
******************************************************************
* DEBUG *
* FILE: src/ssdp/ssdp_server.c, LINE: 984 *
******************************************************************
Error in joining multicast group !!!
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 237 *
******************************************************************
Miniserver failed to start
--Boundary-00=_PWTtE4heHrs3CT5
Content-Type: text/plain;
charset="us-ascii";
name="IUpnpInfoFile.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="IUpnpInfoFile.txt"
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 165 *
******************************************************************
Inside UpnpInit
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 181 *
******************************************************************
Trying Lock
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 181 *
******************************************************************
LOCK
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3762 *
******************************************************************
Inside getlocalhostname : after strncpy 192.168.1.110
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 197 *
******************************************************************
Trying Unlock
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 197 *
******************************************************************
Unlock
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 671 *
******************************************************************
mserv start: bind success
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 560 *
******************************************************************
sockfd = 7, .... port = 49152
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 560 *
******************************************************************
sockfd = 8, .... port = 1024
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Inside UpnpFinish : UpnpSdkInit is :1:
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
UpnpFinish : UpnpSdkInit is ONE
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Recv Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 2
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 2
Total Work Time= 0.000000
Total Idle Time = 0.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Send Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 2
Persistent Threads = 1
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 3
Total Work Time= 0.000000
Total Idle Time = 0.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 1
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 2
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 1
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 2
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Exiting UpnpFinish : UpnpSdkInit is :1:
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Recv Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 0
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 2
Total Work Time= 0.000000
Total Idle Time = 2.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Send Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 0
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 3
Total Work Time= 1.000000
Total Idle Time = 2.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 165 *
******************************************************************
Inside UpnpInit
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 181 *
******************************************************************
Trying Lock
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 181 *
******************************************************************
LOCK
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3762 *
******************************************************************
Inside getlocalhostname : after strncpy 192.168.1.110
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 197 *
******************************************************************
Trying Unlock
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 197 *
******************************************************************
Unlock
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 671 *
******************************************************************
mserv start: bind success
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 560 *
******************************************************************
sockfd = 7, .... port = 49152
******************************************************************
* DEBUG *
* FILE: src/genlib/miniserver/miniserver.c, LINE: 560 *
******************************************************************
sockfd = 8, .... port = 1024
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Inside UpnpFinish : UpnpSdkInit is :1:
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
UpnpFinish : UpnpSdkInit is ONE
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Recv Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 2
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 2
Total Work Time= 0.000000
Total Idle Time = 0.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 337 *
******************************************************************
Send Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 2
Persistent Threads = 1
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 3
Total Work Time= 1.000000
Total Idle Time = 0.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 1
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 2
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 1
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3542 *
******************************************************************
GetHandleInfo: Handle is 2
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 3559 *
******************************************************************
GetHandleInfo : exiting
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Exiting UpnpFinish : UpnpSdkInit is :1:
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Recv Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 0
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 2
Total Work Time= 0.000000
Total Idle Time = 2.000000
******************************************************************
* DEBUG *
* FILE: src/api/upnpapi.c, LINE: 359 *
******************************************************************
Send Thread Pool
High Jobs pending = 0
Med Jobs Pending = 0
Low Jobs Pending = 0
Worker Threads = 0
Idle Threads = 0
Persistent Threads = 0
Average Time spent in High Q = 0.000000
Average Time spent in Med Q = 0.000000
Average Time spent in Low Q = 0.000000
Max Threads Used: 3
Total Work Time= 2.000000
Total Idle Time = 2.000000
--Boundary-00=_PWTtE4heHrs3CT5
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--Boundary-00=_PWTtE4heHrs3CT5
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
UPnP-SDK-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/upnp-sdk-discuss
--Boundary-00=_PWTtE4heHrs3CT5--