[MacPorts] #62644: mediainfolib @21.03: error: unknown type name 'sha1_ctx'

MacPorts noreply at macports.org
Tue Apr 6 14:14:27 UTC 2021


#62644: mediainfolib @21.03: error: unknown type name 'sha1_ctx'
-------------------------+--------------------------
 Reporter:  cooljeanius  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  mediainfolib
-------------------------+--------------------------
 I am on Big Sur using Xcode 12.4, and upgrading mediainfolib currently
 fails for me with some undeclared identifiers errors:
 {{{
 ../../../Source/MediaInfo/HashWrapper.cpp:82:25: error: unknown type name
 'sha1_ctx'
             m[SHA1]=new sha1_ctx;
                         ^
 ../../../Source/MediaInfo/HashWrapper.cpp:83:25: error: use of undeclared
 identifier 'sha1_ctx'
             sha1_begin((sha1_ctx*)m[SHA1]);
                         ^
 ../../../Source/MediaInfo/HashWrapper.cpp:83:34: error: expected
 expression
             sha1_begin((sha1_ctx*)m[SHA1]);
                                  ^
 ../../../Source/MediaInfo/HashWrapper.cpp:90:27: error: unknown type name
 'sha224_ctx'
             m[SHA224]=new sha224_ctx;
                           ^
 ../../../Source/MediaInfo/HashWrapper.cpp:91:27: error: use of undeclared
 identifier 'sha224_ctx'
             sha224_begin((sha224_ctx*)m[SHA224]);
                           ^
 ../../../Source/MediaInfo/HashWrapper.cpp:91:38: error: expected
 expression
             sha224_begin((sha224_ctx*)m[SHA224]);
                                      ^
 ../../../Source/MediaInfo/HashWrapper.cpp:95:27: error: unknown type name
 'sha256_ctx'
             m[SHA256]=new sha256_ctx;
         delete (sha224_ctx*)m[SHA224];
                 ^
 ../../../Source/MediaInfo/HashWrapper.cpp:122:28: error: expected
 expression
         delete (sha224_ctx*)m[SHA224];
                            ^
 fatal error: too many errors emitted, stopping now [-ferror-limit=]
 20 errors generated.
 make[1]: *** [../../../Source/MediaInfo/HashWrapper.lo] Error 1
 make[1]: *** Waiting for unfinished jobs....
 ../../../Source/MediaInfo/File__Analyze_Streams.cpp:174:20: warning:
 'extern' variable has an initializer [-Wextern-initializer]
 extern const char*
 DolbyVision_Compatibility[DolbyVision_Compatibility_Size] =
                    ^
 ../../../Source/MediaInfo/File__Analyze_Streams.cpp:1433:23: warning:
 result of comparison of constant 8 with expression of type
 'MediaInfoLib::stream_t' is always true [-Wtautological-constant-out-of-
 range-compare]
         if (StreamKind<sizeof(Fill_Temp)/sizeof(vector<fill_temp_item>))
             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2 warnings generated.
 }}}
 Attaching full log next.

-- 
Ticket URL: <https://trac.macports.org/ticket/62644>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list