libmagic

Aaron Siegel bulk_mail at siegel-tech.net
Wed Mar 30 12:41:55 PST 2005


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.


More information about the freebsd-ports mailing list