MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please, does anybody know how to install cabletv 1.3.9 ? When I try to "make" it raises me some errors:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -g -Wall -ansi -D_GNU_SOURCE -O2 -c main.c
In file included from main.c:69:
channel.h:40: error: array type has incomplete element type
channel.h:56: error: array type has incomplete element type
main.c: In function 'set_float':
main.c:566: warning: dereferencing type-punned pointer will break strict-aliasing rules
main.c: In function 'grabber_init':
main.c:1156: warning: dereferencing type-punned pointer will break strict-aliasing rules
make: *** [main.o] Error 1
I have gcc (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
Program is here: http://sector17.tvand.net/cabletv/
Yes, it compiles well but it doesn't want to "make".. I saw somewhere that it is a problem with gcc compiler on how to "see" arrays: *array instead of array[]. But if I change these arrays other errors come after.
Looks like this probably has something to do with the switch to GCC 4: http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html
Ask, or file a bug report, with the program's developer. If you're up with your C or C++ you might even be able to fix it.
What does this program do? Someone here might be able to suggest an alternative that's been packaged for Mandriva.
Try installing one of the gcc compatability packages. Goto http://easyurpmi.zarb.org and setup all the software sources for your Mandriva version. Now you should be able to install either gcc3.3 (and gcc3.3-c++) or gcc2.96 (and gcc2.96-c++).
After googling some time I saw that errors I have are because some changes in arrays structures in gcc 4.0. I will try with a different compiler (not gcc) and post the result. Thank you for your advices.
Are you sure you have used the gcc2.96 or 3.3 compilers? You would have to find a way of telling make to use /usr/bin/gcc2.96 or /usr/bin/gcc3.3 instead of just /usr/bin/gcc since /usr/bin/gcc will still just be the standard gcc version 4.0.
In the official gcc documentation says that if you have more than one version installed you can use specific one by launching it with gcc-version (gcc-2.96 or gcc-3.3.6). The "make" command looks like
"gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -g -Wall -ansi -D_GNU_SOURCE -O2 -c main.c"
This command appeals the "default" version of gcc installed in the system (4.0) or by doing
"gcc-2.96 -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -g -Wall -ansi -D_GNU_SOURCE -O2 -c main.c" or
"gcc-3.3.6 -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -g -Wall -ansi -D_GNU_SOURCE -O2 -c main.c"
I think I call the respective version of gcc. I THINK !!!
Yes it makes difference. No errors with gcc-3.3.6 or gcc-2.96 but I have to make the same thing with every *.c file in sources and I don't know what to do after .I have no experience with c or c++.
Yes there is a make file but this is a long list of "gcc something". If I run make file it will "gcc" with the current version. I will try to run every gcc from the make file with gcc-version and then I will try to make install.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.