[MacPorts] #57957: p5.26-encode @2.990.0 +universal: error: static declaration of 'S_is_utf8_overlong_given_start_byte_ok' follows non-static declaration

MacPorts noreply at macports.org
Fri Jan 25 14:58:34 UTC 2019


#57957: p5.26-encode @2.990.0 +universal: error: static declaration of
'S_is_utf8_overlong_given_start_byte_ok' follows non-static declaration
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  p5-encode
------------------------+-----------------------
 Building p5.26-encode @2.990.0 universal fails:

 {{{
 /usr/bin/clang -c -I./Encode  -I../Encode -fno-common -DPERL_DARWIN
 -mmacosx-version-min=10.13 -pipe -Os -fno-strict-aliasing -fstack-
 protector-strong -I/opt/local/include -DPERL_USE_SAFE_PUTENV -arch x86_64
 -arch i386 -O3   -DVERSION=\"2.18\" -DXS_VERSION=\"2.18\"
 "-I/opt/local/lib/perl5/5.26/darwin-thread-multi-2level/CORE"   Unicode.c
 In file included from Unicode.xs:11:
 ./../Encode/encode.h:267:16: warning: 'HIGHEST_REPRESENTABLE_UTF8' macro
 redefined [-Wmacro-redefined]
 #       define HIGHEST_REPRESENTABLE_UTF8
 \
                ^
 /opt/local/lib/perl5/5.26/darwin-thread-multi-2level/CORE/utf8.h:240:12:
 note: previous definition is here
 #   define HIGHEST_REPRESENTABLE_UTF8
 "\xFF\x80\x8F\xBF\xBF\xBF\xBF\xBF\xBF\xBF\xBF\xBF\xBF"
            ^
 1 warning generated.
 In file included from Unicode.xs:11:
 ./../Encode/encode.h:416:19: warning: implicit declaration of function
 'S_is_utf8_overlong_given_start_byte_ok' is invalid in C99 [-Wimplicit-
 function-declaration]
     is_overlong = S_is_utf8_overlong_given_start_byte_ok(s, len);
                   ^
 ./../Encode/encode.h:488:1: error: static declaration of
 'S_is_utf8_overlong_given_start_byte_ok' follows non-static declaration
 S_is_utf8_overlong_given_start_byte_ok(const U8 * const s, const STRLEN
 len)
 ^
 ./../Encode/encode.h:416:19: note: previous implicit declaration is here
     is_overlong = S_is_utf8_overlong_given_start_byte_ok(s, len);
                   ^
 1 warning and 1 error generated.
 }}}

 Building p5.26-encode @2.980.0 universal worked fine.

 Building p5.26-encode @2.990.0 non-universal works.

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


More information about the macports-tickets mailing list