From nobody@FreeBSD.org  Tue Aug  2 13:22:26 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 74C1A16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Aug 2005 13:22:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3B28843D48
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Aug 2005 13:22:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j72DMQi9027571
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Aug 2005 13:22:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j72DMQim027570;
	Tue, 2 Aug 2005 13:22:26 GMT
	(envelope-from nobody)
Message-Id: <200508021322.j72DMQim027570@www.freebsd.org>
Date: Tue, 2 Aug 2005 13:22:26 GMT
From: Adi Pircalabu <apircalabu@bitdefender.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] - fix for Sylpheed-Claws-1.9.13 & libetpan compile problem
X-Send-Pr-Version: www-2.3

>Number:         84480
>Category:       ports
>Synopsis:       [patch] - fix for Sylpheed-Claws-1.9.13 & libetpan compile problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 02 13:30:13 GMT 2005
>Closed-Date:    Tue Aug 02 15:06:25 GMT 2005
>Last-Modified:  Tue Aug 02 15:06:25 GMT 2005
>Originator:     Adi Pircalabu
>Release:        5.4-STABLE
>Organization:
BitDefender
>Environment:
FreeBSD apircalabu 5.4-STABLE FreeBSD 5.4-STABLE #2: Wed May 18 15:25:17 EEST 2005     root@apircalabu:/usr/obj/usr/src/sys/GERULA  i386
>Description:
Sylpheed-Claws-1.9.13 uses libetpan but on my system - 5.4-STABLE - it does not compile. Extras from the output:

/pango-1.0 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -O -pipe -Wall -MT etpan-thread-manager.lo -MD -MP -MF .deps/etpan-thread-manager.Tpo -c etpan-thread-manager.c  -fPIC -DPIC -o .libs/etpan-thread-manager.o
In file included from etpan-thread-manager.h:5,
                 from etpan-thread-manager.c:7:
etpan-thread-manager-types.h:21: error: syntax error before "pthread_t"
etpan-thread-manager-types.h:45: error: syntax error before "pthread_mutex_t"
etpan-thread-manager.c: In function `etpan_thread_new':
etpan-thread-manager.c:83: error: structure has no member named `lock'
etpan-thread-manager.c:122: error: structure has no member named `lock'
etpan-thread-manager.c: In function `etpan_thread_free':
etpan-thread-manager.c:136: error: structure has no member named `lock'
etpan-thread-manager.c: In function `etpan_thread_op_new':
etpan-thread-manager.c:159: error: structure has no member named `lock'
etpan-thread-manager.c: In function `etpan_thread_op_free':
etpan-thread-manager.c:173: error: structure has no member named `lock'
etpan-thread-manager.c: In function `thread_lock':
etpan-thread-manager.c:251: error: structure has no member named `lock'
etpan-thread-manager.c: In function `thread_unlock':
etpan-thread-manager.c:256: error: structure has no member named `lock'
etpan-thread-manager.c: In function `etpan_thread_start':
etpan-thread-manager.c:325: error: structure has no member named `th_id'
etpan-thread-manager.c: In function `etpan_thread_join':
etpan-thread-manager.c:359: error: structure has no member named `th_id'
etpan-thread-manager.c: In function `etpan_thread_op_lock':
etpan-thread-manager.c:473: error: structure has no member named `lock'
etpan-thread-manager.c: In function `etpan_thread_op_unlock':
etpan-thread-manager.c:478: error: structure has no member named `lock'
gmake[4]: *** [etpan-thread-manager.lo] Error 1
gmake[4]: Leaving directory `/usr/ports/mail/sylpheed-claws/work/sylpheed-claws-1.9.13/src/etpan'
gmake[3]: *** [all-recursive] Error 1


>How-To-Repeat:
Try to build Sylpheed-Claws-1.9.13 on 5.4-STABLE
>Fix:
create files/patch-src_etpan_etpan-thread-manager-types.h with the following content and rebuild.

--- src/etpan/etpan-thread-manager-types.h.orig Tue Aug  2 15:17:58 2005
+++ src/etpan/etpan-thread-manager-types.h      Tue Aug  2 15:18:13 2005
@@ -3,6 +3,7 @@
 #define ETPAN_THREAD_MANAGER_TYPES_H

 #include <libetpan/libetpan.h>
+#include <pthread.h>

 struct etpan_thread_manager {
   /* thread pool */

Thanks to Alexander Leidinger and Ion-Mihai Tetcu for reviewing the patch.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: lawrance 
State-Changed-When: Tue Aug 2 15:06:02 GMT 2005 
State-Changed-Why:  
Duplicate of ports/84479 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84480 
>Unformatted:
