Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 20:19:10 +0300
From:      Andy Fawcett <andy@athame.co.uk>
To:        aj@siegel-tech.net, freebsd-ports@freebsd.org
Subject:   Re: libmagic
Message-ID:  <200503302019.14603.andy@athame.co.uk>
In-Reply-To: <200503300954.51325.bulk_mail@siegel-tech.net>
References:  <200503291443.27311.aj@siegel-tech.net> <slrnd4k1l8.bnn.apeiron%2Busenet@prophecy.dyndns.org> <200503300954.51325.bulk_mail@siegel-tech.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503302019.14603.andy>