[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gmediaserver-devel] Problem on FreeBSD
From: |
Oskar Liljeblad |
Subject: |
Re: [gmediaserver-devel] Problem on FreeBSD |
Date: |
Mon, 16 Oct 2006 06:58:51 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Sunday, October 15, 2006 at 23:32, White FrosT wrote:
Hi Olaf
> Still working on it here. Seems I have a working libupnp here and it is
> recognized, it is 1.4.1 from ports, devel/upnp. See attached config.log.
> However, seems now I have a libmagic problem. The gmake output ends with:
>
> /gcc -Wall -I.. -D_THREAD_SAFE -pthread -I/usr/local/include -g -O2
> -o gmediaserver connectmgr.o contentdir.o interface.o logging.o upnp.o
> webserver.o webclient.o main.o metadata.o url.o search-lexer.o
> search-parser.o intutil.o hmap.o tmap.o strutil.o strbuf.o
> ../lib/libgnu.a ../uuid/libuuid.a -L/usr/local/lib -lupnp -lthreadutil
> -lixml -lmagic /usr/local/lib/libiconv.so -Wl,-rpath
> -Wl,/usr/local/lib /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib
> /usr/lib/libmagic.so: undefined reference to `inflate'
> /usr/lib/libmagic.so: undefined reference to `inflateEnd'
> /usr/lib/libmagic.so: undefined reference to `inflateInit2_'/
>
> Looks like libmagic on FreeBSD is missing something?
FreeBSD's libmagic needs to link with zlib. Use the CVS (which has the fix),
or modify line ~52 of configure.ac:
AC_CHECK_LIB([magic], [magic_open], [AC_SUBST([LIBMAGIC], [-lmagic])],
[AC_MSG_ERROR([libmagic library or magic_open function not found])], [-lz])
Then run autoreconf and ./configure!
Regards,
Oskar