Bug #4950
src/descrambler/cccam.c error
0%
Description
Error when running make
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui LANGUAGES="ach ady ar bg cs da de en_US en_GB es et fa fi fr he hr hu it ko lv lt nl no pl pt ro ru sl sk sq sv tr uk zh zh-Hans" all
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=std compile-std
WEBUI std finished
/Library/Developer/CommandLineTools/usr/bin/make -f Makefile.webui WEBUI=debug compile-debug
WEBUI debug finished
CC src/dvr/dvr_db.o
CC src/dvr/dvr_rec.o
CC src/dvr/dvr_autorec.o
CC src/dvr/dvr_timerec.o
CC src/dvr/dvr_vfsmgr.o
CC src/dvr/dvr_config.o
CC src/dvr/dvr_cutpoints.o
CC src/webui/webui.o
CC src/webui/comet.o
CC src/webui/extjs.o
CC src/webui/simpleui.o
CC src/webui/statedump.o
CC src/webui/html.o
CC src/webui/webui_api.o
CC src/webui/xmltv.o
CC src/webui/doc_md.o
CC src/muxer.o
CC src/muxer/muxer_pass.o
CC src/muxer/ebml.o
CC src/muxer/muxer_mkv.o
CC src/muxer/muxer_audioes.o
Building src/tvh_locale_inc.c
CC src/tvh_locale.o
CC src/zlib.o
CC src/upnp.o
CC src/satip/server.o
CC src/satip/rtsp.o
CC src/satip/rtp.o
CC src/descrambler/descrambler.o
CC src/descrambler/caclient.o
CC src/descrambler/caid.o
CC src/input/mpegts.o
CC src/input/mpegts/mpegts_pid.o
CC src/input/mpegts/mpegts_input.o
CC src/input/mpegts/tsdemux.o
CC src/input/mpegts/dvb_psi_hbbtv.o
CC src/input/mpegts/dvb_psi_lib.o
CC src/input/mpegts/mpegts_network.o
CC src/input/mpegts/mpegts_mux.o
CC src/input/mpegts/mpegts_service.o
CC src/input/mpegts/mpegts_table.o
CC src/input/mpegts/dvb_support.o
CC src/input/mpegts/dvb_charset.o
CC src/input/mpegts/dvb_psi.o
CC src/input/mpegts/fastscan.o
CC src/input/mpegts/mpegts_mux_sched.o
CC src/input/mpegts/mpegts_network_scan.o
CC src/input/mpegts/mpegts_network_dvb.o
CC src/input/mpegts/mpegts_mux_dvb.o
CC src/input/mpegts/scanfile.o
CC src/epggrab/otamux.o
CC src/epggrab/module/eit.o
CC src/epggrab/module/eitpatternlist.o
CC src/epggrab/module/psip.o
CC src/epggrab/support/freesat_huffman.o
CC src/epggrab/module/opentv.o
CC src/input/mpegts/satip/satip.o
CC src/input/mpegts/satip/satip_frontend.o
CC src/input/mpegts/satip/satip_satconf.o
CC src/input/mpegts/satip/satip_rtsp.o
CC src/input/mpegts/tvhdhomerun/tvhdhomerun.o
CC src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.o
CC src/input/mpegts/iptv/iptv.o
CC src/input/mpegts/iptv/iptv_mux.o
CC src/input/mpegts/iptv/iptv_service.o
CC src/input/mpegts/iptv/iptv_http.o
CC src/input/mpegts/iptv/iptv_udp.o
CC src/input/mpegts/iptv/iptv_rtsp.o
CC src/input/mpegts/iptv/iptv_rtcp.o
CC src/input/mpegts/iptv/iptv_pipe.o
CC src/input/mpegts/iptv/iptv_file.o
CC src/input/mpegts/iptv/iptv_auto.o
CC src/input/mpegts/tsfile/tsfile.o
CC src/input/mpegts/tsfile/tsfile_input.o
CC src/input/mpegts/tsfile/tsfile_mux.o
CC src/timeshift.o
CC src/timeshift/timeshift_filemgr.o
CC src/timeshift/timeshift_writer.o
CC src/timeshift/timeshift_reader.o
CC src/bonjour.o
CC src/libav.o
CC src/muxer/muxer_libav.o
CC src/api/api_codec.o
CC src/input/mpegts/iptv/iptv_libav.o
CC src/transcoding/memutils.o
CC src/transcoding/transcode/audio.o
CC src/transcoding/transcode/context.o
CC src/transcoding/transcode/helpers.o
CC src/transcoding/transcode/module.o
CC src/transcoding/transcode/stream.o
CC src/transcoding/transcode/transcoder.o
CC src/transcoding/transcode/video.o
CC src/transcoding/codec/codec.o
CC src/transcoding/codec/module.o
CC src/transcoding/codec/profile.o
CC src/transcoding/codec/profile_audio_class.o
CC src/transcoding/codec/profile_class.o
CC src/transcoding/codec/profile_video_class.o
CC src/transcoding/codec/codecs/aac.o
CC src/transcoding/codec/codecs/flac.o
CC src/transcoding/codec/codecs/mp2.o
CC src/transcoding/codec/codecs/mpeg2video.o
CC src/transcoding/codec/codecs/vorbis.o
CC src/transcoding/codec/codecs/libs/libx26x.o
CC src/transcoding/codec/codecs/libs/libvpx.o
CC src/transcoding/codec/codecs/libs/libtheora.o
CC src/transcoding/codec/codecs/libs/libvorbis.o
CC src/transcoding/codec/codecs/libs/libopus.o
CC src/descrambler/tvhcsa.o
CC src/descrambler/cclient.o
CC src/descrambler/emm_reass.o
CC src/descrambler/cwc.o
CC src/descrambler/cccam.o
src/descrambler/cccam.c:247:22: error: implicit declaration of function
'be64toh' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
uint64_t node_id = be64toh(*((uint64_t *) nodeid));1 error generated.
Files
History
Updated by saen acro over 6 years ago
So is apple problem.
Under linux no problems.
Ubuntu 14.04 16.04 17.10 18.04
CentOs 7.1
Updated by Scott Hamilton over 6 years ago
- File scott_endian.h scott_endian.h added
It hasn't been defined what "be64toh" is. You need to create your own endian header file with the following in: (I named mine scott_endian.h)
#define htobe16 OSSwapHostToBigInt16(x)
#define htole16 OSSwapHostToLittleInt16(x)
#define be16toh OSSwapBigToHostInt16(x)
#define le16toh OSSwapLittleToHostInt16#define htobe32 OSSwapHostToBigInt32(x)
#define htole32 OSSwapHostToLittleInt32(x)
#define be32toh OSSwapBigToHostInt32(x)
#define le32toh OSSwapLittleToHostInt32#define htobe64 OSSwapHostToBigInt64(x)
#define htole64 OSSwapHostToLittleInt64(x)
#define be64toh OSSwapBigToHostInt64(x)
#define le64toh OSSwapLittleToHostInt64
Then using Atom or another editor add
#include "scott_endian.h"
into the cccam.c file.
I've attached my header file for reference which you can download and rename if you like.
S
Updated by Scott Hamilton over 6 years ago
ps - place your endian header file in the same dir as cccam.c