From owner-freebsd-ports@FreeBSD.ORG Fri Jul 3 20:45:35 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A2DC1065673 for ; Fri, 3 Jul 2009 20:45:35 +0000 (UTC) (envelope-from prvs=428fb22a8=pschmehl_lists@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id 28C5A8FC16 for ; Fri, 3 Jul 2009 20:45:35 +0000 (UTC) (envelope-from prvs=428fb22a8=pschmehl_lists@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.42,344,1243832400"; d="scan'208";a="14443198" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 03 Jul 2009 15:45:34 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 5B5E54EF43 for ; Fri, 3 Jul 2009 15:45:33 -0500 (CDT) Date: Fri, 03 Jul 2009 20:45:33 +0000 From: Paul Schmehl To: freebsd-ports@freebsd.org Message-ID: <4D9EE49C9C59F1F339DBDDEE@utd65257.utdallas.edu> In-Reply-To: <20090703195752.GA37686@tandon.net> References: <23B9298D1A02526B4646B131@utd65257.utdallas.edu> <20090703195752.GA37686@tandon.net> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Question about a failure report X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 20:45:35 -0000 --On Friday, July 03, 2009 14:57:52 -0500 Sahil Tandon wrote: > > On Fri, 03 Jul 2009, Paul Schmehl wrote: > >> I just got a failure report for one of my ports: security/barnyard-squil. > > s/squil/sguil/ :-) > >> That port is a slave port to security/barnyard. >> >> The error is: >> ********************************************** >> ERROR: unable to find mysql headers (mysql.h) >> checked in the following places >> /mysql.h >> ********************************************** > > The configure script needs some direction. > >> This is what I have in the Makefile of security/barnyard: >> >> .if defined(WITH_MYSQL) >> USE_MYSQL= yes >> CONFIGURE_ARGS+= --enable-mysql >> .endif >> >> How do I fix this since I'm using the builtin macro? > > In security/barnyard/Makefile, try: > > CONFIGURE_ARGS+= --enable-mysql \ > --with-mysql-includes=${LOCALBASE}/include/mysql \ > --with-mysql-libraries=${LOCALBASE}/lib/mysql I *thought* that was what USE_MYSQL meant. The CONFIGURE_ARGS I'm using are for barnyard. It then looks for the mysql header file, which it should find if mysql is installed. USE_MYSQL=yes means (if I understand the bsd.database.mk file) BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqld.a:${PORTSDIR}/databases/mysql${MYSQL_VER}-client (see lines 142ff in bsd.database.mk.) If I can build barnyard-sguil (and really barnyard since the former is a slave port) by selecting that OPTION *and* the OPTION Is preselected, why does the build fail when run on tinderbox? Unless I'm totally misunderstanding what USE_MYSQL means, the BUILD_DEPENDS is included if mysql is selected. Adding CONFIGURE_ARGS for includes and libraries should only be necessary if those are in a non-standard location *or* the software simply refuses to build without specifying them. It does not. Again, I'm confused. I don't understand why the build fails in tinderbox. Hopefully someone with knowledge of that process can point out the error of my ways. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* Check the headers before clicking on Reply.