|
From: | Diorcet Yann |
Subject: | Re: [Linphone-developers] compile error |
Date: | Fri, 15 Mar 2013 14:46:39 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
Hi Sébastien, The isssue is that debian (so Ubuntu) patch the 1.6.17 version of upnp for security issues. So there is two available library with the same version but a different API. There is 3 solutions: Proprose a patch in order to detect that and with a define in config.h and a function which abstract the access to these struct members Install the official 1.6.17 (may be a security issue) disable upnp with --disable-upnp in the configure. Regards, Le 14/03/13 12:57, Sébastien Escudier a
écrit :
Hello, I have this error with upnp. I have installed libupnp6-dev. I tried with libupnp4-dev and I have a another error. CC upnp/upnp_igd.lo upnp/upnp_igd.c: In function 'upnp_igd_callback': upnp/upnp_igd.c:886:8: error: passing argument 2 of 'upnp_igd_handle_send_action' from incompatible pointer type [-Werror] upnp/upnp_igd.c:634:6: note: expected 'const char *' but argument is of type 'struct UpnpString *' upnp/upnp_igd.c:896:8: error: passing argument 2 of 'upnp_igd_handle_get_var' from incompatible pointer type [-Werror] upnp/upnp_igd.c:590:6: note: expected 'const char *' but argument is of type 'struct UpnpString *' upnp/upnp_igd.c:915:8: error: passing argument 2 of 'upnp_igd_handle_subscribe_update' from incompatible pointer type [-Werror] upnp/upnp_igd.c:806:6: note: expected 'const char *' but argument is of type 'struct UpnpString *' upnp/upnp_igd.c:926:7: error: passing argument 2 of 'UpnpSubscribe' from incompatible pointer type [-Werror] In file included from upnp/upnp_igd_utils.h:5:0, from upnp/upnp_igd.c:2: /usr/include/upnp/upnp.h:2077:17: note: expected 'const char *' but argument is of type 'struct UpnpString *' upnp/upnp_igd.c:929:8: error: passing argument 2 of 'upnp_igd_handle_subscribe_update' from incompatible pointer type [-Werror] upnp/upnp_igd.c:806:6: note: expected 'const char *' but argument is of type 'struct UpnpString *' cc1: all warnings being treated as errors make[5]: *** [upnp/upnp_igd.lo] Erreur 1 With libupnp4-dev : CC upnp/upnp_igd.lo upnp/upnp_igd.c:367:86: error: 'struct Upnp_Discovery' declared inside parameter list [-Werror] upnp/upnp_igd.c:367:86: error: its scope is only this definition or declaration, which is probably not what you want [-Werror] upnp/upnp_igd.c: In function 'upnp_igd_add_device': upnp/upnp_igd.c:391:51: error: dereferencing pointer to incomplete type upnp/upnp_igd.c:412:47: error: dereferencing pointer to incomplete type upnp/upnp_igd.c:421:53: error: dereferencing pointer to incomplete type upnp/upnp_igd.c:424:47: error: dereferencing pointer to incomplete type upnp/upnp_igd.c:434:73: error: dereferencing pointer to incomplete type _______________________________________________ Linphone-developers mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-developers |
[Prev in Thread] | Current Thread | [Next in Thread] |