From owner-freebsd-ports@FreeBSD.ORG Wed May 14 20:57:00 2014 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E73985C7 for ; Wed, 14 May 2014 20:57:00 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C85D62982 for ; Wed, 14 May 2014 20:57:00 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s4EKurUV084386; Wed, 14 May 2014 13:56:57 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201405142056.s4EKurUV084386@gw.catspoiler.org> Date: Wed, 14 May 2014 13:56:53 -0700 (PDT) From: Don Lewis Subject: Re: evolution does not build with latest libxml2 To: lenzi.sergio@gmail.com In-Reply-To: <1400097062.10604.41.camel@lenovo.toontown> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 20:57:01 -0000 On 14 May, Sergio de Almeida Lenzi wrote: > FreeBSD 10 and 9.2 does not build > evolution with latest libxml2 > > ==================================== > e-cal-backend-caldav.c:1533:28: error: incomplete definition of type > 'struct _xmlBuf' > (gchar *) buf->buffer->content, > ~~~~~~~~~~~^ > /usr/local/include/libxml2/libxml/tree.h:104:16: note: forward > declaration of 'struct _xmlBuf' > typedef struct _xmlBuf xmlBuf; > ^ > e-cal-backend-caldav.c:1583:28: error: incomplete definition of type > 'struct _xmlBuf' > (gchar *) buf->buffer->content, > ~~~~~~~~~~~^ > /usr/local/include/libxml2/libxml/tree.h:104:16: note: forward > declaration of 'struct _xmlBuf' > typedef struct _xmlBuf xmlBuf; > ====================================== I ran into the same problem and came up with this patch that at least allows the port to build. I'm unable to actually test it, so it might destroy all of your files or do something else that's evil. --- plugins/caldav/caldav-browse-server.c.orig 2010-09-21 00:26:29.000000000 -0700 +++ plugins/caldav/caldav-browse-server.c 2014-05-14 12:55:29.000000000 -0700 @@ -979,7 +979,7 @@ soup_message_headers_append (message->request_headers, "User-Agent", "Evolution/" VERSION); soup_message_headers_append (message->request_headers, "Depth", depth_1 ? "1" : "0"); - soup_message_set_request (message, "application/xml", SOUP_MEMORY_COPY, (const gchar *) buf->buffer->content, buf->buffer->use); + soup_message_set_request (message, "application/xml", SOUP_MEMORY_COPY, (const gchar *) xmlBufContent(buf->buffer), xmlBufUse(buf->buffer)); /* Clean up the memory */ xmlOutputBufferClose (buf);