Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 13:41:20 -0700
From:      Aaron Siegel <bulk_mail@siegel-tech.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: libmagic
Message-ID:  <200503301341.20759.bulk_mail@siegel-tech.net>
In-Reply-To: <200503302019.14603.andy@athame.co.uk>
References:  <200503291443.27311.aj@siegel-tech.net> <200503300954.51325.bulk_mail@siegel-tech.net> <200503302019.14603.andy@athame.co.uk>

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



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