[sylpheed:35604] Re: configure sylpheed with sylfilter

Hiroyuki Yamamoto hiro-y at kcn.ne.jp
Wed Mar 6 18:30:08 JST 2013


Hello,

On Sat, 2 Mar 2013 11:04:03 -0800 (PST)
Globe Trotter <itsme_410 at yahoo.com> wrote:

> Thank you very much again for your help! I am not sure how to use it though.
> 
> I tried compiling sylfilter but have the following problems:
> 
> ./configure --with-libsylph=builtin --with-libsylph-dir=libsylph --enable-sqlite=yes 
> 
> 
> make
> 
> gives an error:
> 
> ......
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I.. -I/usr/local/include -DG_LOG_DOMAIN=
> \"SylFilter\" -DSYSCONFDIR=\"/usr/local/etc\" -DLOCALEDIR=
> \"/usr/local/share/locale\" -g -O2 -MT procmsg.lo -MD -MP
> -MF .deps/procmsg.Tpo -c procmsg.c  -fPIC -DPIC -o .libs/procmsg.o In
> file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0, from
> defs.h:13, from procmsg.c:6: /usr/include/glib-2.0/glib/gmacros.h:32:2:
> error: #error "Only <glib.h> can be included directly." make[2]: ***
> [procmsg.lo] Error 1 make[2]: Leaving directory
> `/home/my/Downloads/sylfilter-0.7/libsylph' make[1]: ***
> [all-recursive] Error 1 make[1]: Leaving directory
> `/home/my/Downloads/sylfilter-0.7' make: *** [all] Error 2
> 
> which I resolve by editing 
> 
> defs.h to replace #include<glibconfig.h> with #include<glib.h>

I'll fix it. It has been already fixed at Sylpheed 3.2.

> Even then, I get the following error:
> 
> textcontent-filter.c:20:32: fatal error: sylph/procheader.h: No such file or directory
> compilation terminated.
> make[3]: *** [textcontent-filter.lo] Error 1
> 
> 
> But I am using libsylph=builtin so I am not sure why it goes into sylph instead of libsylph to search for that particular procheader.h.

It has been fixed in git HEAD after 0.7 release (sorry for no release).

When using builtin, --with-libsylph-dir is also not required.

patch between 0.7 and HEAD:

diff --git a/lib/filter-utils.c b/lib/filter-utils.c
index e42667a..1fceea5 100644
--- a/lib/filter-utils.c
+++ b/lib/filter-utils.c
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */

+#include "config.h"
+
 #include <glib.h>

 #ifdef BUILTIN_LIBSYLPH
diff --git a/lib/filters/bayes-filter.c b/lib/filters/bayes-filter.c
index 6e8385f..6d3b978 100644
--- a/lib/filters/bayes-filter.c
+++ b/lib/filters/bayes-filter.c
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */

+#include "config.h"
+
 #include <glib.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/lib/filters/textcontent-filter.c b/lib/filters/textcontent-filter.c

index 9ff248e..4023151 100644
--- a/lib/filters/textcontent-filter.c
+++ b/lib/filters/textcontent-filter.c
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */

+#include "config.h"
+
 #include <glib.h>
 #include <stdio.h>
 #include <string.h>

-- 
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


More information about the Sylpheed mailing list