Project

General

Profile

Bug #4950

src/descrambler/cccam.c error

Added by Chris Vaughan over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Configuration
Target version:
-
Start date:
2018-02-18
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1079~g567fb8b86
Affected Versions:

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

scott_endian.h (970 Bytes) scott_endian.h Scott Hamilton, 2018-04-14 19:29

History

#1

Updated by saen acro over 3 years ago

What OS Kernel use and are you crosscompile?

#2

Updated by Chris Vaughan over 3 years ago

Its running on Mac OS 10.13.3 native.

#3

Updated by saen acro over 3 years ago

So is apple problem.
Under linux no problems.
Ubuntu 14.04 16.04 17.10 18.04
CentOs 7.1

#4

Updated by Scott Hamilton over 3 years ago

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(x) OSSwapHostToBigInt16(x)
#define htole16(x) OSSwapHostToLittleInt16(x)
#define be16toh(x) OSSwapBigToHostInt16(x)
#define le16toh(x) OSSwapLittleToHostInt16(x)

#define htobe32(x) OSSwapHostToBigInt32(x)
#define htole32(x) OSSwapHostToLittleInt32(x)
#define be32toh(x) OSSwapBigToHostInt32(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)

#define htobe64(x) OSSwapHostToBigInt64(x)
#define htole64(x) OSSwapHostToLittleInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#define le64toh(x) OSSwapLittleToHostInt64(x)

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

#5

Updated by Scott Hamilton over 3 years ago

ps - place your endian header file in the same dir as cccam.c

Also available in: Atom PDF