Aktuelles
Digital Eliteboard - Das Digitale Technik Forum

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Registriere dich noch heute kostenlos, um Mitglied zu werden! Sobald du angemeldet bist, kannst du auf unserer Seite aktiv teilnehmen, indem du deine eigenen Themen und Beiträge erstellst und dich über deinen eigenen Posteingang mit anderen Mitgliedern unterhalten kannst! Zudem bekommst du Zutritt zu Bereichen, welche für Gäste verwehrt bleiben

Oscam absturz

muß ich hier mal meinen GCC 8 zum laufen bringen, um selber compilieren zu können. Er spukt noch mit älterer Version.:(
 
@Kind regards:
erhöhe char buff[7] = {'\0'};

"0x%04X" zurück auf "0x%02X"

Problem ist
uint16_t len = 0;

UINT16_MAX = 655336 >> 0x1 00 00

kompilieren ist doch einfach.
ich habe GCC 8 installliert, er beisst sich gerade aber mit der alten Version:mad:

EDIT: gcc-8 jetzt installiert & spuckt jede Menge Warnings bei compilieren aus:(
 
Zuletzt bearbeitet:
@gorgone, dann solltes du auch beim Modern mal die Hand anlegen.
der emu.patch müsste auch mal angepasst werden ...
Code:
   / _ \/ ___| / __|__ _ _ __ ___
  | | | \___ \| |  / _` | '_ ` _ \
  | |_| |___) | |_| (_| | | | | | |
   \___/|____/ \___\__,_|_| |_| |_|
 
+-------------------------------------------------------------------------------
| OSCam ver: 1.20-stable_svn rev: 1531 target: x86_64-linux-gnu-libusb
| Tools:
|  CROSS    = /opt/s3/support/toolchains/native/bin/x86_64-linux-gnu-
|  CC       = /opt/s3/support/toolchains/native/bin/x86_64-linux-gnu-gcc
| Settings:
|  CONF_DIR =
|  CC_OPTS  = -O2 -ggdb -pipe -ffunction-sections -fdata-sections -finline-functions -fno-short-enums -freg-struct-return
|  CC_WARN  = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
|  CFLAGS   = -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_UTF8=1 -DWITH_UTF8
|  LDFLAGS  = -Wl,--gc-sections -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_UTF8=1 -DWITH_UTF8
|  LIBS     = -lcrypto -lusb-1.0 -lrt -lpthread -ldl -lrt
|  UseFlags = USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_UTF8=1
| Config:
|  Addons   : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX
|  Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP
|  Readers  : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
|  CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STINGER DRECAS SMART
|  Compiler : x86_64-linux-gnu-gcc (Debian 7.3.0-19) 7.3.0
|  Config   : build/x86_64-linux-gnu-libusb/config.mak
|  Binary   : /opt/s3/support/binaries/oscam-svn1531-debian-buster-webif-dvbapi-libusb
+-------------------------------------------------------------------------------
HOSTCC    webif/pages_gen
GEN    webif/pages.c
GEN    Compressed 468984 template bytes into 196456 bytes. 272528 saved bytes (58.11%).
CC    cscrypt/i_cbc.c
CC    cscrypt/i_ecb.c
CC    cscrypt/i_skey.c
CC    cscrypt/rc6.c
CC    cscrypt/md5.c
CC    csctapi/atr.c
CC    csctapi/protocol_t0.c
CC    cscrypt/des.c
CC    csctapi/protocol_t1.c
CC    csctapi/ifd_db2com.c
CC    csctapi/icc_async.c
csctapi/icc_async.c: In function ‘ICC_Async_CardWrite’:
csctapi/icc_async.c:221:6: warning: statement will never be executed [-Wswitch-unreachable]
    if(try > 1)
      ^
csctapi/icc_async.c:222:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
      rdr_log(reader, "Warning: needed try nr %i, next ECM has some delay", try);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
csctapi/icc_async.c:223:3: note: here
   case ATR_PROTOCOL_TYPE_T0:
   ^~~~
CC    csctapi/io_serial.c
CC    csctapi/ifd_mp35.c
CC    csctapi/ifd_drecas.c
CC    csctapi/ifd_phoenix.c
CC    csctapi/ifd_sc8in1.c
CC    csctapi/ifd_sci.c
CC    csctapi/ifd_smargo.c
CC    csctapi/ifd_smartreader.c
CC    csctapi/ifd_stinger.c
CC    minilzo/minilzo.c
CC    module-anticasc.c
CC    module-cacheex.c
CC    module-camd35-cacheex.c
CC    module-camd35.c
CC    module-cccam-cacheex.c
CC    module-cccam.c
CC    module-cccshare.c
CC    module-constcw.c
CC    module-csp.c
CC    module-cw-cycle-check.c
CC    module-dvbapi-chancache.c
CC    module-gbox-helper.c
CC    module-dvbapi.c
CC    module-gbox-sms.c
CC    module-gbox-remm.c
CC    module-gbox-cards.c
CC    module-gbox.c
CC    module-monitor.c
CC    module-ird-guess.c
CC    module-newcamd.c
CC    module-newcamd-des.c
CC    module-pandora.c
CC    module-ghttp.c
CC    module-radegast.c
CC    module-scam.c
CC    module-serial.c
CC    module-stat.c
CC    module-webif-lib.c
CC    module-webif-tpl.c
CC    module-webif.c
CC    webif/pages.c
CC    reader-common.c
CC    reader-bulcrypt.c
CC    reader-conax.c
CC    reader-cryptoworks.c
CC    reader-dgcrypt.c
CC    reader-dre-cas.c
CC    reader-dre.c
CC    reader-dre-common.c
CC    reader-dre-st20.c
CC    reader-griffin.c
CC    reader-irdeto.c
CC    reader-nagra.c
CC    reader-seca.c
CC    reader-tongfang.c
CC    reader-viaccess.c
CC    reader-videoguard-common.c
CC    reader-videoguard1.c
CC    reader-videoguard12.c
CC    reader-videoguard2.c
CC    oscam-aes.c
CC    oscam-array.c
CC    oscam-hashtable.c
CC    oscam-cache.c
CC    oscam-chk.c
CC    oscam-conf.c
CC    oscam-client.c
CC    oscam-conf-chk.c
CC    oscam-config-null.c
CC    oscam-conf-mk.c
oscam-config-null.c: In function ‘conf_file’:
oscam-config-null.c:34:81: warning: ‘snprintf’ output truncated before the last format character [-Wformat-truncation=]
    snprintf(user_str, 48, "[account]\nuser = dvbapi_local\nau = 1\ngroup = 1\n\n");
                                                                                 ^
oscam-config-null.c:34:4: note: ‘snprintf’ output 49 bytes into a destination of size 48
    snprintf(user_str, 48, "[account]\nuser = dvbapi_local\nau = 1\ngroup = 1\n\n");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
oscam-config-null.c:88:127: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 162 and 170 [-Wformat-truncation=]
        snprintf(server_str, 256, "[reader]\nlabel = easymouse_%02d\nprotocol = mouse\ndetect = CD\ndevice = /dev/serial/by-id/%s\ngroup = 1\nemmcache = 1,3,2\n\n", cr, namelist[ncount-1]->d_name); cr++;
                                                                                                                               ^~
oscam-config-null.c:88:8: note: ‘snprintf’ output between 116 and 379 bytes into a destination of size 256
        snprintf(server_str, 256, "[reader]\nlabel = easymouse_%02d\nprotocol = mouse\ndetect = CD\ndevice = /dev/serial/by-id/%s\ngroup = 1\nemmcache = 1,3,2\n\n", cr, namelist[ncount-1]->d_name); cr++;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
oscam-config-null.c:109:119: warning: ‘
detect = CD
group = 1
emmcache = 1,3,2

   ’ directive output may be truncated writing 41 bytes into a region of size between 29 and 47 [-Wformat-truncation=]
       snprintf(server_str, 124, "\n[reader]\nlabel = Smargo_TP%d\nprotocol = smartreader\ndevice = TripleP%i;Serial:%s\ndetect = CD\ngroup = 1\nemmcache = 1,3,2\n\n", cr, cr, serial); cr++;
                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
oscam-config-null.c:109:7: note: ‘snprintf’ output 119 or more bytes (assuming 137) into a destination of size 124
       snprintf(server_str, 124, "\n[reader]\nlabel = Smargo_TP%d\nprotocol = smartreader\ndevice = TripleP%i;Serial:%s\ndetect = CD\ngroup = 1\nemmcache = 1,3,2\n\n", cr, cr, serial); cr++;
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC    oscam-config-account.c
CC    oscam-config-reader.c
CC    oscam-config-global.c
CC    oscam-config.c
CC    oscam-ecm.c
CC    oscam-emm.c
CC    oscam-emm-cache.c
CC    oscam-failban.c
CC    oscam-files.c
CC    oscam-garbage.c
CC    oscam-lock.c
CC    oscam-log.c
CC    oscam-log-reader.c
CC    oscam-net.c
CC    oscam-llist.c
CC    oscam-reader.c
CC    oscam-simples.c
CC    oscam-string.c
CC    oscam-time.c
CC    oscam-work.c
module-webif.c: In function ‘process_request’:
module-webif.c:6689:37: warning: ‘%02X’ directive output may be truncated writing between 2 and 8 bytes into a region of size 3 [-Wformat-truncation=]
     snprintf(buff, sizeof(buff), "0x%02X", len);
                                     ^~~~
module-webif.c:6689:34: note: directive argument in the range [0, 2147483647]
     snprintf(buff, sizeof(buff), "0x%02X", len);
                                  ^~~~~~~~
module-webif.c:6689:5: note: ‘snprintf’ output between 5 and 11 bytes into a destination of size 5
     snprintf(buff, sizeof(buff), "0x%02X", len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC    oscam.c
CONF    build/x86_64-linux-gnu-libusb/config.c
BUILD    Distribution/list_smargo-1.20-stable_svn1531-x86_64-linux-gnu-libusb
LINK    /opt/s3/support/binaries/oscam-svn1531-debian-buster-webif-dvbapi-libusb.debug
STRIP    /opt/s3/support/binaries/oscam-svn1531-debian-buster-webif-dvbapi-libusb
 
Zuletzt bearbeitet:
ja modern hab ich schon angepasst am 4.
oder hab ich da was vergessen ?

Link veralten (gelöscht)
 
Dann schau dir doch den Spoiler an, der ist von der 1531 und da sieht es nicht so aus, als ob du alles gefixt hast.
Zumal deine Changsets aus dem 114xx trunk bei der 1531 nicht auftauchen. Absicht???
 
Zuletzt bearbeitet:
hab mal meine Compiler-Collection auf Vordermann gebracht:
olaf@L1002:/projects/HES/SoftCAM/oscam-modern-svn$ scan-build make
scan-build: 64 bugs found.
scan-build: Run 'scan-view /tmp/scan-build-2018-06-06-171728-14586-1' to examine bug reports.​

OSCAM Modern mit clang getestet, 64 Bugs inside.:(
 
Zurück
Oben