Re: SOLVED: sylfilter compile error: #error "Only <glib.h> can be included directly."

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/02/13 20:22, Ranjan Maitra wrote:
> 
> 
> Thanks! 
> 
> I was able to get it to "work" (i.e. compile, etc) with the following:
> 
> ./configure --with-libsylph=sylpheed --with-package=sylpheed
> --enable-sqlite=yes --includedir=/usr/include/sylpheed
> 
> make
> 
> make install
> 
> I don't know how convenient it would be to make this into an rpm, but I
> thought I would post this to the ML in case someone was looking for it
> later. (It does require glib-devel, sylpheed-devel and sqlite-devel to
> compile.)

'sylfilter-0.7' missing a couple 'includes' needed for
BUILTIN_LIBSYLPH(default), so you don't need all that stunts with
'configure'. :)
git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git

poma

diff -ur sylfilter-0.7/lib/filters/bayes-filter.c sylfilter/lib/filters/bayes-filter.c
--- sylfilter-0.7/lib/filters/bayes-filter.c	2012-01-13 06:13:15.000000000 +0100
+++ sylfilter/lib/filters/bayes-filter.c	2013-03-02 23:43:53.414604212 +0100
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */
 
+#include "config.h"
+
 #include <glib.h>
 #include <stdio.h>
 #include <string.h>
diff -ur sylfilter-0.7/lib/filters/textcontent-filter.c sylfilter/lib/filters/textcontent-filter.c
--- sylfilter-0.7/lib/filters/textcontent-filter.c	2012-01-13 06:13:28.000000000 +0100
+++ sylfilter/lib/filters/textcontent-filter.c	2013-03-02 23:43:53.414604212 +0100
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */
 
+#include "config.h"
+
 #include <glib.h>
 #include <stdio.h>
 #include <string.h>
diff -ur sylfilter-0.7/lib/filter-utils.c sylfilter/lib/filter-utils.c
--- sylfilter-0.7/lib/filter-utils.c	2012-01-13 06:12:10.000000000 +0100
+++ sylfilter/lib/filter-utils.c	2013-03-02 23:43:53.413604273 +0100
@@ -4,6 +4,8 @@
  * Copyright (C) 2011-2012 Sylpheed Development Team
  */
 
+#include "config.h"
+
 #include <glib.h>
 
 #ifdef BUILTIN_LIBSYLPH
diff -ur sylfilter-0.7/libsylph/defs.h sylfilter/libsylph/defs.h
--- sylfilter-0.7/libsylph/defs.h	2011-08-31 06:49:56.000000000 +0200
+++ sylfilter/libsylph/defs.h	2013-03-02 23:44:49.021196161 +0100
@@ -10,7 +10,7 @@
 #  include "config.h"
 #endif
 
-#include <glibconfig.h>
+#include <glib.h>
 
 #ifdef G_OS_WIN32
 #  include <glib/gwin32.h>
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux