https://bz.apache.org/ooo/show_bug.cgi?id=126891

--- Comment #5 from Kay <[email protected]> ---
(In reply to Don Lewis from comment #3)
> What version of gcc are you using?  nullptr is a c++11 feature that is
> supposed to have first appeared in gcc 4.6.  I test compiled der_gtest.cc
> with gcc 4.8 here and got the same error unless I specified -std=c++0x. 
> Since your build is using that option, I suspect that your gcc is too old.
> 
> Since this could also affect Windows builds and nullptr is only used in the
> test code, I think the easiest thing to do would be to skip the tests during
> the build.
> 
> Find this in main/nss/makefile.mk:
> 
> BUILD_DIR=nss
> BUILD_ACTION= $(GNUMAKE) nss_build_all
> #See #i105566# && moz#513024#
> .IF "$(OS)"=="LINUX"
> BUILD_ACTION+=FREEBL_NO_DEPEND=1 FREEBL_LOWHASH=1
> PATCH_FILES+=nss_linux.patch
> .ENDIF
> 
> Change this line:
> BUILD_ACTION= $(GNUMAKE) nss_build_all
> to:
> BUILD_ACTION= $(GNUMAKE) nss_build_all NSS_DISABLE_GTESTS=1

OK, my gcc is quite old -- gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16). I'm on
CentOS 6.7. We use CentOS5 as our baseline currently, so I suspect this will
impact our distributed builds as well.

I will add this option and see what happens. I did a complete and successful
build before these changes about a week ago. later...

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to