From owner-freebsd-ports@FreeBSD.ORG Wed Mar 30 17:18:22 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 4B5D416A4CE for ; Wed, 30 Mar 2005 17:18:22 +0000 (GMT) Received: from hex.athame.co.uk (guru164.netsonic.fi [194.29.193.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 703D843D5D for ; Wed, 30 Mar 2005 17:18:19 +0000 (GMT) (envelope-from andy@athame.co.uk) Received: from vimes.int.athame.co.uk ([192.168.1.3]) by hex.athame.co.uk with esmtp (Exim 4.50 (FreeBSD)) id 1DGgpd-0006Ke-9W; Wed, 30 Mar 2005 20:18:17 +0300 From: Andy Fawcett Organization: Being Lazy At Home (BLAH!) To: aj@siegel-tech.net, freebsd-ports@freebsd.org Date: Wed, 30 Mar 2005 20:19:10 +0300 User-Agent: KMail/1.8 References: <200503291443.27311.aj@siegel-tech.net> <200503300954.51325.bulk_mail@siegel-tech.net> In-Reply-To: <200503300954.51325.bulk_mail@siegel-tech.net> X-Face: ?fLK282oT!Ss!(krp%ft%TWfrkz*Mxz<2hwkRBzd); #D/=!=XjYKFBh1wVeov4K&<=?utf-8?q?Z6bi=5F=0A=09=7BBvAjk1diod2?=,DQo`Xz<\$~fX7B>U`u0HC\Gc+B9Hxu"bjBc16tg~i4.,2A1>=?utf-8?q?=7BrcRK=5Fi!i=0A=097e79f=7CT=3B9=23gfr=3DG1u=27xS=3D?=(}_NSP,Gs>HDq Subject: Re: libmagic X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 17:18:22 -0000 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. -- Andy Fawcett | andy@athame.co.uk | tap@kde.org "In an open world without walls and fences, | tap@lspace.org we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org