From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 14:05:28 2015 Return-Path: Delivered-To: freebsd-questions@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 AEB4E2E6 for ; Mon, 19 Jan 2015 14:05:28 +0000 (UTC) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D899131 for ; Mon, 19 Jan 2015 14:05:28 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id ge10so7975043lab.10 for ; Mon, 19 Jan 2015 06:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=II5FwcM0Ii0NDYNUuDB2uHLHgAVlm09bWDEURe7Cvqs=; b=w0AIe3DBmRYhVFttDl+keFaTqVPioS/0bSbrPPP5K2yQz/qM2vY185pllvZn46hb58 9XkRqLtGrU62pP+XQLwDUsRhptxR9V/Q+WOlmpkCf+T2xOnBmVagB7WAKGcs7NByxoaT g6aZd35Jz6QUydDR9q5K00H+NnrtwkKg2DrDH9Y5q3keJvE7uoednO1fQK/X3ohfckUL kKeou2pzts5JglWvv75lBCpjyJr3xEBrecR/4rFkAmuXGVt1RC4AH4Q5FRx0mM6Bg47k tyM8jMcNDb1rpQEvnLw6s6jUHZwJvEVc2O7xAUnAAzx8Qkm1QVT/9DYwsH9G8OA3vRyv KJYg== X-Received: by 10.153.11.170 with SMTP id ej10mr1956780lad.24.1421676326344; Mon, 19 Jan 2015 06:05:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.20.229 with HTTP; Mon, 19 Jan 2015 06:04:45 -0800 (PST) In-Reply-To: <54BD0AF0.5040809@infracaninophile.co.uk> References: <54BD0AF0.5040809@infracaninophile.co.uk> From: Odhiambo Washington Date: Mon, 19 Jan 2015 17:04:45 +0300 Message-ID: Subject: Re: FreeBSD 10 and manually compile applications without gcc To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: User Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2015 14:05:28 -0000 Hi Matthew, Thank you do much for that short lecture. It really helps:) I am fond of compiling bleeding edge apps at certain times to see how the new features created will play with my setup and then give feedback to the developers. Then again there are times like this, when I am having a hell with squid-3.4.10 on FreeBSD 10 (amd64) - with memory leaks. I an running with the same configuration on FreeBSD 9.3 (amd64) but with Squid-3.5.0.4 and have no memory leaks! I know the best way to get around this would be report to squid dev about it, but I wanted to try squid-3.5 and it's not in the ports, hence the need to compile by hand. So is there a shortcut way?:) On 19 January 2015 at 16:47, Matthew Seaman wrote: > On 2015/01/19 13:29, Odhiambo Washington wrote: > > Now, suppose I did not install gcc from the ports and I'd like to install > > an application by hand using native tools for FreeBSD 10.x, how do I do > > that? > > I need a lecture on this:-) > > This is exactly why the ports exists: the port maintainer understands > how to make whatever software it is compile smoothly and generally do > what you want, so you don't have to. > > If you insist on building your own de-novo, then you are going to need > to crawl up that fairly steep learning curve. I'm afraid I cannot > deliver a simple lecture on 'do this, and it will work' because, well, > it's not simple at all. > > Your first hurdle seems to be getting configure to choose consistent > settings. configure is expecting 'cc' on FreeBSD 10.x to actually be > clang -- which is what it usually is. If you want to use gcc instead, > then you need to tell configure that, which you usually do by setting > the CC environment variable when you call configure. > > Matthew > > > -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."