[MacPorts] #64779: FLAC @1.3.4 fails to build on Leopard (both for ppc32 and ppc64)

MacPorts noreply at macports.org
Wed Mar 9 07:52:47 UTC 2022


#64779: FLAC @1.3.4 fails to build on Leopard (both for ppc32 and ppc64)
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, leopard, ppc64
      Port:  flac          |
---------------------------+-------------------------------------

Comment (by ryandesign):

 config.log says:
 {{{
 configure:22275: checking if /usr/bin/gcc-4.2 supports stack smash
 protection
 configure:22293: /usr/bin/gcc-4.2 -o conftest -fstack-protector-strong
 -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.c
 >&5
 cc1: error: unrecognized command line option "-fstack-protector-strong"
 configure:22293: $? = 1
 ...
 configure:22299: result: no
 }}}
 {{{
 configure:22313: checking if /usr/bin/g++-4.2 supports stack smash
 protection
 configure:22331: /usr/bin/g++-4.2 -o conftest -pipe -Os -arch ppc -Wall
 -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-
 virtual-dtor -Wreorder -Wsign-promo -Wundef  -Weffc++ -fvisibility=hidden
 -I/opt/local/include -D_FORTIFY_SOURCE=2 -DFLAC__USE_VISIBILITY_ATTR
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc conftest.cpp
 >&5
 conftest.cpp:45:1: warning: "__STDC_NO_VLA__" redefined
 conftest.cpp:44:1: warning: this is the location of the previous
 definition
 configure:22331: $? = 0
 configure:22333: result: yes
 }}}
 main.log says:
 {{{
 :info:configure checking if /usr/bin/gcc-4.2 supports stack smash
 protection... no
 :info:configure checking if /usr/bin/g++-4.2 supports stack smash
 protection... yes
 }}}
 {{{
 :info:configure     Stack protector  : ........................ yes
 }}}
 So the build has decided to use the stack protector flag with your C
 compiler even though the configure script determined that your C compiler
 doesn't support it. This is clearly an upstream bug that should be
 reported to the flac developers for them to fix.

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


More information about the macports-tickets mailing list