From owner-freebsd-ports@FreeBSD.ORG Thu May 25 21:45:05 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D810D16ABED for ; Thu, 25 May 2006 21:40:30 +0000 (UTC) (envelope-from mnag@FreeBSD.org) Received: from corp.grupos.com.br (corp.grupos.com.br [200.193.29.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DCCC43D6E for ; Thu, 25 May 2006 21:40:22 +0000 (GMT) (envelope-from mnag@FreeBSD.org) Received: from corp.grupos.com.br (corp.grupos.com.br [192.168.10.2]) by corp.grupos.com.br (Postfix) with ESMTP id EBD6E5C82; Thu, 25 May 2006 18:40:19 -0300 (BRT) Received: from [192.168.10.10] (marcus.grupos.com.br [192.168.10.10]) by corp.grupos.com.br (Postfix) with ESMTP id C5BE05C7E; Thu, 25 May 2006 18:40:19 -0300 (BRT) Message-ID: <44762443.5090208@FreeBSD.org> Date: Thu, 25 May 2006 18:40:19 -0300 From: Marcus Alves Grando Organization: FreeBSD.org User-Agent: Thunderbird 1.5.0.2 (X11/20060502) MIME-Version: 1.0 To: B Briggs References: <4475F247.5060507@bellsouth.net> In-Reply-To: <4475F247.5060507@bellsouth.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Filtered: By ProxSMTP using Clamav and Bogofilter Cc: freebsd-ports@freebsd.org Subject: Re: graphics/ImageMagick build error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2006 21:45:06 -0000 B Briggs wrote: > Randy Pratt wrote: >> On Thu, 25 May 2006 11:13:15 -0300 >> Marcus Alves Grando wrote: >> >>> Eric wrote: >>>> Jonathan Noack wrote: >>>>> On 05/25/06 00:49, Jonathan Noack wrote: >>>>>> After the latest ImageMagick port update to 6.2.7.7, I get the >>>>>> following >>>>>> build error on several 6.1-RELEASE and 6.1-STABLE machines (all other >>>>>> ports are up-to-date). It appears to be looking for freetype2 in >>>>>> /usr/local/include whereas it is actually installed in >>>>>> /usr/X11R6/include. >>>>> Oops... I confused freetype2 and fontconfig. It can't find >>>>> fontconfig/fontconfig.h which is located in /usr/X11R6/include. >>>>> >>>>>> ... >>>> >>>> >>>> i got the same error too, so i did a 'locate fontconfig.h' and copied >>>> its full path, then edited magick/type.c to point to the location of my >>>> file (which you mentioned above). it got the port to compile and >>>> install, but i agree with you, something is wonky with the latest >>>> ImageMagick >> >> The above didn't work for me on 6-STABLE nor did the patch suggested >> by PR97889. >> >>> Please, try this patch: >>> >>> http://marcus.grupos.com.br:8080/patch/ImageMagick.patch >> >> This patch worked fine for me. Thanks for looking into this and >> fixing it! >> >> Randy > > I'm not sure that I got as far as the fontconfig problem. My problem is > with svg support. > > Here's relevant output from the compile (6.1 R): > > if /bin/sh ./libtool --silent --tag=CC --mode=compile ccache cc > -DHAVE_CONFIG_H -I. -I. -I./magick -I./wand -I./ltdl -I./ltdl > -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include > -I/usr/X11R6/include -I/X11 -I/usr/local/include/libxml2 -O -pipe -Wall > -MT coders/magick_libMagick_la-svg.lo -MD -MP -MF > "coders/.deps/magick_libMagick_la-svg.Tpo" -c -o > coders/magick_libMagick_la-svg.lo `test -f 'coders/svg.c' || echo > './'`coders/svg.c; \ > then mv -f "coders/.deps/magick_libMagick_la-svg.Tpo" > "coders/.deps/magick_libMagick_la-svg.Plo"; else rm -f > "coders/.deps/magick_libMagick_la-svg.Tpo"; exit 1; fi > coders/svg.c:94:26: librsvg/rsvg.h: No such file or directory > coders/svg.c:2587: error: syntax error before "gpointer" > . > . > . > many more errors from svg.c because it couldn't find rsvg.h > > The include path (which should be /usr/X11R6/include/librsvg-2) is not > on that failed command - here is my .pc contents: > > /usr/X11R6/libdata/pkgconfig$ cat librsvg-2.0.pc > prefix=/usr/X11R6 > exec_prefix=${prefix} > libdir=${exec_prefix}/lib > includedir=${prefix}/include > > Name: librsvg > Description: library that renders svg files > Version: 2.14.4 > Requires: glib-2.0 gdk-pixbuf-2.0 > Libs: -L${libdir} -lrsvg-2 > Cflags: -I${includedir}/librsvg-2 > Now i think that's fixed. Please test: http://marcus.grupos.com.br:8080/patch/ImageMagick.patch Regards -- Marcus Alves Grando marcus(at)corp.grupos.com.br | Grupos Internet S/A mnag(at)FreeBSD.org | FreeBSD.org