Andy Fawcett andy at
Wed Mar 30 09:18:22 PST 2005

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/ undefined reference to `inflate'
> /usr/lib/ undefined reference to `inflateEnd'
> /usr/lib/ 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.


Andy Fawcett                                     | andy at
                                                 | tap at
"In an open world without walls and fences,      | tap at
  we wouldn't need Windows and Gates."  -- anon  | tap at

More information about the freebsd-ports mailing list