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

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

 



On Sat, 2 Mar 2013 11:56:37 -0600, Ranjan Maitra wrote:

> 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?

Edit defs.h and don't include glibconfig.h but glib.h as the error
message says. Do a similar thing for any other source file that causes
the same error.
-- 
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