From owner-freebsd-ports-bugs@freebsd.org Thu Mar 3 11:43:05 2016 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 22E6FA93090 for ; Thu, 3 Mar 2016 11:43:05 +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 134389E2 for ; Thu, 3 Mar 2016 11:43:05 +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 u23Bh49E083401 for ; Thu, 3 Mar 2016 11:43:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 207675] databases/mariadb101-server - unbreak OQGRAPH option Date: Thu, 03 Mar 2016 11:43:04 +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: needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: brnrd@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter blocked flagtypes.name attachments.created 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.21 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 11:43:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207675 Bug ID: 207675 Summary: databases/mariadb101-server - unbreak OQGRAPH option Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-qa, patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: brnrd@freebsd.org Reporter: truckman@FreeBSD.org Blocks: 199601 Flags: maintainer-feedback?(brnrd@freebsd.org) Assignee: brnrd@freebsd.org Created attachment 167680 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D167680&action= =3Dedit patch to fix OQGRAPH build failures mariadb101-server does not build if the OQGRAPH option is enabled for a cou= ple of reasons. One is the https://mariadb.atlassian.net/browse/MDEV-8051 when building with clang. Switching to gcc to build is undesirable because link= ing an application built with g++ (which links to libstdc++) with any other C++ code compiled with clang (which links to libc++) causes the application to immediately crash on startup. The issue appears to be problems in the namespace usage of the code that interfaces mariadb with the boost graph library. The attached patches to storage/oqgraph/oqgraph_shim.h and storage/oqgraph/graphcore.cc to fix this problem. The oqgraph_shim.h also conditionally used some boost typedefs that were introduced in boost 1.46.1, but removed in boost 1.49. This also broke the build with clang. This pat= ch disables the use of these typedefs when using boost 1.49 or newer. The other build problem is caused by trying to link to the static libJudy.a library instead of the dynamic libJudy.so library. This appears to have ca= used a linker failure when mariadb was building a shared library because the obj= ect files in libJudy.a were not compiled with the -fPIC option. The cause of t= his problem is in the FreeBSD port changes to cmake/ssl.cmake. The upstream default is to statically link the SSL libraries. This was done by reversing the library suffix list in ssl.cmake before doing the the library search, a= nd then reversing the suffix list again to restore the original order. The FreeBSD port patched this file to disable the first reversal so that the dynamic libraries would be found first, but neglected to disable the second reversal, which then left the suffix list in the wrong order, causing libJu= dy.a to be found first. Disabling the second reversal fixes this problem. The final change in the attached patch removes the gcc stuff from the port Makefile and gets rid of a portlint "fatal" error. With these changes, the OQGRAPH now also builds correctly with boost 1.55 a= nd boost 1.60. My build testing did find a build problem with the default GSSAPI_BASE opti= on on FreeBSD 9.3, which I did not try to fix. I was able to successfully bui= ld with GSSAPI_HEIMDAL on FreeBSD 9.3. I am using the base openssl. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199601 [Bug 199601] devel/boost-all: Upgrade to 1.58, 1.59, or 1.60 --=20 You are receiving this mail because: You are the assignee for the bug.=