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/03/13 02:00, Ranjan Maitra wrote:
> On Sun, 3 Mar 2013 00:01:06 +0100 poma <pomidorabelisima@xxxxxxxxx>
> wrote:
> 
>> 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
>>
> 
> Not sure if I am using git correctly....
> 
> $git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git
> Cloning into 'sylfilter'...
> 
> But then, while doing:
> 
> ./configure --with-libsylph=builtin
> 
> or 
> 
> ./configure --with-libsylph=sylpheed
> 
> I get exactly the same error sequences as before. "Fixed" with the same
> commands as before.
> 
> What am I doing wrong?

Patch "sylfilter-0.7-includes.diff" is for "sylfilter-0.7.tar.gz"
exclusively for BUILTIN_LIBSYLPH(--with-libsylph=builtin) which is
default, so "./configure" is adequate. ;)

Patch(attach) "sylfilter-20120116git90da63d-includes.diff" is for the
recent "sylfilter" git;

git clone http://floss.sraoss.jp/~yamamoto/sylfilter.git
cd sylfilter/
git apply --stat ../sylfilter-20120116git90da63d-includes.diff
git apply --check ../sylfilter-20120116git90da63d-includes.diff
git apply ../sylfilter-20120116git90da63d-includes.diff

./configure [--with-libsylph=builtin]
or
./configure --with-libsylph=sylpheed
make

./src/sylfilter -h
--

cheers,
poma



diff --git a/lib/filter-utils.c b/lib/filter-utils.c
index 1fceea5..cf388c7 100644
--- a/lib/filter-utils.c
+++ b/lib/filter-utils.c
@@ -11,7 +11,7 @@
 #ifdef BUILTIN_LIBSYLPH
 #  include "libsylph/utils.h"
 #else
-#  include <sylph/utils.h>
+#  include <sylpheed/sylph/utils.h>
 #endif
 
 #ifdef G_OS_WIN32
diff --git a/lib/filters/bayes-filter.c b/lib/filters/bayes-filter.c
index 6d3b978..a169aa5 100644
--- a/lib/filters/bayes-filter.c
+++ b/lib/filters/bayes-filter.c
@@ -21,7 +21,7 @@
 #ifdef BUILTIN_LIBSYLPH
 #  include "libsylph/utils.h"
 #else
-#  include <sylph/utils.h>
+#  include <sylpheed/sylph/utils.h>
 #endif
 
 #define N_TOKENS 15
diff --git a/lib/filters/textcontent-filter.c b/lib/filters/textcontent-filter.c
index 4023151..bc4dfd7 100644
--- a/lib/filters/textcontent-filter.c
+++ b/lib/filters/textcontent-filter.c
@@ -19,10 +19,10 @@
 #  include "libsylph/procmime.h"
 #  include "libsylph/utils.h"
 #else
-#  include <sylph/procheader.h>
-#  include <sylph/procmsg.h>
-#  include <sylph/procmime.h>
-#  include <sylph/utils.h>
+#  include <sylpheed/sylph/procheader.h>
+#  include <sylpheed/sylph/procmsg.h>
+#  include <sylpheed/sylph/procmime.h>
+#  include <sylpheed/sylph/utils.h>
 #endif
 
 #define IS_BASE64_CHR(c)			\
diff --git a/libsylph/defs.h b/libsylph/defs.h
index 13efaa8..1831e56 100644
--- a/libsylph/defs.h
+++ b/libsylph/defs.h
@@ -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