From owner-freebsd-questions@FreeBSD.ORG Wed Nov 21 00:12:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 558AC16A417 for ; Wed, 21 Nov 2007 00:12:50 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.188]) by mx1.freebsd.org (Postfix) with ESMTP id 0A52513C44B for ; Wed, 21 Nov 2007 00:12:49 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so1386347rnb for ; Tue, 20 Nov 2007 16:12:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=vlMeGnS0c/sX5V58YkCMbjeOp1tTrnxSbdP0VBZCqSQ=; b=Jl6uM9SP4iUY9WCVP2Dlq5A7ucsjXvTwkD+5bEXVQqRwaaF7UsJARQQ1u1gPDFmkFA01EFpEFVlk/EaxlaIKO7jLeb4x8lP7IQG3cBbvnSbHfmMvTDV/NOpHh6EkjLzvWM6k7UWD7Wp34e3ptCNwTmkiT2bkADQnv5RB8eobFoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=uTLVsJFOpYHQSIfsHqY6hBYY4RDtYHDJe/TgAbzrZlM8E5Lz20eoRm8FM63LNLxCUJa8SS1hCVs30fgvObYPmURSNWwCYGiYFWnQVOpSLghIgNZlG38b3kz3uUI3NdZ0GaD6wr4GeuhHC38ooAi6zTOl5XiOKkCzQwgtUefZmDw= Received: by 10.142.221.19 with SMTP id t19mr692452wfg.1195603966493; Tue, 20 Nov 2007 16:12:46 -0800 (PST) Received: by 10.142.194.10 with HTTP; Tue, 20 Nov 2007 16:12:46 -0800 (PST) Message-ID: <539c60b90711201612o5c8cfc99ma53829b181959e15@mail.gmail.com> Date: Tue, 20 Nov 2007 17:12:46 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "Steve Franks" , "User Questions" In-Reply-To: <20071120231601.GB1161@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539c60b90711201434s361ec72co898fad601f35535a@mail.gmail.com> <20071120231601.GB1161@slackbox.xs4all.nl> X-Google-Sender-Auth: afcceae7f0b4911b Cc: rsmith@xs4all.nl Subject: Re: arbitrary build can't find libs - right way to do this? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Nov 2007 00:12:50 -0000 On Nov 20, 2007 4:16 PM, Roland Smith wrote: > > On Tue, Nov 20, 2007 at 03:34:29PM -0700, Steve Franks wrote: > > I'm trying to compile a non-port application for the first time ever. > > The associated library built and installed just fine - I can see them > > right in /usr/local/lib and usr/local/include/libnamefoo.h However, > > when I run ./configure for the application, it clearly can't find the > > libs. So my question is, should I be changing my path, is there a > > standard variable I need to export, or what? Obviously for ports this > > just works, so I've never had to do it. I'm sure there's a standard > > way, so I thought I'd get in the habit of doing that right from the > > start... > > The best way would be to write a port makefile and submit it. That way > you only have to figure it out once. Especially if the app needs patches > to work correctly on FreeBSD. And in case of a free software app, others > can use it as well, _and_ help you with bugfixing. :-) For closed source > stuff submitting a port would probably be useless. I'd love to (submit a port), but how do I make a port if I can't even get it to work the first time myself? configure --includedir=/usr/local/include doesn't work; export CPATH =/usr/local/include doesn't work; export CPPFLAGS -l/usr/local/include doesn't work; I've checked the permissions, and I can see the file right there, but configure/gcc can't. The developer swears something must be 'different' about freebsd because his gcc finds the same file in /usr/local/include. Appears his system is gentoo... Steve