From owner-freebsd-ports@FreeBSD.ORG Wed Mar 30 16:55:25 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 0CBA516A4CE for ; Wed, 30 Mar 2005 16:55:25 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id A13D743D41 for ; Wed, 30 Mar 2005 16:55:24 +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 (sccrmhc11) with ESMTP id <2005033016552301100as3h4e>; Wed, 30 Mar 2005 16:55:24 +0000 From: Aaron Siegel To: freebsd-ports@freebsd.org Date: Wed, 30 Mar 2005 09:54:50 -0700 User-Agent: KMail/1.7.2 References: <200503291443.27311.aj@siegel-tech.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503300954.51325.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 16:55:25 -0000 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 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" ______Break_______ | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char magic_open (); | int | main () | { | magic_open (); | ; | return 0; | } configure:33486: result: no configure:33495: error: libmagic not found. Please install libmagic. ldconfig -r 75:-lmagic.1 => /usr/lib/libmagic.so.1 On Tuesday 29 March 2005 18:52, Christopher Nehren wrote: > On 2005-03-29, Aaron Siegel scribbled these > > curious markings: > > checking for magic.h... yes > > checking for magic_open in -lmagic... no > > configure: error: libmagic not found. Please install libmagic. > > Have you checked config.log? > > > I have copied magic.h from the source tree to /usr/include. Is this a > > common error? > > Don't do that. > > Best Regards, > Christopher Nehren