[MacPorts] #62906: ming @0.4.8 cannot be built on PPC Leopard because static declaration of ‘swf4debug’ follows non-static declaration

MacPorts noreply at macports.org
Mon May 17 07:38:05 UTC 2021


#62906: ming @0.4.8 cannot be built on PPC Leopard because static declaration of
‘swf4debug’ follows non-static declaration
-----------------------+--------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.4
 Keywords:  leopard    |       Port:  ming
-----------------------+--------------------
 {{{
 /bin/sh ../../libtool  --tag=CC   --mode=compile /usr/bin/gcc-4.2
 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src  -I./.. -I/opt/local/include
 -pipe -Os -arch ppc -Wall -DSWF_BIG_ENDIAN -MT lex.swf4.lo -MD -MP -MF
 .deps/lex.swf4.Tpo -c -o lex.swf4.lo lex.swf4.c
 libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I../../src -I./.. -I/opt/local/include -pipe -Os -arch ppc -Wall
 -DSWF_BIG_ENDIAN -MT lex.swf4.lo -MD -MP -MF .deps/lex.swf4.Tpo -c
 lex.swf4.c  -fno-common -DPIC -o .libs/lex.swf4.o
 ./swf4compiler.flex:12: error: static declaration of ‘swf4debug’ follows
 non-static declaration
 swf4compiler.tab.h:45: error: previous declaration of ‘swf4debug’ was here
 make[4]: *** [lex.swf4.lo] Error 1
 make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_multimedia_ming/ming/work
 /libming-ming-0_4_8/src/actioncompiler'
 }}}

 Cause is this in swf4compiler.flex:

 {{{
    10   #include "swf4compiler.tab.h" /* defines token types */
    11
    12   static int swf4debug;
 }}}

 In swf4compiler.tab.h we have:

 {{{
    44   #if YYDEBUG
    45   extern int swf4debug;
    46   #endif
 }}}

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


More information about the macports-tickets mailing list