From owner-freebsd-ports-bugs@freebsd.org Wed Jul 19 16:36:30 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DAB8DCFD053 for ; Wed, 19 Jul 2017 16:36:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C231D1D5F for ; Wed, 19 Jul 2017 16:36:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6JGaUbp006938 for ; Wed, 19 Jul 2017 16:36:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 220857] databases/mongodb: build failure in the cluster, C++ code error. Date: Wed, 19 Jul 2017 16:36:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: peter@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ale@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 16:36:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220857 Bug ID: 220857 Summary: databases/mongodb: build failure in the cluster, C++ code error. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ale@FreeBSD.org Reporter: peter@FreeBSD.org Assignee: ale@FreeBSD.org Flags: maintainer-feedback?(ale@FreeBSD.org) This happens on 11.x and 12.x: In file included from src/mongo/db/db.cpp:47: src/mongo/db/client.h:263:59: error: ordered comparison between pointer and zero ('mongo::Client *' and 'int') inline bool haveClient() { return currentClient.get() > 0; } ~~~~~~~~~~~~~~~~~~~ ^ ~ In file included from src/mongo/db/db.cpp:49: In file included from src/mongo/db/commands/server_status.h:36: In file included from src/mongo/db/stats/counters.h:37: In file included from src/mongo/db/pdfile.h:41: In file included from src/mongo/db/catalog/database.h:33: In file included from src/mongo/db/structure/catalog/namespace_details.h:34: In file included from src/mongo/db/structure/catalog/index_details.h:40: src/mongo/db/structure/catalog/namespace.h:58:65: error: ordered comparison between pointer and zero ('const char *' and 'int') bool hasDollarSign() const { return strchr( buf , '$' ) > 0; } ~~~~~~~~~~~~~~~~~~~ ^ ~ In file included from src/mongo/db/db.cpp:60: In file included from src/mongo/db/instance.h:34: In file included from src/mongo/client/dbclientinterface.h:1401: src/mongo/client/dbclientcursor.h:120:40: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to = true [-Wundefined-bool-conversion] bool isDead() const { return !this || cursorId =3D=3D 0; } ~^~~~ In file included from src/mongo/db/db.cpp:71: In file included from src/mongo/db/repl/rs.h:39: In file included from src/mongo/db/repl/rs_config.h:37: In file included from src/mongo/util/concurrency/race.h:31: src/mongo/util/concurrency/mutexdebugger.h:90:17: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare] if( this =3D=3D 0 || m =3D=3D 0 ) return; ^~~~ ~ src/mongo/util/concurrency/mutexdebugger.h:150:17: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare] if( this =3D=3D 0 || m =3D=3D 0 ) return; // still in startup p= re-main() ^~~~ ~ 3 warnings and 2 errors generated. scons: *** [build/freebsd/cc_cc/cxx_c++/ssl/use-system-pcre/use-system-snappy/use-syst= em-v8/mongo/db/db.o] Error 1 scons: building terminated because of errors. *** Error code 1 Stop. make: stopped in /usr/ports/databases/mongodb Note: the regular package builders are using old 11.x and 12.x build jails.= =20 For the cluster we use relatively recent build jails. In this case, both a= re from June 2017. --=20 You are receiving this mail because: You are the assignee for the bug.=