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

Ranjan Maitra maitra.mbox.ignored at inbox.com
Sat Mar 2 17:56:37 UTC 2013


So, I have been trying to get sylfilter to compile and execute (since I
could not find a rpm in the fedora 18 repos).

The source code is available at:

http://sylpheed.sraoss.jp/sylfilter/


Anyway, I configure in the following way:

./configure --with-libsylph=builtin --enable-sqlite=yes 

Then I run:

make
 
I get:

......
 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/maitra/Downloads/sylfilter-0.7/libsylph' make[1]: ***
[all-recursive] Error 1 make[1]: Leaving directory
`/home/maitra/Downloads/sylfilter-0.7' make: *** [all] Error 2



How do I get around this above error? I DuckDuckGo'ed for the above
error but did not find a satisfactory answer, expcept that I should
update the packages. But Fedora usually always have the most updated
packages.

Any suggestions on this?

Many thanks,
Ranjan

-- 
Important Notice: This mailbox is ignored: e-mails are set to be
deleted on receipt. For those needing to send personal or professional
e-mail, please use appropriate addresses.

____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails




More information about the users mailing list