compile vtunerc for ppc

109 views
Skip to first unread message

sven

unread,
Nov 2, 2012, 9:35:10 AM11/2/12
to vtuner-...@googlegroups.com
Hi,
Im trying to compile vtunerc for ppc, so i can use it on my Synology DS210+ nas.
I have successfully compiled and loaded the linux driver, but I'm struggling with vtunerc, it will compile when i use DHAVE_DVB_API_VERSION=3 and DHAVE_DVB_API_VERSION=5  but when i try to run it, it generates a segmentation fault.
When i use DHAVE_DVB_API_VERSION=2 compilation fails:

gcc -DHAVE_DVB_API_VERSION=2 -I/volume1/sven/linux-2.6.32.12/include  -c -o vtunerd-service.o ../../vtunerd-service.c
In file included from ../../vtunerd-service.h:8,
                from ../../vtunerd-service.c:14:
../../vtuner-network.h:5:28: ost/frontend.h: No such file or directory
../../vtuner-network.h:6:23: ost/dmx.h: No such file or directory
../../vtuner-network.h:7:23: ost/sec.h: No such file or directory
In file included from ../../vtunerd-service.h:8,
                from ../../vtunerd-service.c:14:
../../vtuner-network.h:55: error: syntax error before "__u8"

I have noticed that there is no precompiled vtunerc PPC binary, so now i wonder if it is even possible to compile vtunerc for my nas.

regards,

Sven

Honza Petrouš

unread,
Nov 4, 2012, 5:27:21 PM11/4/12
to vtuner-...@googlegroups.com
Hi Sven.

I'm trying to make my own powerpc crosscompiler to check your issue.
Just now I'm fighting with crosstool-0.43. Do you may have some
info when I can get precompiled binaries instead?

BR.

/Honza

2012/11/2 sven <sven....@gmail.com>:

sven

unread,
Nov 6, 2012, 9:51:00 AM11/6/12
to vtuner-...@googlegroups.com
Hi Honza,

I used the toolchain provided by Synology, the manufacturer of my nas.
I think i need it to compile with DHAVE_DVB_API_VERSION=5, because in /usr/local/powerpc-linux-gnuspe/source/linux-2.6.32/include/linux/dvb/version.h i find #define DVB_API_VERSION 5.
As i mentioned before with DHAVE_DVB_API_VERSION=5 it compiles fine, but it returns a segmentation fault when i try to start it.
The toolchain is working fine, since i've compiled a working linux driver.

You can find the toolchain here:
And the kernel source here:
And a manual can be found here:

Regards,

Sven
Reply all
Reply to author
Forward
0 new messages