Date: Sun, 18 Dec 2011 17:05:50 -1100 From: Jan Beich <jbeich@tormail.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/163444: [patch] devel/ragel: unbreak with libc++ Message-ID: <1RcV08-000Fpa-L2@internal.tormail.net> Resent-Message-ID: <201112190450.pBJ4oAwp025449@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163444 >Category: ports >Synopsis: [patch] devel/ragel: unbreak with libc++ >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 19 04:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: WITH_LIBCPLUSPLUS= CXX = clang++ CXXFLAGS += -stdlib=libc++ >Description: >How-To-Repeat: $ make [...] clang++ -DHAVE_CONFIG_H -I. -I../aapl -Wall -O2 -pipe -fno-strict-aliasing -stdlib=libc++ -MT ragel-javacodegen.o -MD -MP -MF .deps/ragel-javacodegen.Tpo -c -o ragel-javacodegen.o `test -f 'javacodegen.cpp' || echo './'`javacodegen.cpp In file included from cdsplit.cpp:24: ./cdsplit.h:38:7: warning: 'SplitCodeGen::GOTO_HEADER' hides overloaded virtual function [-Woverloaded-virtual] void GOTO_HEADER( RedStateAp *state, bool stateInPartition ); ^ ./cdipgoto.h:66:7: note: hidden overloaded virtual function 'IpGotoCodeGen::GOTO_HEADER' declared here void GOTO_HEADER( RedStateAp *state ); ^ javacodegen.cpp:1187:20: error: use of undeclared identifier 'setiosflags'; did you mean 'std::setiosflags'? out << setw(5) << setiosflags(ios::right) << item; ^~~~~~~~~~~ std::setiosflags /usr/include/c++/v1/iomanip:110:1: note: 'std::setiosflags' declared here setiosflags(ios_base::fmtflags __mask) ^ 1 error generated. gmake[2]: *** [ragel-javacodegen.o] Error 1 >Fix: --- libc++.diff begins here --- Index: devel/ragel/Makefile =================================================================== RCS file: /a/.csup/ports/devel/ragel/Makefile,v retrieving revision 1.41 diff -u -p -r1.41 Makefile --- devel/ragel/Makefile 21 Oct 2011 15:22:07 -0000 1.41 +++ devel/ragel/Makefile 19 Dec 2011 03:53:41 -0000 @@ -33,6 +33,8 @@ post-patch: ${WRKSRC}/aapl/bstcommon.h \ ${WRKSRC}/aapl/bubblesort.h \ ${WRKSRC}/aapl/mergesort.h + @${REINPLACE_CMD} 's/setiosflags/std::&/' \ + ${WRKSRC}/ragel/javacodegen.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ragel/${PORTNAME} ${PREFIX}/bin --- libc++.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RcV08-000Fpa-L2>