Bug 62866 - compiling faac-1.24 crashed while emerging faac
|
Bug#:
62866
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: sound@gentoo.org
|
Reported By: peter@devrijer.net
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: compiling faac-1.24 crashed while emerging faac
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-09-04 16:23 0000
|
When emerging faac-1.24 emerge complains about a missing
patch:
Could not apply portage.patch!
* Please verify that it is not needed.
* Cannot apply any patch, running libtoolize..
Then when compiling its stops with an error.
Reproducible: Always
Steps to Reproduce:
1. emerge faac
2.
3.
Actual Results:
Stop compiling with an error
Expected Results:
Emerged safely
This whas the error:
In file included from main.c:33:
/usr/include/mp4.h:43: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:44: error: syntax error before "MP4SampleId"
/usr/include/mp4.h:45: error: syntax error before "MP4Timestamp"
/usr/include/mp4.h:46: error: syntax error before "MP4Duration"
/usr/include/mp4.h:47: error: syntax error before "MP4EditId"
/usr/include/mp4.h:219: error: syntax error before "u_int32_t"
/usr/include/mp4.h:225: error: syntax error before "u_int32_t"
/usr/include/mp4.h:230: error: syntax error before "u_int32_t"
/usr/include/mp4.h:238: error: syntax error before "u_int32_t"
/usr/include/mp4.h:247: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:251: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:257: error: syntax error before "MP4GetVerbosity"
/usr/include/mp4.h:259: error: syntax error before "u_int32_t"
/usr/include/mp4.h:261: error: syntax error before "MP4GetDuration"
/usr/include/mp4.h:263: error: syntax error before "MP4GetTimeScale"
/usr/include/mp4.h:265: error: syntax error before "u_int32_t"
/usr/include/mp4.h:267: error: syntax error before "MP4GetODProfileLevel"
/usr/include/mp4.h:269: error: syntax error before "u_int8_t"
/usr/include/mp4.h:271: error: syntax error before "MP4GetSceneProfileLevel"
/usr/include/mp4.h:273: error: syntax error before "u_int8_t"
/usr/include/mp4.h:275: error: syntax error before "MP4GetVideoProfileLevel"
/usr/include/mp4.h:277: error: syntax error before "u_int8_t"
/usr/include/mp4.h:279: error: syntax error before "MP4GetAudioProfileLevel"
/usr/include/mp4.h:281: error: syntax error before "u_int8_t"
/usr/include/mp4.h:283: error: syntax error before "MP4GetGraphicsProfileLevel"
/usr/include/mp4.h:285: error: syntax error before "u_int8_t"
/usr/include/mp4.h:289: error: syntax error before "MP4GetIntegerProperty"
/usr/include/mp4.h:304: error: syntax error before "u_int8_t"
/usr/include/mp4.h:310: error: syntax error before "int64_t"
/usr/include/mp4.h:322: error: syntax error before '*' token
/usr/include/mp4.h:326: error: syntax error before "MP4AddTrack"
/usr/include/mp4.h:330: error: syntax error before "MP4AddSystemsTrack"
/usr/include/mp4.h:334: error: syntax error before "MP4AddODTrack"
/usr/include/mp4.h:337: error: syntax error before "MP4AddSceneTrack"
/usr/include/mp4.h:340: error: syntax error before "MP4AddAudioTrack"
/usr/include/mp4.h:342: error: syntax error before "u_int32_t"
/usr/include/mp4.h:346: error: syntax error before "MP4AddEncAudioTrack"
/usr/include/mp4.h:348: error: syntax error before "u_int32_t"
/usr/include/mp4.h:352: error: syntax error before "MP4AddVideoTrack"
/usr/include/mp4.h:354: error: syntax error before "u_int32_t"
/usr/include/mp4.h:360: error: syntax error before "MP4AddEncVideoTrack"
/usr/include/mp4.h:362: error: syntax error before "u_int32_t"
/usr/include/mp4.h:368: error: syntax error before "MP4AddHintTrack"
/usr/include/mp4.h:370: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:372: error: syntax error before "MP4CloneTrack"
/usr/include/mp4.h:374: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:377: error: syntax error before "MP4EncAndCloneTrack"
/usr/include/mp4.h:379: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:382: error: syntax error before "MP4CopyTrack"
/usr/include/mp4.h:384: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:388: error: syntax error before "MP4EncAndCopyTrack"
/usr/include/mp4.h:390: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:396: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:398: error: syntax error before "MP4GetNumberOfTracks"
/usr/include/mp4.h:401: error: syntax error before "u_int8_t"
/usr/include/mp4.h:403: error: syntax error before "MP4FindTrackId"
/usr/include/mp4.h:405: error: syntax error before "u_int16_t"
/usr/include/mp4.h:409: error: syntax error before "MP4FindTrackIndex"
/usr/include/mp4.h:411: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:419: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:421: error: syntax error before "MP4GetTrackDuration"
/usr/include/mp4.h:423: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:425: error: syntax error before "MP4GetTrackTimeScale"
/usr/include/mp4.h:427: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:431: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:435: error: syntax error before "MP4GetTrackAudioType"
/usr/include/mp4.h:437: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:439: error: syntax error before "MP4GetTrackAudioMpeg4Type"
/usr/include/mp4.h:441: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:444: error: syntax error before "MP4GetTrackVideoType"
/usr/include/mp4.h:446: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:448: error: syntax error before "MP4GetTrackEsdsObjectTypeId"
/usr/include/mp4.h:450: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:453: error: syntax error before "MP4GetTrackFixedSampleDuration"
/usr/include/mp4.h:455: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:457: error: syntax error before "MP4GetTrackBitRate"
/usr/include/mp4.h:459: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:463: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:469: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:473: error: syntax error before "MP4GetTrackNumberOfSamples"
/usr/include/mp4.h:475: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:477: error: syntax error before "MP4GetTrackVideoWidth"
/usr/include/mp4.h:479: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:481: error: syntax error before "MP4GetTrackVideoHeight"
/usr/include/mp4.h:483: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:487: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:491: error: syntax error before "MP4GetTrackIntegerProperty"
/usr/include/mp4.h:493: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:498: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:503: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:508: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:515: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:521: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:527: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:533: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:543: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:558: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:571: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:580: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:589: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:595: error: syntax error before "MP4GetSampleSize"
/usr/include/mp4.h:597: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:600: error: syntax error before "MP4GetTrackMaxSampleSize"
/usr/include/mp4.h:602: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:604: error: syntax error before "MP4GetSampleIdFromTime"
/usr/include/mp4.h:606: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:610: error: syntax error before "MP4GetSampleTime"
/usr/include/mp4.h:612: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:615: error: syntax error before "MP4GetSampleDuration"
/usr/include/mp4.h:617: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:620: error: syntax error before "MP4GetSampleRenderingOffset"
/usr/include/mp4.h:622: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:627: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:631: error: syntax error before "MP4GetSampleSync"
/usr/include/mp4.h:633: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:640: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:650: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:671: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:675: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:680: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:683: error: syntax error before "MP4GetHintTrackReferenceTrackId"
/usr/include/mp4.h:685: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:689: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:693: error: syntax error before "MP4GetRtpHintNumberOfPackets"
/usr/include/mp4.h:695: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:697: error: syntax error before "MP4GetRtpPacketBFrame"
/usr/include/mp4.h:699: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:702: error: syntax error before "MP4GetRtpPacketTransmitOffset"
/usr/include/mp4.h:704: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:709: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:717: error: syntax error before "MP4GetRtpTimestampStart"
/usr/include/mp4.h:719: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:723: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:728: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:732: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:738: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:744: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:750: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:757: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:761: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:768: error: syntax error before "u_int32_t"
/usr/include/mp4.h:772: error: syntax error before "videoProfile"
/usr/include/mp4.h:788: error: syntax error before "MP4AddTrackEdit"
/usr/include/mp4.h:790: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:798: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:801: error: syntax error before "MP4GetTrackNumberOfEdits"
/usr/include/mp4.h:803: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:805: error: syntax error before "MP4GetTrackEditStart"
/usr/include/mp4.h:807: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:810: error: syntax error before "MP4GetTrackEditTotalDuration"
/usr/include/mp4.h:812: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:815: error: syntax error before "MP4GetTrackEditMediaStart"
/usr/include/mp4.h:817: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:822: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:826: error: syntax error before "MP4GetTrackEditDuration"
/usr/include/mp4.h:828: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:833: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:837: error: syntax error before "MP4GetTrackEditDwell"
/usr/include/mp4.h:839: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:844: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:851: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:862: error: syntax error before "MP4GetSampleIdFromEditTime"
/usr/include/mp4.h:864: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:882: error: syntax error before "MP4ConvertFromMovieDuration"
/usr/include/mp4.h:884: error: syntax error before "MP4Duration"
/usr/include/mp4.h:887: error: syntax error before "MP4ConvertFromTrackTimestamp"
/usr/include/mp4.h:889: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:893: error: syntax error before "MP4ConvertToTrackTimestamp"
/usr/include/mp4.h:895: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:899: error: syntax error before "MP4ConvertFromTrackDuration"
/usr/include/mp4.h:901: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:905: error: syntax error before "MP4ConvertToTrackDuration"
/usr/include/mp4.h:907: error: syntax error before "MP4TrackId"
/usr/include/mp4.h:912: error: syntax error before '*' token
/usr/include/mp4.h:916: error: syntax error before '*' token
/usr/include/mp4.h:921: error: syntax error before "u_int32_t"
/usr/include/mp4.h:939: error: syntax error before "u_int16_t"
/usr/include/mp4.h:941: error: syntax error before "u_int16_t"
/usr/include/mp4.h:943: error: syntax error before "u_int16_t"
/usr/include/mp4.h:945: error: syntax error before "u_int16_t"
/usr/include/mp4.h:948: error: syntax error before "u_int16_t"
/usr/include/mp4.h:949: error: syntax error before "u_int16_t"
/usr/include/mp4.h:950: error: syntax error before "u_int8_t"
/usr/include/mp4.h:951: error: syntax error before "u_int8_t"
/usr/include/mp4.h:953: error: syntax error before "u_int8_t"
/usr/include/mp4.h:955: error: syntax error before "u_int8_t"
/usr/include/mp4.h:957: error: syntax error before "u_int8_t"
/usr/include/mp4.h:959: error: syntax error before "u_int8_t"
/usr/include/mp4.h:962: error: syntax error before '*' token
/usr/include/mp4.h:962: error: `u_int32_t' declared as function returning a function
/usr/include/mp4.h:964: error: `MP4ReadCallback' declared as function returning
a function
/usr/include/mp4.h:965: error: `MP4WriteCallback' declared as function returning
a function
/usr/include/mp4.h:966: error: syntax error before '*' token
/usr/include/mp4.h:966: error: `int32_t' declared as function returning a function
/usr/include/mp4.h:967: error: syntax error before '*' token
/usr/include/mp4.h:967: error: `int64_t' declared as function returning a function
/usr/include/mp4.h:968: error: `MP4FilesizeCallback' declared as function
returning a function
/usr/include/mp4.h:973: error: syntax error before "MP4OpenCallback"
/usr/include/mp4.h:983: error: syntax error before "MP4OpenCallback"
/usr/include/mp4.h:993: error: syntax error before "MP4OpenCallback"
In file included from /usr/include/stdlib.h:416,
from main.c:52:
/usr/include/sys/types.h:193: error: conflicting types for `int32_t'
/usr/include/mp4.h:966: error: previous declaration of `int32_t'
/usr/include/sys/types.h:194: error: conflicting types for `int64_t'
/usr/include/mp4.h:967: error: previous declaration of `int64_t'
/usr/include/sys/types.h:199: error: conflicting types for `u_int32_t'
/usr/include/mp4.h:962: error: previous declaration of `u_int32_t'
main.c: In function `main':
main.c:426: error: syntax error before "MP4track"
main.c:876: error: `MP4track' undeclared (first use in this function)
main.c:876: error: (Each undeclared identifier is reported only once
main.c:876: error: for each function it appears in.)
main.c:1087: error: syntax error before "dur"
main.c:1093: error: `dur' undeclared (first use in this function)
main.c:1093: error: `ofs' undeclared (first use in this function)
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/tmp/portage/faac-1.24/work/faac/frontend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tmp/portage/faac-1.24/work/faac'
make: *** [all] Error 2
!!! ERROR: media-libs/faac-1.24 failed.
!!! Function src_compile, Line 415, Exitcode 2
!!! emake failed
this is very easy to fix:
1) open your /usr/include/mpeg4ip.h
2) add "#include <systems.h>" just below "#include <stdio.h>":
#ifndef __MPEG4IP_INCLUDED__
#define __MPEG4IP_INCLUDED__
/* project wide applicable stuff here */
#include <stdio.h>
#include <systems.h> <---- HERE
3) emerge faac
;-)
Tnx to Paolio,
Worked fine, so its the
simple errors that make life difficult ;-)
Peter.
This package belongs to the sound herd.
Perhaps you could depend on faad2-2.0-r3?
what's up with this bug, i had the same bug today: missing "sys/types.h",
shouldn"t the proposed fix be implemented?
The fix Paolo suggested doesn't work for me. In fact, in the header file Paolo
suggested to add that include, there is no stdio.h include, so I think it could
be a different version. I'm using faad2-2.0_rc3-r1
Ok, with faad2-2.0-r3 the bug disappeared.
But now I think faac-1.24 should have as faad2-2.0-r3 as dependency
updated DEPEND in faac-1.24, thanks for the effort. fixed