LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2005, 05:27 PM   #1
duvalgo
LQ Newbie
 
Registered: Aug 2005
Location: Ithica, New York
Distribution: Fedora Core 4/Mac OS X
Posts: 14

Rep: Reputation: 0
Compiling libmpeg3 on FC4 PPC


Hello,

I'm running Fedora Core 4 on a iMac G4. I i'm trying to install libmpeg3, so that I can compile transcode, which I need to install dvd::rip. There are to PPC RPM's so I tried a SRPM and get the following error (I get the same error when I try to compile directly from source):

Code:
mpeg3io.c:213: error: storage size of 'file_st' isn't known
mpeg3io.c:213: error: storage size of 'device_st' isn't known
make: *** [ppc/mpeg3io.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.96104 (%build)


RPM build errors:
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    user machbuild does not exist - using root
    group machbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.96104 (%build)
Any help with this problem would be appreciated.

Last edited by duvalgo; 08-02-2005 at 08:02 AM.
 
Old 08-01-2005, 06:28 PM   #2
cthinh
LQ Newbie
 
Registered: Jul 2005
Location: SaiGon
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
You must login with root account to install it
 
Old 08-01-2005, 06:40 PM   #3
duvalgo
LQ Newbie
 
Registered: Aug 2005
Location: Ithica, New York
Distribution: Fedora Core 4/Mac OS X
Posts: 14

Original Poster
Rep: Reputation: 0
I am the root. Also, I get the same problem when I try to compile it from source:

Code:
mpeg3io.c:213: error: storage size of 'file_st' isn't known
mpeg3io.c:213: error: storage size of 'device_st' isn't known
make: *** [ppc/mpeg3io.o] Error 1
I don't see why this fails.

Last edited by duvalgo; 08-02-2005 at 08:03 AM.
 
Old 08-01-2005, 06:40 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
try this
http://linuxfromscratch.org/pipermai...ry/004810.html
 
Old 08-01-2005, 06:57 PM   #5
duvalgo
LQ Newbie
 
Registered: Aug 2005
Location: Ithica, New York
Distribution: Fedora Core 4/Mac OS X
Posts: 14

Original Poster
Rep: Reputation: 0
THANKS!! That fixed the first error, but now I get:

Code:
video/output.c: In function ‘mpeg3video_ditherframe’:
video/output.c:722: error: invalid lvalue in increment
video/output.c:747: error: invalid lvalue in increment
video/output.c:787: error: invalid lvalue in increment
video/output.c:812: error: invalid lvalue in increment
make: *** [ppc/video/output.o] Error 1
Thanks a lot for the help!

BTW I think I am going to replace FC4 with Gentoo. I hear portage is better for a PPC arch.

Last edited by duvalgo; 08-02-2005 at 08:04 AM.
 
Old 08-01-2005, 11:15 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
the problem is gcc4 no longer likes invalid code (crazy gcc people think we should actually learn what we are doing) -- actually they took away a cast extension we got used to
the offending definition is
STORE_PIXEL_RGB565
which is at line 503 in /video/output.c
Code:
#define STORE_PIXEL_RGB565 \
	*((unsigned short*)data)++ = \
		((CLIP(r_l) & 0xf8) << 8) | \
		((CLIP(g_l) & 0xfc) << 3) | \
		((CLIP(b_l) & 0xf8) >> 3);


try replacing the above with
Code:
#define STORE_PIXEL_RGB565 \
	*(*(unsigned short**)(&data))++ = \
		((CLIP(r_l) & 0xf8) << 8) | \
		((CLIP(g_l) & 0xfc) << 3) | \
		((CLIP(b_l) & 0xf8) >> 3);
and go down to 532 where it says
Code:
	register unsigned char *data;
and take away the word register to make it like this
Code:
unsigned char *data;

Last edited by foo_bar_foo; 08-01-2005 at 11:17 PM.
 
Old 08-02-2005, 07:25 AM   #7
duvalgo
LQ Newbie
 
Registered: Aug 2005
Location: Ithica, New York
Distribution: Fedora Core 4/Mac OS X
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks very much foo_bar_foo! Now it compiles cleanly. I just have one last question. How can I make these changed to a SRPM so that I can build an RPM? For some reason the SRPM for transcode does not recognise when I install directly from the source. It says:

Code:
error: Failed build dependencies:
        libmpeg3 is needed by transcode-0.6.12-5.dag.ppc
Even though I correctly installed libmpeg3. Thanks very much for the help so far!

Last edited by duvalgo; 08-02-2005 at 08:05 AM.
 
Old 08-03-2005, 05:55 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i don't really know how to do that but this is the tutorial
http://www.rpm.org/RPM-HOWTO/build.html
and
http://bradthemad.org/tech/notes/patching_rpms.php

it's been a long time since i used the rpm thingy
i think you can just install the srpm (rpm -ivh package.src.rpm)
then go to the src/rpm/SOURCES or wherever it is and change it there
installing will put the specs file in src/rpm/SPECS ?
then to build
rpmbuild -ba SPECS/package.spec
will make an rpm in the RPMS folder

Last edited by foo_bar_foo; 08-03-2005 at 06:07 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC4 PPC on an iBook G4 (1.33 GHz) Monitor Problems cidkato Fedora - Installation 1 09-26-2005 02:31 PM
FC4 - PPC - yaboot & Kernel issues superphreak4 Fedora 1 08-10-2005 06:24 AM
Problems compiling kernel (gentoo on ppc) dauphinfay Linux - Newbie 2 08-05-2005 07:40 PM
mplayer on FC4 ppc Redbone981sl Linux - Software 1 06-22-2005 07:43 PM
transcode, libmpeg3, dvd::rip zorolowski Slackware 1 12-26-2002 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration