[elrepo] Headers question
Joe Henley
joehenley at kc.rr.com
Wed Mar 21 14:16:35 EDT 2012
Alan Bartlett wrote:
> On 20 March 2012 23:27, Joe Henley <joehenley at kc.rr.com> wrote:
>> Alan,
>>
>> As always, your replies are swift and helpful. Thanks!
>>
>> But that means the reason I can't get the latest git version of the
>> v4l-dvb drivers to build is _not_ because I can't load the headers.
>> Which means I have to keep digging to figure out why....
>>
>> Joe
>
> Hi Joe,
>
> Assuming the build process is something along the classical lines of --
>
> ./configure
> make
>
> -- then the first thing to check is that the "configure" process has
> not grumbled and you've missed it. :)
>
> So, perhaps --
>
> ./configure 2> configure-err.txt | tee configure-out.txt
>
> -- will give you two textual files to parse for "mishaps".
>
> If everything is then (apparently) o.k., do likewise for the make --
>
> make 2> make-err.txt | tee make-out.txt
>
> The reason why the make has come to a screeching halt will be at the
> tail end of those two make log files. Understanding the cause of the
> failure and fixing it will be a separate issue.
>
> Hope that gives you some inspiration.
>
> Alan.
> _______________________________________________
> elrepo mailing list
> elrepo at lists.elrepo.org
> http://lists.elrepo.org/mailman/listinfo/elrepo
Hi Alan,
Followed your suggestions (+ found inspiration) and got the following.
I'm not sure if this is a kernel or elrepo problem. If necessary,
please steer me to the kernel folks.
What I'm doing is compiling video4linux drivers from the v4l development
git. I'm using their instructions (http://linuxtv.org/wiki/index.php/
How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers). I'm doing
this against the kernel-ml version 2.6.35-14.1.el5.elrepo.
At the end of the configure.err file is:
/root/media_build/v4l/radio-rtrack2.c: In function 'rtrack2_alloc':
/root/media_build/v4l/radio-rtrack2.c:46: error: implicit declaration of
function 'kzalloc'
/root/media_build/v4l/radio-rtrack2.c:46: warning: return makes pointer
from integer without a cast
make[3]: *** [/root/media_build/v4l/radio-rtrack2.o] Error 1
make[2]: *** [_module_/root/media_build/v4l] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2
build failed at ./build line 410.
The section of code in radio-rtrack2.o which contains line 46 is:
static struct radio_isa_card *rtrack2_alloc(void)
{
line 46 => return kzalloc(sizeof(struct radio_isa_card), GFP_KERNEL);
}
The section of the script, build, which contains line 410, is:
print "******************\n";
print "* Start building *\n";
print "******************\n";
system ("make allyesconfig") == 0 or die "can't select all drivers";
system ("make") == 0 or die "build failed"; <<<<========= line 410
print "**********************************************************\n";
print "* Compilation finished. Use 'make install' to install them\n";
print "**********************************************************\n";
__END__
At the end of the configure.out file is:
CC [M] /root/media_build/v4l/radio-aztech.o
CC [M] /root/media_build/v4l/radio-rtrack2.o
make[2]: Leaving directory `/usr/src/kernels/2.6.35-14.1.el5.elrepo-i686'
make[1]: Leaving directory `/root/media_build/v4l'
Thoughts, suggestions?
I have the configure.err and .out files if there is something you need.
Thanks for all your help with this.
Joe Henley
More information about the elrepo
mailing list