[MacPorts] #51196: nss 3.23 does not build on Mac Os X 10.6.8, Snow Leopard, because of "unrecognized command line option "-std=c++0x""

MacPorts noreply at macports.org
Thu Apr 21 11:38:14 PDT 2016


#51196: nss 3.23 does not build on Mac Os X 10.6.8, Snow Leopard, because of
"unrecognized command line option "-std=c++0x""
-----------------------------+--------------------------------
 Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.3.4
 Keywords:                   |       Port:  nss
-----------------------------+--------------------------------
 This is the failure:

 {{{
 cd google_test; /usr/bin/make libs
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.23/nss/external_tests/google_test'
 if test ! -d Output.OBJD/gtest/src; then rm -rf Output.OBJD/gtest/src;
 ../../coreconf/nsinstall/Output.OBJD/nsinstall -D Output.OBJD/gtest/src;
 fi
 /usr/bin/llvm-g++-4.2 -arch x86_64 -o Output.OBJD/gtest/src/gtest-all.o -c
 -Os -fPIC  -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK
 -Wall -DNSS_NO_GCC48 -DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY
 -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
 -Igtest/include/ -Igtest -I/opt/local/include/nspr
 -I../../../dist/Output.OBJD/include -I../../../dist/public/gtest
 -I../../../dist/private/gtest  -std=c++0x gtest/src/gtest-all.cc
 cc1plus: error: unrecognized command line option "-std=c++0x"
 make[2]: *** [Output.OBJD/gtest/src/gtest-all.o] Error 1
 }}}

 The error is obviously contained in `../common/gtest.mk`, which is
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.23/nss/external_tests/common/gtest.mk`

 {{{
    34   else
    35       CXXFLAGS += -std=c++0x
    36   endif
 }}}

 because
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_nss/nss/work/nss-3.23/nss/external_tests/google_test\Makefile`
 has:

 {{{
    24
 #######################################################################
    25   # (4) Include "local" platform-dependent assignments (OPTIONAL).
 #
    26
 #######################################################################
    27
    28   include ../common/gtest.mk
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/51196>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list