Bug 84479 - [patch] - fix for Sylpheed-Claws-1.9.13 & libetpan compile problem
Summary: [patch] - fix for Sylpheed-Claws-1.9.13 & libetpan compile problem
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexander Leidinger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 14:30 UTC by Adi Pircalabu
Modified: 2005-09-01 12:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adi Pircalabu 2005-08-02 14:30:13 UTC
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

Fix: create files/patch-src_etpan_etpan-thread-manager-types.h with the following content and rebuild.



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

 struct etpan_thread_manager {
   /* thread pool */

Thanks to Alexander Leidinger and Ion-Mihai Tetcu--12G6iPqzDERgN6i9OLcULTm6Gl6cO5Ma9dTuYrb7vdGffE8g
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: Try to build Sylpheed-Claws-1.9.13 on 5.4-STABLE
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-08-02 16:08:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Take
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-08-03 02:44:30 UTC
Responsible Changed
From-To: lawrance->netchild

The patch is for sylpheed-claws, over to maintainer
Comment 3 Alexander Leidinger freebsd_committer freebsd_triage 2005-09-01 12:04:41 UTC
State Changed
From-To: open->closed

Thank you. I committed a different fix.