Menu

#978 Can't compile libmediainfo with GCC 6

Usability
closed-fixed
None
5
2016-02-08
2016-02-05
Vascom
No

In Fedora 24 all packages must be compiled with GCC 6.
I have en error while compile libmediainfo 0.7.82:

O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -o CMakeFiles/mediainfo.dir/builddir/build/BUILD/MediaInfoLib/Source/MediaInfo/Video/File_Mpegv.cpp.o -c /builddir/build/BUILD/MediaInfoLib/Source/MediaInfo/Video/File_Mpegv.cpp
/builddir/build/BUILD/MediaInfoLib/Source/MediaInfo/Video/File_Mpeg4v.cpp: In member function 'virtual void MediaInfoLib::File_Mpeg4v::Streams_Finish()':
/builddir/build/BUILD/MediaInfoLib/Source/MediaInfo/Video/File_Mpeg4v.cpp:580:119: error: too few arguments to function
Duration+=(float32_int32s)(((float)1000)/(((float)vop_time_increment_resolution)/fixed_vop_time_increment));
^

Full log https://kojipkgs.fedoraproject.org//work/tasks/5663/12885663/build.log
Used components https://kojipkgs.fedoraproject.org//work/tasks/5663/12885663/root.log

Discussion

  • Vascom

    Vascom - 2016-02-08

    Please change
    (float32_int32s)
    to
    float32_int32s
    and it will compile with GCC 6.

     
  • Jerome Martinez

    Jerome Martinez - 2016-02-08
    • status: open --> closed-fixed
    • assigned_to: Jerome Martinez
    • Group: Crash --> Usability
     
  • Jerome Martinez

    Jerome Martinez - 2016-02-08

    Fixed, thanks.

    Can you check and confirm that there is no otehr issue like this ugly one (I have no iead about the reason these parenthesis were there...)

     
  • Vascom

    Vascom - 2016-02-08

    It was the only place with an error.
    I will let you know if there will be any error in Fedora builds.

     

Log in to post a comment.

MongoDB Logo MongoDB