Moderator Control Panel ]

scan-s2 && szap-s2 issues

scan-s2 && szap-s2 issues

Postby eelstrebor » Mon Jul 30, 2018 12:47 am

When I try to build szap-s2 I get these errors:

~/Downloads/Linux/tbs/szap-s2$ make -j4
gcc -I../linux-tbs-drivers/linux/include -c szap-s2.c -o szap-s2.o
szap-s2.c: In function ‘do_tune’:
szap-s2.c:365:12: error: ‘DTV_DVBS2_MIS_ID’ undeclared (first use in this function)
{ .cmd = DTV_DVBS2_MIS_ID, .u.data = mis },
^
szap-s2.c:365:12: note: each undeclared identifier is reported only once for each function it appears in
szap-s2.c: In function ‘read_channels’:
szap-s2.c:657:12: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
switch (toupper(*field)) {
^
Makefile:29: recipe for target 'szap-s2.o' failed
make: *** [szap-s2.o] Error 1

I fixed the toupper() error by adding #include <ctype.h> to szap-s2.c. I couldn't find a solution to the DTV_DVBS2_MIS_ID issue since it doesn't appear to be in libdvbv5 dtv properties. So, I removed it from struct dtv_property{} and szap-s2.c was able to compile. I guess that the C code for szap-s2.c needs updating? I'm using tbs-linux-drivers_v170330.zip

I was able to build scan-s2 but got a lot of warnings:

~/Downloads/Linux/tbs/scan-s2$ make -j4
gcc -I../linux-tbs-drivers/linux/include -c atsc_psip_section.c -o atsc_psip_section.o
gcc -I../linux-tbs-drivers/linux/include -c diseqc.c -o diseqc.o
gcc -I../linux-tbs-drivers/linux/include -c dump-vdr.c -o dump-vdr.o
gcc -I../linux-tbs-drivers/linux/include -c dump-zap.c -o dump-zap.o
In file included from atsc_psip_section.c:1:0:
atsc_psip_section.h:57:1: note: offset of packed bit-field ‘reserved2’ has changed in GCC 4.4
} PACKED;
^
diseqc.c: In function ‘rotate_rotor’:
diseqc.c:104:10: warning: implicit declaration of function ‘rotor_angle’ [-Wimplicit-function-declaration]
a1 = rotor_angle(to_rotor_pos);
^
diseqc.c:106:20: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration]
degreesmoved = abs(a1-a2);
^
gcc -I../linux-tbs-drivers/linux/include -c lnb.c -o lnb.o
gcc -I../linux-tbs-drivers/linux/include -c scan.c -o scan.o
gcc -I../linux-tbs-drivers/linux/include -c section.c -o section.o
In file included from scan.c:48:0:
atsc_psip_section.h:57:1: note: offset of packed bit-field ‘reserved2’ has changed in GCC 4.4
} PACKED;
^
scan.c: In function ‘__tune_to_transponder’:
scan.c:1734:3: warning: ‘return’ with no value, in function returning non-void
return;
^
scan.c:1784:39: warning: implicit declaration of function ‘rotor_nn’ [-Wimplicit-function-declaration]
if (t->orbital_pos!=0) rotor_pos = rotor_nn(t->orbital_pos, t->we_flag);
^
scan.c:1852:3: warning: ‘return’ with no value, in function returning non-void
return;
^
scan.c:1896:5: warning: ‘return’ with no value, in function returning non-void
return;
^
scan.c: In function ‘main’:
scan.c:3045:4: warning: ‘return’ with no value, in function returning non-void
return;
^
gcc atsc_psip_section.o diseqc.o dump-vdr.o dump-zap.o lnb.o scan.o section.o -o scan-s2
eelstrebor
 
Posts: 23
Joined: Wed Nov 04, 2015 7:56 am

Re: scan-s2 && szap-s2 issues

Postby xiaocao » Thu Aug 30, 2018 6:23 pm

hi ,

you can add source " #define DTV_DVBS2_MIS_ID 8" in szap-s2.c , then conpile.

where did you download the latest szap-s2 source ? i can compile in myside .



best regards!
xiaocao
 
Posts: 71
Joined: Tue Jun 25, 2013 5:48 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests

cron