On 08/04/12 21:39, spiky wrote:
> Hi
> Not sure if this is the correct place to post this, I,m trying to
> install LXDE on blfs svn.
> I have a problem with 1 of the lxde packages lxpanel.
> The error is looking for glib.h in /usr/include/glib-2.0/glib but glib.h
> is in /usr/include/glib-2.0. I did try copying glib.h to the glib dir
> but still the same results.
>
> In file included from netstatus-sysdeps.h:28:0,
>                    from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only<glib.h>
> can be included directly."
> In file included from /usr/include/glib-2.0/glibconfig.h:9:0,
>                    from /usr/include/glib-2.0/glib/gtypes.h:34,
>                    from netstatus-sysdeps.h:28,
>                    from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only<glib.h>
> can be included directly."
> In file included from /usr/include/glib-2.0/glib/gtypes.h:35:0,
>                    from netstatus-sysdeps.h:28,
>                    from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only<glib.h>
> can be included directly."
> In file included from /usr/include/glib-2.0/glib/gtypes.h:36:0,
>                    from netstatus-sysdeps.h:28,
>                    from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only
> <glib.h>  can be included directly."
> In file included from netstatus-sysdeps.h:29:0,
>                    from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only<glib.h>
> can be included directly."
> make[4]: *** [netstatus-sysdeps.lo] Error 1
> make[4]: Leaving directory
> `/sources/lxpanel-0.4.1/src/plugins/netstatus'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/sources/lxpanel-0.4.1/src/plugins'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/sources/lxpanel-0.4.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/sources/lxpanel-0.4.1'
> make: *** [all] Error 2
hi

Where you see #include <glib/glibXYZ.h>, replace with #include <glib.h>


It's part of a gnome cleanup operation where only top-level headers are 
allowed, this became mandatory with glib2.32


See http://developer.gnome.org/glib/stable/glib-compiling.html


cheers

Martin




-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to