Edward-Wu / srt-live-server

srt live server for low latency
Other
644 stars 192 forks source link

Make error #101

Closed DonSidro closed 3 years ago

DonSidro commented 3 years ago

Im trying to run the make command and seems to work fine SRT is also installed how ever i keep getting this error message

mkdir -p ./logs mkdir -p ./obj mkdir -p ./bin g++ -o ./bin/sls srt-live-server.cpp ./obj/SLSLog.o ./obj/common.o ./obj/conf.o ./obj/SLSThread.o ./obj/SLSEpollThread.o ./obj/SLSManager.o ./obj/SLSGroup.o ./obj/SLSRole.o ./obj/SLSListener.o ./obj/SLSRoleList.o ./obj/SLSSrt.o ./obj/SLSPublisher.o ./obj/SLSPlayer.o ./obj/SLSRecycleArray.o ./obj/SLSMapData.o ./obj/SLSMapPublisher.o ./obj/SLSRelay.o ./obj/SLSPuller.o ./obj/SLSPusher.o ./obj/SLSRelayManager.o ./obj/SLSPullerManager.o ./obj/SLSPusherManager.o ./obj/SLSMapRelay.o ./obj/SLSClient.o ./obj/TCPRole.o ./obj/SLSArray.o ./obj/HttpRoleList.o ./obj/HttpClient.o ./obj/SLSSyncClock.o ./obj/TSFileTimeReader.o -g -I./ -I../ -I./slscore -I./include -L ./lib -lpthread -lz -lsrt In file included from ./slscore/SLSLog.hpp:32, from srt-live-server.cpp:32: ./slscore/common.hpp:120:1: warning: 'typedef' was ignored in this declaration 120 | typedef struct ts_info { | ^~~~~~~ In file included from ./slscore/HttpClient.hpp:29, from ./slscore/SLSRole.hpp:38, from ./slscore/SLSManager.hpp:31, from srt-live-server.cpp:33: ./slscore/TCPRole.hpp:47:1: warning: 'typedef' was ignored in this declaration 47 | typedef struct DATA_PARAM { | ^~~~~~~ In file included from ./slscore/SLSRole.hpp:38, from ./slscore/SLSManager.hpp:31, from srt-live-server.cpp:33: ./slscore/HttpClient.hpp:45:1: warning: 'typedef' was ignored in this declaration 45 | typedef struct HTTP_RESPONSE_INFO { | ^~~~~~~ In file included from /usr/include/rpc/netdb.h:42, from /usr/include/netdb.h:32, from /usr/local/include/srt/platform_sys.h:98, from /usr/local/include/srt/srt.h:21, from ./slscore/SLSSrt.hpp:29, from ./slscore/SLSRole.hpp:33, from ./slscore/SLSManager.hpp:31, from srt-live-server.cpp:33: ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_relay_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSRelay.hpp:52:1: note: in expansion of macro 'SLS_SET_CONF' 52 | SLS_SET_CONF(relay, string, type, "pull, push", 1, 31), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_relay_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSRelay.hpp:53:1: note: in expansion of macro 'SLS_SET_CONF' 53 | SLS_SET_CONF(relay, string, mode, "relay mode.", 1, 31), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_relay_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSRelay.hpp:54:1: note: in expansion of macro 'SLS_SET_CONF' 54 | SLS_SET_CONF(relay, string, upstreams, "upstreams", 1, 1023), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_relay_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSRelay.hpp:55:1: note: in expansion of macro 'SLS_SET_CONF' 55 | SLS_SET_CONF(relay, int, reconnect_interval, "reconnect interval, unit s", 1, 3600), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_relay_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSRelay.hpp:56:1: note: in expansion of macro 'SLS_SET_CONF' 56 | SLS_SET_CONF(relay, int, idle_streams_timeout, "idle streams timeout, unit s", -1, 3600), | ^~~~~~~~~~~~ In file included from ./slscore/SLSMapRelay.hpp:32, from ./slscore/SLSGroup.hpp:34, from ./slscore/SLSManager.hpp:33, from srt-live-server.cpp:33: ./slscore/SLSRelayManager.hpp:37:1: warning: 'typedef' was ignored in this declaration 37 | typedef struct SLS_RELAY_INFO { | ^~~~~~~ In file included from /usr/include/rpc/netdb.h:42, from /usr/include/netdb.h:32, from /usr/local/include/srt/platform_sys.h:98, from /usr/local/include/srt/srt.h:21, from ./slscore/SLSSrt.hpp:29, from ./slscore/SLSRole.hpp:33, from ./slscore/SLSManager.hpp:31, from srt-live-server.cpp:33: ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_app_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSPublisher.hpp:50:1: note: in expansion of macro 'SLS_SET_CONF' 50 | SLS_SET_CONF(app, string, app_player, "live", 1, STR_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_app_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSPublisher.hpp:51:1: note: in expansion of macro 'SLS_SET_CONF' 51 | SLS_SET_CONF(app, string, app_publisher, "uplive", 1, STR_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_app_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSPublisher.hpp:52:1: note: in expansion of macro 'SLS_SET_CONF' 52 | SLS_SET_CONF(app, int, publisher_exit_delay, "delay exit time, unit second.", 1, 300), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_app_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSPublisher.hpp:53:1: note: in expansion of macro 'SLS_SET_CONF' 53 | SLS_SET_CONF(app, string, record_hls, "record_hls switch", 1, SHORT_STR_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_app_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSPublisher.hpp:54:1: note: in expansion of macro 'SLS_SET_CONF' 54 | SLS_SET_CONF(app, int, record_hls_segment_duration, "record_hls_segment_duration", 1, 3600), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:57:1: note: in expansion of macro 'SLS_SET_CONF' 57 | SLS_SET_CONF(server, string, domain_player, "play domain", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:58:1: note: in expansion of macro 'SLS_SET_CONF' 58 | SLS_SET_CONF(server, string, domain_publisher, "", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:59:1: note: in expansion of macro 'SLS_SET_CONF' 59 | SLS_SET_CONF(server, int, listen, "listen port", 1024, 10000), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:60:1: note: in expansion of macro 'SLS_SET_CONF' 60 | SLS_SET_CONF(server, int, backlog, "how many sockets may be allowed to wait until they are accepted", 1, 1024), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:61:1: note: in expansion of macro 'SLS_SET_CONF' 61 | SLS_SET_CONF(server, int, latency, "latency.", 1, 300), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:62:1: note: in expansion of macro 'SLS_SET_CONF' 62 | SLS_SET_CONF(server, int, idle_streams_timeout, "players idle timeout when no publisher" , -1, 86400), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_server_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSListener.hpp:63:1: note: in expansion of macro 'SLS_SET_CONF' 63 | SLS_SET_CONF(server, string, on_event_url, "on connect/close http url", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:57:1: note: in expansion of macro 'SLS_SET_CONF' 57 | SLS_SET_CONF(srt, string, log_file, "save log file name.", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:58:1: note: in expansion of macro 'SLS_SET_CONF' 58 | SLS_SET_CONF(srt, string, log_level, "log level", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:59:1: note: in expansion of macro 'SLS_SET_CONF' 59 | SLS_SET_CONF(srt, int, worker_threads, "count of worker thread, if 0, only main thread.", 0, 100), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:60:1: note: in expansion of macro 'SLS_SET_CONF' 60 | SLS_SET_CONF(srt, int, worker_connections, "", 1, 1024), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:61:1: note: in expansion of macro 'SLS_SET_CONF' 61 | SLS_SET_CONF(srt, string, stat_post_url, "statistic info post url", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:62:1: note: in expansion of macro 'SLS_SET_CONF' 62 | SLS_SET_CONF(srt, int, stat_post_interval, "interval of statistic info post.", 1, 60), | ^~~~~~~~~~~~ ./slscore/conf.hpp:72:12: warning: offsetof within non-standard-layout type 'sls_conf_srt_t' is conditionally-supported [-Winvalid-offsetof] 72 | offsetof(sls_conf_##conf##_t, n),\ | ^ ./slscore/SLSManager.hpp:63:1: note: in expansion of macro 'SLS_SET_CONF' 63 | SLS_SET_CONF(srt, string, record_hls_path_prefix, "hls path prefix", 1, URL_MAX_LEN-1), | ^~~~~~~~~~~~ /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status make: *** [Makefile:54: all] Error 1

Cant find anything online that could help me??