gmediaserver-devel
[Top][All Lists]
Advanced

[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: Tue, 17 Oct 2006 22:31:13 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hi again - no only the CVS of gmediaserver. It's the first fix below
you'll need.

Regards,

Oskar

On Monday, October 16, 2006 at 11:33, White FrosT wrote:
> Hello Oskar,
> 
> Do you mean the CVS of libmagic?
> 
> This configure.ac line had already been altered by me. I use the 
> following patch on 0.12.0:
> /diff -u configure.ac.v0 configure.ac
> --- configure.ac.v0     2006-09-04 07:11:33.000000000 +0200
> +++ configure.ac        2006-09-04 07:11:45.000000000 +0200
> @@ -49,7 +49,7 @@
> fi
> # - libmagic
> AC_CHECK_HEADERS([magic.h], [], [AC_MSG_ERROR([libmagic magic.h header 
> file not found])])
> -AC_CHECK_LIB([magic], [magic_open], [AC_SUBST([LIBMAGIC], [-lmagic])], 
> [AC_MSG_ERROR([libmagic library or magic_open function not found])])
> +AC_CHECK_LIB([magic], [magic_open], [AC_SUBST([LIBMAGIC], [-lmagic])], 
> [AC_MSG_ERROR([libmagic library or magic_open function not found])],
> [-lz])
> 
> # - ID3Lib
> AC_LIB_ID3
> diff -u m4/ac_lib_upnp.m4.v0 m4/ac_lib_upnp.m4
> --- m4/ac_lib_upnp.m4.v0        2006-04-08 17:12:02.000000000 +0200
> +++ m4/ac_lib_upnp.m4   2006-09-04 16:07:40.000000000 +0200
> @@ -73,7 +73,7 @@
>          AC_DEFINE([HAVE_LIBUPNP])
>          foundupnp=1
>           $1
> -        ])
> +        ], [-lpthread])
>         LIBS="$saved_LIBS"
>       ])
>       CPPFLAGS="$saved_CPPFLAGS"
> /
> 
> Best regards,
> Olaf
> 
> 
> Oskar Liljeblad wrote:
> >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
> >
> >  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]