[MacPorts] #67235: giflib5 broken on <= 10.6: cc1: error: unrecognized command line option "-Wno-format-truncation"

MacPorts noreply at macports.org
Sat Apr 15 15:43:43 UTC 2023


#67235: giflib5 broken on <= 10.6: cc1: error: unrecognized command line option
"-Wno-format-truncation"
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  Schamschula
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard, leopard, powerpc,
      Port:  giflib5     |  rosetta
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 Marius Schamschula <mschamschula@…>]:
 > In [changeset:"77b5f9c96d068ee90723fce8da68f52da8400183/macports-ports"
 77b5f9c96d068ee90723fce8da68f52da8400183/macports-ports] (master):
 > {{{
 > #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="77b5f9c96d068ee90723fce8da68f52da8400183"
 > giflib5: attempt to fix build on Snow Leopard and below
 >
 > See: https://trac.macports.org/ticket/67235
 > }}}

 Turned out, it does not respect Macports archflags too:

 {{{
 ld: warning: in libgif.a, file was built for unsupported file format which
 is not the architecture being linked (ppc)
 ld: warning: in libutil.a, file was built for unsupported file format
 which is not the architecture being linked (ppc)
 Undefined symbols:
   "_GifMakeMapObject", referenced from:
       _main in cc4aBUg8.o
   "_DGifGetLine", referenced from:
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
   "_EGifPutImageDesc", referenced from:
       _main in cc4aBUg8.o
   "_DGifOpenFileHandle", referenced from:
       _main in cc4aBUg8.o
   "_GifQprintf", referenced from:
       _LoadRGB in cc4aBUg8.o
       _LoadRGB in cc4aBUg8.o
       _LoadRGB in cc4aBUg8.o
       _LoadRGB in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
   "_GAPrintHowTo", referenced from:
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
   "_EGifPutScreenDesc", referenced from:
       _main in cc4aBUg8.o
   "_EGifOpenFileHandle", referenced from:
       _main in cc4aBUg8.o
   "_DGifCloseFile", referenced from:
       _main in cc4aBUg8.o
   "_DGifGetRecordType", referenced from:
       _main in cc4aBUg8.o
   "_GAPrintErrMsg", referenced from:
       _main in cc4aBUg8.o
   "_DGifOpenFileName", referenced from:
       _main in cc4aBUg8.o
   "_DGifGetExtension", referenced from:
       _main in cc4aBUg8.o
   "_EGifCloseFile", referenced from:
       _main in cc4aBUg8.o
   "_PrintGifError", referenced from:
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
       _main in cc4aBUg8.o
   "_GifQuantizeBuffer", referenced from:
       _main in cc4aBUg8.o
   "_EGifPutLine", referenced from:
       _main in cc4aBUg8.o
   "_GAGetArgs", referenced from:
       _main in cc4aBUg8.o
   "_DGifGetImageDesc", referenced from:
       _main in cc4aBUg8.o
   "_DGifGetExtensionNext", referenced from:
       _main in cc4aBUg8.o
   "_GifNoisyPrint", referenced from:
       _GifNoisyPrint$non_lazy_ptr in cc4aBUg8.o
      (maybe you meant: _GifNoisyPrint$non_lazy_ptr)
 ld: symbol(s) not found
 }}}

 So Rosetta fails.

-- 
Ticket URL: <https://trac.macports.org/ticket/67235#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list