cloudtrends / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

libtinyRTP compile error in r1185 #413

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

- compilation of doubango on x86_64 arch using centos 6.6 distro
- using libsrtp 1.5.1-pre
- error since svn update from r1172 to r1185

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../tinySAK/src 
-I../tinyNET/src -I../tinyMEDIA/include -Iinclude -DHAVE_SRTP=1 -g -O2 -O3 
-DNDEBUG -g -O2 -O3 -DNDEBUG -MT src/libtinyRTP_la-trtp_manager.lo -MD -MP -MF 
src/.deps/libtinyRTP_la-trtp_manager.Tpo -c src/trtp_manager.c  -fPIC -DPIC -o 
src/.libs/libtinyRTP_la-trtp_manager.o
In file included from /usr/local/include/srtp/datatypes.h:50,
                 from /usr/local/include/srtp/rand_source.h:50,
                 from /usr/local/include/srtp/crypto_kernel.h:49,
                 from include/tinyrtp/trtp_srtp.h:31,
                 from include/tinyrtp/rtcp/trtp_rtcp_session.h:33,
                 from include/tinyrtp/trtp_manager.h:30,
                 from src/trtp_manager.c:25:
/usr/local/include/srtp/integers.h:102: error: conflicting types for 
‘uint64_t’
/usr/include/stdint.h:56: note: previous declaration of ‘uint64_t’ was here
In file included from ../tinyNET/src/tnet_types.h:40,
                 from include/tinyrtp/rtcp/trtp_rtcp_session.h:35,
                 from include/tinyrtp/trtp_manager.h:30,
                 from src/trtp_manager.c:25:
/usr/include/netinet/in.h:368: error: conflicting types for ‘htonl’
/usr/local/include/srtp/datatypes.h:421: note: previous implicit declaration of 
‘htonl’ was here
src/trtp_manager.c: In function ‘_trtp_transport_dtls_handshaking_timer_cb’:
src/trtp_manager.c:256: warning: passing argument 2 of 
‘tnet_transport_dtls_get_handshakingdata’ from incompatible pointer type
../tinyNET/src/tnet_transport.h:115: note: expected ‘const struct 
tnet_socket_s **’ but argument is of type ‘struct tnet_socket_s **’
src/trtp_manager.c: In function ‘_trtp_manager_recv_data’:
src/trtp_manager.c:387: warning: passing argument 2 of 
‘tnet_transport_dtls_get_handshakingdata’ from incompatible pointer type
../tinyNET/src/tnet_transport.h:115: note: expected ‘const struct 
tnet_socket_s **’ but argument is of type ‘struct tnet_socket_t **’
src/trtp_manager.c: In function ‘_trtp_manager_srtp_activate’:
src/trtp_manager.c:598: warning: passing argument 2 of 
‘tnet_transport_dtls_set_remote_fingerprint’ from incompatible pointer type
../tinyNET/src/tnet_transport.h:109: note: expected ‘const unsigned char 
(*)[257]’ but argument is of type ‘unsigned char (*)[257]’
src/trtp_manager.c:618: warning: passing argument 2 of 
‘tnet_transport_dtls_get_handshakingdata’ from incompatible pointer type
../tinyNET/src/tnet_transport.h:115: note: expected ‘const struct 
tnet_socket_s **’ but argument is of type ‘struct tnet_socket_s **’
make[2]: *** [src/libtinyRTP_la-trtp_manager.lo] Error 1
make[2]: Leaving directory `/usr/local/src/doubango/tinyRTP'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/doubango'
make: *** [all] Error 2

Regards
Sascha Pietrowski

Original issue reported on code.google.com by starlein19 on 19 Nov 2014 at 5:13