From owner-freebsd-questions@FreeBSD.ORG Wed Jun 10 18:15:40 2009 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 9CFE71065677 for ; Wed, 10 Jun 2009 18:15:40 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id 5E69D8FC0A for ; Wed, 10 Jun 2009 18:15:40 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n5AIFdRs001204 for ; Wed, 10 Jun 2009 14:15:39 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n5AIFb6c001202; Wed, 10 Jun 2009 14:15:37 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id D68D3BEDB; Wed, 10 Jun 2009 14:13:35 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: <70C0964126D66F458E688618E1CD008A0793EF14@WADPEXV0.waddell.com> (Ggatten@waddell.com) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20090610181335.D68D3BEDB@kev.msw.wpafb.af.mil> Date: Wed, 10 Jun 2009 14:13:35 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: OT - help w configure, make, etc. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 18:15:41 -0000 This is a bit off-topic, but the same basic method works pretty well under BSD, and it's useful when you don't have exactly the port you need or the exact version of a library that a port expects. >> On Tue, 9 Jun 2009 12:06:04 -0500, >> "Gary Gatten" said: G> Yep, one reason I thought OT would be best is I'm trying to move this G> app to a Solaris 10 x86 system (don't ask). Here's what I did under Solaris-10. First, build the stuff that GNU autotools needs, like GNU m4: me% wget http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz me% gtar xzf m4-1.4.13.tar.gz me% cd m4-1.4.13 me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man \ --program-prefix=g me% make me% make check root# make install me% make distclean me% gm4 --version m4 (GNU M4) 1.4.13 Copyright (C) 2009 Free Software Foundation, Inc. The program-prefix part installs it as "gm4", just in case your vendor version of m4 is unique in some way. me% wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.63.tar.gz me% gtar xzf autoconf-2.63.tar.gz me% cd autoconf-2.63 me% CC=gcc CFLAGS=-O2 EMACS=no ./configure --mandir=/usr/local/man me% make me% make check root# make install me% make distclean You'll also need automake to get a recent version of "aclocal": me% wget http://ftp.gnu.org/gnu/automake/automake-1.11.tar.gz me% gtar xzf automake-1.11.tar.gz me% cd automake-1.11 me% CC=gcc CFLAGS=-O2 ./configure --mandir=/usr/local/man me% make me% make check root# make install me% make clean As far as recreating the build system for ntop, that's a snap after the auto-stuff is installed: me% wget http://downloads.sourceforge.net/ntop/ntop-3.3.10.tar.gz me% gtar xzf ntop-3.3.10.tar.gz me% cd ntop-3.3.10 me% ./autogen.sh However, "ntop" depends on "rrdtool" being installed, and that drags in everything on Earth: me% wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz me% gtar xzf rrdtool-1.3.8.tar.gz me% cd rrdtool-1.3.8 me% cat /tmp/doconfig #!/bin/sh CC=gcc CFLAGS=-O2 LDFLAGS="-L/opt/sfw/lib" CPPFLAGS="-I/opt/sfw/include" LIBTOOL=/opt/sfw/bin/libtool export CC CFLAGS LDFLAGS CPPFLAGS LIBTOOL ./configure --disable-nls --disable-ruby --disable-libintl exit 0 me% sh /tmp/doconfig checking build system type... i386-pc-solaris2.10 ... I could not find a working copy of cairo-png I could not find a working copy of cairo-svg I could not find a working copy of cairo-pdf I could not find a working copy of cairo-ps I could not find a working copy of pangocairo configure: error: Please fix the library issues listed and try again. At this point, I was in dependency hell. I tried messing with the load and include compiler flags to get to the versions under /opt/sfw, but I had no luck. There's probably some really easy way to build this, or I could just build the required libraries, but I didn't have time to mess with it. -- Karl Vogel I don't speak for the USAF or my company A host of nameservers --collective nouns, June 1999 LINGUIST