Problem compiling ivtv modules -

Posted on 2004-11-28
Last Modified: 2010-04-20
I'm running a MythTV ( box featuring Suse 9.0 and a Hauppauge WinTV350 card. Since there are some troubles with the IvyTV 0.1.9 modules for the box, I would like to try the 0.2.0 version. Currently, Chris Kennedy is puming out a lot of release candidates.

As I compile the ivtv modules it remarks:
gcc -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS -I/lib/modules/2.4.21-99-default/build/include -O2 -fomit-frame-pointer -march=i586 -mcpu=i586 -fno-strict-aliasing -Wno-unused -include /lib/modules/2.4.21-99-default/build/include/linux/modversions.h -DNEW_I2C   -c -o ivtv-kthreads.o ivtv-kthreads.c
ivtv-kthreads.c: In function `ivtv_dec_thread':
ivtv-kthreads.c:1121: error: structure has no member named `nice'
ivtv-kthreads.c: In function `ivtv_enc_thread':
ivtv-kthreads.c:1195: error: structure has no member named `nice'
make: *** [ivtv-kthreads.o] Error 1

Since this problem is not reported by others, plus the fact that this problem persisted in all Chris's release candidates tells me thet this is a problem with my box, not the software (and therefore will not be pached). Although I have a reasonal knowledge of Linux, my programming skills are limited to getting things compiled and installed. Any help is appreciated.

P.S.  I did uncomment the following line in Makefile2.4 since I use i2c 2.8.0+:
Question by:asciiman
    LVL 38

    Accepted Solution


       You might want to check the following URL and apply the patch if necessary:

      You could also reference the following URL (the same error as yours):

    Good luck,


    Author Comment

    Hi Wesly,
    I'm pretty sure I'm NOT using a new tuner since the thing worked fine with ivtv0.1.9, which was not the case in the pvr_350_static thread. (Even the SE11 and E5- channels were tuned correctly)

    Although the error occurs in the same module (kthreads), the error itself is totally different. I have enough programming experience to know that if the error is not completely equal, the origin can be very different.

    Author Comment

    I've solved the problem by hacking the source myself. It seems that there are some different semantics for different kernels. This is done by adding #ifdef and #ifndef compiler directives.  Unfortunately, when I change the environment variables (checked by the #if?def directives) then something else goes wrong. [Boy, I've got some weird kernel!] So by checking the line numbers, I manually changed #ifdef to #ifndef and vise versa, and voila! I had a compile and a nice working system.

    So moderators, if you see this post. Please close this topic.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now