On 08.05.14 22:28, Robert Brown wrote:
I ran the make command from the sub-folder mentioned below and got somewhere
but with errors
I'll take a look at the other post, because it's odd for a cd to make a
lot of difference in finding files specified with a full path.
- so some progress:-
make: Entering directory `/home/debian/linux-sunxi-pat-3.4.67'
CC [M] /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/demod_rtl2832.o
In file included from /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/include-300/dvb-usb.h:19:0,
from /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/foundation.h:19,
from /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/dvbt_demod_base.h:289,
from /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/demod_rtl2832.h:72,
from /home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/demod_rtl2832.c:13:
/home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/include-300/dvb_frontend.h:49:33:
error: field 'parameters' has incomplete type
Any following errors may be due to the first one, so it needs to be
fixed first. The chain of headers included from the .c file is being
found. That is indeed progress.
Can you show us the vicinity of line 19 in include-300/dvb-usb.h ? Gcc is
not complaining about a missing header, so the incomplete definition may
be due to it pulling in the wrong header somewhere, due to the include
path not being what you think it is. (Assuming the code builds OK in the
right environment.)
You'll probably have advice from guys with more kernel building
experience tomorrow. Mine is more from decades of building other stuff,
but the few times I've seen broken definitions while kernel building,
it's due to pulling in the wrong headers. Those listed above all seem to
be local to the source bundle you're compiling, so we need to see more.
I'd try adding "-v" to the CFLAGS definition in the makefile, since that
should "report the final form of the include path" as each file is
compiled. If that's showing anything other than your ARCH=arm7 stuff,
then it's an include path issue.