From owner-freebsd-perl@FreeBSD.ORG Wed Dec 3 13:08:49 2014 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02DF071F for ; Wed, 3 Dec 2014 13:08:49 +0000 (UTC) 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 DE86B2E1 for ; Wed, 3 Dec 2014 13:08:48 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sB3D8mqU065542 for ; Wed, 3 Dec 2014 13:08:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 195605] databases/p5-DBD-mysql compile error with clang Date: Wed, 03 Dec 2014 13:08:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: erik@cederstrand.dk X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 13:08:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195605 --- Comment #3 from Erik Cederstrand --- Ah, I figured it out. MySQL on this server has been compiled with GCC. I get this in the install log: /usr/ports/databases/p5-DBD-mysql% sudo make [...] I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/include/mysql -pipe -fno-strict-aliasing -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing embedded (mysql_config) = ldflags (mysql_config) = -pthread libs (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient -lm [...] cc: error: unknown argument: '-fabi-version=2' *** [dbdimp.o] Error code 1 [...] Sure enough, mysql_config emits cflags containing "fabi-version". So p5-DBD-mysql is getting cflags from a MySQL that was compiled with GCC and passing that to clang. Not sure this is even worthy of a fix. It's rather pilot error on my part. -- You are receiving this mail because: You are the assignee for the bug.