You are not logged in.

#1 2011-05-14 06:57:14

cdwijs
Member
Registered: 2010-04-24
Posts: 294

Can't compile old version of sasc-ng

Hi All,

I am trying to compile the program sasc-ng in order to decode encrypted DVB-T (digitenne). I am trying to follow the following manual:
http://www.cccamforum.com/forums/showthread.php?t=67988

I am told an here an old version of sasc-ng works without any problems:
http://www.sat4all.com/forums/ubbthread … /1992597/4 (dutch link)

So here we go:

cedric@laptop:~/tmp$ mkdir sasc-ng
cedric@laptop:~/tmp$ cd sasc-ng/
cedric@laptop:~/tmp/sasc-ng$ hg clone --rev 28d5438fad67 http://85.17.209.13:6100/sc
destination directory: sc
adding changesets
adding manifests
adding file changes
added 532 changesets with 1763 changes to 500 files
updating to branch trunk
314 files updated, 0 files merged, 0 files removed, 0 files unresolved
cedric@laptop:~/tmp/sasc-ng$ cd sc/contrib/sasc-ng/
cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ chmod +x configure makelinks.sh dvbloopback/module/config_dvb.pl

Add #include <sys/stat.h> to plugin_scan.c

 
cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ nano dvblb_plugins/plugin_scan.c

Now try to compile

cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ make clean
Makefile:5: config.mak: No such file or directory
make: *** No rule to make target `config.mak'.  Stop.
cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ ./configure 
Using C++ compiler: g++
Using compile type debug
Processor capabilities: native ( mmx sse sse2 )
Trying various FFdecsa optimizations...
    PARALLEL_32_INT: test failed
    PARALLEL_64_2INT: test failed
    PARALLEL_64_LONG: 79
    PARALLEL_64_MMX: 208
    PARALLEL_128_2LONG: 97
    PARALLEL_128_2MMX: 218
    PARALLEL_128_SSE: 258
    PARALLEL_128_SSE2: 305
Choosing PARALLEL_MODE = PARALLEL_128_SSE2
cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ make module
cd dvbloopback/module && make 
make[1]: Entering directory `/storage/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module'
echo "Skipping Modver "
Skipping Modver 
./config_dvb.pl "BUILD_DIR=/lib/modules/2.6.36-ARCH/build" "EXTRA_CFLAGS=-Idrivers/media/dvb/dvb-core/ -I/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module"
Found dvbdev.h from 2.6.22 or later
make -C /lib/modules/2.6.36-ARCH/build M=/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module modules
make[2]: Entering directory `/usr/src/linux-2.6.36-ARCH'
  CC [M]  /home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.o
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c: In function ‘dvblb_ioctl’:
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:727:26: warning: passing argument 5 of ‘dvblb_usercopy’ from incompatible pointer type
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:121:12: note: expected ‘int (*)(struct inode *, struct file *, unsigned int,  void *)’ but argument is of type ‘int (*)(struct file *, unsigned int,  void *)’
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c: At top level:
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:981:2: error: unknown field ‘ioctl’ specified in initializer
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:981:2: warning: initialization from incompatible pointer type
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:990:2: warning: initialization from incompatible pointer type
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:1001:2: error: unknown field ‘ioctl’ specified in initializer
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:1001:2: warning: initialization from incompatible pointer type
/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c:1010:2: warning: initialization from incompatible pointer type
make[3]: *** [/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.o] Error 1
make[2]: *** [_module_/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.36-ARCH'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/storage/home/cedric/tmp/sasc-ng/sc/contrib/sasc-ng/dvbloopback/module'
make: *** [module] Error 2
 

And try to compile the softcam:

cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ make
g++ -Wall -D__user= -Werror  -g -o objs/forward.o -c  -DRELEASE_VERSION=\"0.0.2\" -D__KERNEL_STRICT_NAMES -Idvbloopback/src -Idvbloopback/module -I/lib/modules/2.6.36-ARCH/build/include dvbloopback/src/forward.c
cc1plus: warnings being treated as errors
In file included from /usr/include/asm/sigcontext.h:5:0,
                 from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:339,
                 from dvbloopback/src/forward.c:30:
/lib/modules/2.6.36-ARCH/build/include/linux/types.h:13:2: error: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
make: *** [objs/forward.o] Error 1

My versions:

cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ uname -a
Linux laptop 2.6.36-ARCH #1 SMP PREEMPT Mon Jan 24 18:34:55 UTC 2011 i686 Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz GenuineIntel GNU/Linux
cedric@laptop:~/tmp/sasc-ng/sc/contrib/sasc-ng$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/src/gcc-4.5-20110127/configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --enable-gold --with-plugin-ld=ld.gold --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --with-cloog-include=/usr/include/cloog-ppl --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.2 20110127 (prerelease) (GCC) 

Last edited by cdwijs (2011-05-14 07:08:01)

Offline

Board footer

Powered by FluxBB