That worked, so here's all the things  did to get the spec file to work:

1) untarred the archive, ran ./configure to get the spec file
2) copied the spec file to /usr/src/redhat/SPECS
3) renamed the source folder from avifile-0.53.5 to avifile-0.53 and made a new 
tar.gz named avifile-0.53.tar.gz and put it in /usr/src/redhat/SOURCES. I did 
this renaming bacuase the configure script sets the version in the spec file as 
0.53 instead of 0.53.5. I suppose changing the spec file to have version 0.53.5 
would work too, no big deal.
4) rpm -bb --clean --rmsource avifile.spec, got the "Mpegtoraw::generate(void)"
error
5) deleted three instances of 'inline' from filter.cpp and filter_2.cpp in 
lib/audiodecoder/mpeg. The first instance was a 3 line #ifdef clause, I removed 
the whole tings in both files (one #ifdef clause, and it appeared in two 
function signatures).
6) rpm -bb --clean --rmsource avifile.spec, got the __strcpy_smal error
7) deleted --enable-release from the %build script in avifile.spec
8) rpm -bb --clean --rmsource avifile.spec, success. Two rpms were created, 
avifile and avifile-qt. Both installed ifne and I can start aviplay, I don't 
have any avi files handy to test with, but so far so far.

Hope that helps. :)

Justin Georgeson wrote:

> I just found it in the FAQ (first item), it says to run configure 
> without --enable-release, which is added to CFLAGS by the build script 
> of the spec file. It also says to get rid of any -O options, and I can't 
> see where that is being set, but the command line seems to have it. I'm 
> recompiling it without --enable-release right now.
> 
> Marcel Janssen wrote:
> 
>>> I still have a link error, but it's
>>> for __strcopy_small now.
>> 
>> 
>> 
>> I removed the inlines from filter.cpp and filter_2.cpp.
>> Then packed the source again and tried to build an rpm.
>> I got the __strcopy_small error when trying to build an rpm from this 
>> source.
>> When I unpack the source to /usr/local, the error doesn't show and 
>> compiles well.
>> -- 
>> Marcel Janssen


-- 
; Justin Georgeson
; http://www.lopht.net
; mailto:[EMAIL PROTECTED]
; "Free the mallocs, delete the news"


_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to