error while MAKE on http trasnport

104 views
Skip to first unread message

ajay prasad

unread,
Jul 27, 2020, 7:31:24 AM7/27/20
to meetecho-janus

Hi All,

I have pulled janus-gateway latest master branch and tried to build.  I am facing issue with http transport. 

plaform : AWS EC2 and centOS 7


./configure show fine.
checking for TRANSPORTS... yes
checking for MHD... yes
Transports:
REST (HTTP/HTTPS): yes
while doing make shows lot of warnings in transports/janus_http.c

please suggest, if any one face similar problem and resolved.
 
I have used libmicrohttpd-0.9.59 . and libmicrohttpd-0.9.71 library for http tranport .  using both it is same.



  CC       transports/transports_libjanus_http_la-janus_http.lo
transports/janus_http.c: In function 'janus_http_create_daemon':
transports/janus_http.c:473:5: warning: passing argument 3 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
     admin ? janus_http_admin_client_connect : janus_http_client_connect,
     ^~~~~
In file included from transports/janus_http.c:37:0:
/usr/local/include/microhttpd.h:2425:1: note: expected 'MHD_AcceptPolicyCallback {aka enum MHD_Result (*)(void *, const struct sockaddr *, unsigned int)}' but argument is of type 'int (*)(void *, const struct sockaddr *, socklen_t) {aka int (*)(void *, const struct sockaddr *, unsigned int)}'
 MHD_start_daemon (unsigned int flags,
 ^~~~~~~~~~~~~~~~
transports/janus_http.c:475:5: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
     admin ? &janus_http_admin_handler : &janus_http_handler,
     ^~~~~


full ./cofigure and  make logs is her



ajay prasad

unread,
Jul 28, 2020, 1:19:07 AM7/28/20
to meetecho-janus


I am using gcc 7.3 to compile janus,
NOT able to get  why such warnings "this incompatible pointer type" , Is any specific FLAGS needed while compiling libmicrohttpd MHD or specific GCC version required.

Kindly suggest on this.

ajay prasad

unread,
Jul 30, 2020, 5:03:36 AM7/30/20
to meetecho-janus


Any advice on this?
why there is such warnings while compiling janus, is some library version issue? how do i check... please suggest.

Reply all
Reply to author
Forward
0 new messages