{"action":"created","issue":{"url":"https://api.github.com/repos/miniupnp/miniupnp/issues/198","repository_url":"https://api.github.com/repos/miniupnp/miniupnp","labels_url":"https://api.github.com/repos/miniupnp/miniupnp/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/miniupnp/miniupnp/issues/198/comments","events_url":"https://api.github.com/repos/miniupnp/miniupnp/issues/198/events","html_url":"https://github.com/miniupnp/miniupnp/issues/198","id":161872403,"number":198,"title":"call to getaddrinfo fails in obscure situation.","user":{"login":"ntadmin","id":8012540,"avatar_url":"https://avatars.githubusercontent.com/u/8012540?v=3","gravatar_id":"","url":"https://api.github.com/users/ntadmin","html_url":"https://github.com/ntadmin","followers_url":"https://api.github.com/users/ntadmin/followers","following_url":"https://api.github.com/users/ntadmin/following{/other_user}","gists_url":"https://api.github.com/users/ntadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/ntadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntadmin/subscriptions","organizations_url":"https://api.github.com/users/ntadmin/orgs","repos_url":"https://api.github.com/users/ntadmin/repos","events_url":"https://api.github.com/users/ntadmin/events{/privacy}","received_events_url":"https://api.github.com/users/ntadmin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-23T08:58:26Z","updated_at":"2016-06-23T15:09:32Z","closed_at":null,"body":"I'm reporting this so that it is logged, but it may either be insoluble or not worth solving.\r\n\r\nOn some mips devices (in my case the Netgear DGND3700v2) the cross-compile tools provide include files which result in upnpc failing as follows (this error is triggered in connecthostport.c):\r\n\r\n```\r\n    List of UPNP devices found on the network : \r\n     desc: http://192.168.1.254:56688/rootDesc.xml \r\n     st: urn:schemas-upnp-org:device:InternetGatewayDevice:1 \r\n\r\n    getaddrinfo() error : Bad value for ai_flags \r\n    No valid UPNP Internet Gateway Device found.\r\n```\r\n\r\nThis is because:\r\n\r\n- The cross compiler include files declare AI_NUMERICSERV as per nromal\r\n- The code for the library it produces does not recognise AI_NUMERICSERV\r\n\r\nPerhaps the easiest solution would be to provide a compile time option -DNO_AI_NUMERICSERV?\r\n"},"comment":{"url":"https://api.github.com/repos/miniupnp/miniupnp/issues/comments/228081152","html_url":"https://github.com/miniupnp/miniupnp/issues/198#issuecomment-228081152","issue_url":"https://api.github.com/repos/miniupnp/miniupnp/issues/198","id":228081152,"user":{"login":"ntadmin","id":8012540,"avatar_url":"https://avatars.githubusercontent.com/u/8012540?v=3","gravatar_id":"","url":"https://api.github.com/users/ntadmin","html_url":"https://github.com/ntadmin","followers_url":"https://api.github.com/users/ntadmin/followers","following_url":"https://api.github.com/users/ntadmin/following{/other_user}","gists_url":"https://api.github.com/users/ntadmin/gists{/gist_id}","starred_url":"https://api.github.com/users/ntadmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntadmin/subscriptions","organizations_url":"https://api.github.com/users/ntadmin/orgs","repos_url":"https://api.github.com/users/ntadmin/repos","events_url":"https://api.github.com/users/ntadmin/events{/privacy}","received_events_url":"https://api.github.com/users/ntadmin/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T15:09:32Z","updated_at":"2016-06-23T15:09:32Z","body":"Yes, that would also be an approach! I'm slightly wary of doing that, but I quite appreciate that this may not need any changes on your part. Just reporting it so that if someone else reports similar odd behaviour you know where to look :-)\r\n\r\nI will probably simply patch the miniupnpc file for the build, rather than mess with the header file which is also used to build the c libraries for the firmware ..."}}
{"actor":{"display_login":"ntadmin"}}