LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-07-2006, 11:19 AM   #1
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Rep: Reputation: 0
Question How to install cabletv


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)

Thank You !!!
 
Old 01-08-2006, 11:30 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
i'v never heard of this program..what does it do?

does it compile at all?

does it work at all?
 
Old 01-09-2006, 12:03 AM   #3
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 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.
 
Old 01-09-2006, 12:06 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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.

Update:

Quote:
Program is here: http://sector17.tvand.net/cabletv/
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++).

Last edited by tkedwards; 01-09-2006 at 12:10 AM.
 
Old 01-09-2006, 03:48 PM   #5
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 0
I tried to compile with gcc-3.3.6 and with gcc-2.96 and there is the same problem.
 
Old 01-09-2006, 04:30 PM   #6
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
you said earlier that after you fixed the gcc 'array' errors, more errors occurred..

what errors?

you need to keep at this until you make all the error messages go away (if possible).

don't give up
 
Old 01-10-2006, 12:24 AM   #7
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 01-10-2006, 04:17 AM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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.
 
Old 01-10-2006, 12:57 PM   #9
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 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 !!!

Thank you !!!
 
Old 01-10-2006, 03:38 PM   #10
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Thank you !!!
No probs, did it make any difference?
 
Old 01-11-2006, 04:39 AM   #11
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 0
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++.
 
Old 01-11-2006, 03:53 PM   #12
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
http://www.faqs.org/docs/Linux-HOWTO/GCC-HOWTO.html

But there should be a makefile or something that does all this stuff for you when you run make.
 
Old 01-12-2006, 07:04 AM   #13
peterrom67
LQ Newbie
 
Registered: Jul 2005
Location: Romania
Distribution: Mandriva 2006.0
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 01-12-2006, 03:33 PM   #14
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Maybe open the makefile in a text editor and do a find-and-replace with gcc to gcc2.96 or whatever
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
make install does not install daemons (clamd snortd). Is this a feature of tarball? Emmanuel_uk Linux - Newbie 3 11-15-2005 01:29 AM
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 06:40 PM
cabletv jimdaworm Linux - Software 4 05-10-2005 08:51 AM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration