From owner-freebsd-ports@FreeBSD.ORG Wed Mar 30 20:41:55 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D06716A4CE for ; Wed, 30 Mar 2005 20:41:55 +0000 (GMT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id C422C43D53 for ; Wed, 30 Mar 2005 20:41:54 +0000 (GMT) (envelope-from bulk_mail@siegel-tech.net) Received: from [10.0.0.8] (63-225-97-116.dnvr.qwest.net[63.225.97.116]) by comcast.net (sccrmhc13) with ESMTP id <2005033020415401600r9f6ae>; Wed, 30 Mar 2005 20:41:54 +0000 From: Aaron Siegel To: freebsd-ports@freebsd.org Date: Wed, 30 Mar 2005 13:41:20 -0700 User-Agent: KMail/1.7.2 References: <200503291443.27311.aj@siegel-tech.net> <200503300954.51325.bulk_mail@siegel-tech.net> <200503302019.14603.andy@athame.co.uk> In-Reply-To: <200503302019.14603.andy@athame.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503301341.20759.bulk_mail@siegel-tech.net> Subject: Re: libmagic X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: aj@siegel-tech.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 20:41:55 -0000 Andy Thank you, it configured! - LIBS=" -lmagic $LIBS" + LIBS="-lz -lmagic $LIBS" I hope to be submitting my first port soon. There is a lot to learn Aaron On Wednesday 30 March 2005 10:19, Andy Fawcett wrote: > On Wednesday 30 March 2005 19:54, Aaron Siegel wrote: > > I am still a beginner but my best guess after reading the config.log is > > the libmagic is not working properly. I am running FreeBSD 5.3-STABLE > > #0: Sun Feb 27 10:19:56 MST 2005. The port devel/ruby-filemagic is > > reporting the same error. A developer from the yzis project was able to > > compile with the lastest version of FreeBSD. I am going to try upgrading, > > see if that works. > > > > Part of the config.log and output of ldconfig are posted bellow > > > > Thank you > > > > Aaron > > > > config.log > > > > configure:33407: checking for magic.h > > configure:33414: result: yes > > configure:33425: checking for magic_open in -lmagic > > configure:33455: gcc -o conftest -O2 -DQT_THREAD_SUPPORT > > -D_THREAD_SAFE conftest.c -lm > > agic >&5 > > > > /usr/lib/libmagic.so: undefined reference to `inflate' > > /usr/lib/libmagic.so: undefined reference to `inflateEnd' > > /usr/lib/libmagic.so: undefined reference to `inflateInit2_' > > configure:33461: $? = 1 > > The configure check is slightly wrong. It also needs to link against libz > to pull in these references. Once that is changed, the configure completes. > > A.