From owner-freebsd-ports@FreeBSD.ORG Wed May 14 21:49:40 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 565A15F2; Wed, 14 May 2014 21:49:40 +0000 (UTC) Received: from mail-yk0-x22d.google.com (mail-yk0-x22d.google.com [IPv6:2607:f8b0:4002:c07::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 086942DFB; Wed, 14 May 2014 21:49:39 +0000 (UTC) Received: by mail-yk0-f173.google.com with SMTP id 142so171261ykq.18 for ; Wed, 14 May 2014 14:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:in-reply-to:references :disposition-notification-to:content-type:date:message-id :mime-version; bh=teInWbhdDPBKTjcpwkjZJwZuQFyjuQjS2IwO20XG6Mk=; b=Bl7hjtUh+AkjuklKcsionUvp0c4Pzjk6ms/tIr83VkW4NSyuD6NUTrMAodfI2TNC4X oaXbwjR+giY4EtnB4aY++z0xF05B/DhEpjC7Om2erFZiJrCYOUePxHWmrtIgY8NXhjwS dcILPWk5qNbAA82ox26nEXUTPZEMHtm1aeE6iwlEwN0HMVZKT0xdEhlrLLtHE4bYorFN 9jNq7PC72mFNAW16tXu3hGEsU3aB2Z3vYwK6xkq7xBpN3z0M2zZgXdLKzopKV7EjxAOO obEfqfdqeBAY9P9jXVupYgQGBNUJ96mpVNYbuounLKxcByjSyMBSsfmrYRWvGbD/aso5 m4aA== X-Received: by 10.236.131.42 with SMTP id l30mr9198700yhi.130.1400104179236; Wed, 14 May 2014 14:49:39 -0700 (PDT) Received: from [192.168.6.46] ([179.184.51.72]) by mx.google.com with ESMTPSA id a104sm4427248yhq.5.2014.05.14.14.49.37 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 14 May 2014 14:49:38 -0700 (PDT) Subject: Re: evolution does not build with latest libxml2 From: Sergio de Almeida Lenzi To: Don Lewis In-Reply-To: <201405142056.s4EKurUV084386@gw.catspoiler.org> References: <201405142056.s4EKurUV084386@gw.catspoiler.org> Date: Wed, 14 May 2014 18:49:34 -0300 Message-ID: <1400104174.19433.1.camel@lenovo.toontown> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: ports 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 21:49:40 -0000 Em Qua, 2014-05-14 às 13:56 -0700, Don Lewis escreveu: > 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); > It worked, also to patch databases/evolution-data-server too Thanks