From owner-freebsd-current@FreeBSD.ORG Thu Dec 20 05:56:46 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC91316A419 for ; Thu, 20 Dec 2007 05:56:46 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta1.srv.hcvlny.cv.net (mta1.srv.hcvlny.cv.net [167.206.4.196]) by mx1.freebsd.org (Postfix) with ESMTP id 8D76413C44B for ; Thu, 20 Dec 2007 05:56:46 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0JTC00CU81SL06L0@mta1.srv.hcvlny.cv.net> for current@freebsd.org; Thu, 20 Dec 2007 00:26:45 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [IPv6:::1]) by flosoft.no-ip.biz (8.14.2/8.14.2) with ESMTP id lBK5QiWa078789; Thu, 20 Dec 2007 00:26:45 -0500 Date: Thu, 20 Dec 2007 00:26:44 -0500 From: "Aryeh M. Friedman" In-reply-to: <200712191949.43414.mi+mill@aldan.algebra.com> To: Mikhail Teterin Message-id: <4769FD14.4080301@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.5 References: <200712191949.43414.mi+mill@aldan.algebra.com> User-Agent: Thunderbird 2.0.0.9 (X11/20071217) Cc: current@freebsd.org Subject: Re: WARNS=3 and C++ on 8.x X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 05:56:46 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mikhail Teterin wrote: > Hello! > > The graphics/libfpx port can not currently be built on 8.x, because the > WARNS=3, which is set in files/Makefile.bsd triggers -Wsystem-headers. > > That setting triggers the following warning: > > In file included from /usr/include/c++/4.2/ios:50, > from /usr/include/c++/4.2/ostream:45, > from /usr/include/c++/4.2/iostream:45, > from /work/a/ports/graphics/libfpx/work/libfpx-1.2.0.12/ole/olestorg.cpp:20: > /usr/include/c++/4.2/bits/basic_ios.h: In member function 'void std::basic_ios<_CharT, _Traits>::_M_setstate(std::_Ios_Iostate)': > /usr/include/c++/4.2/bits/basic_ios.h:156: warning: empty body in an if-statement > > The port builds fine on 7.x and 6.x. Could the 8.x, please, be fixed? > I mean, the setting, pretty much, assures, that ALL C++ software can't > be built (with WARNS=3, that is), because almost everything uses iostream. Did you try commenting out the last line of the Makefile? - -- Aryeh M. Friedman FloSoft Systems http://www.flosoft-systems.com Developer, not business, friendly -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHaf0UzIOMjAek4JIRAis0AJ0fFmv5aKkyoQKO57LkKT9fSH+ZeQCggIfb U8yBKq7xSnOA+WXUxbFriB4= =510y -----END PGP SIGNATURE-----