Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CRUX (http://www.linux-archive.org/crux/)
-   -   dbus problem for compile (http://www.linux-archive.org/crux/681034-dbus-problem-compile.html)

caio bonvenuto 07-07-2012 03:28 PM

dbus problem for compile
 
Hey guys, I have a problem for make packages, the compilation. I have this problem in several packages...

one example:



In file included from ../xchat.h:3:0,
**************** from dbus-client.c:24:
/usr/include/glib-2.0/glib/gslist.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ../xchat.h:4:0,

**************** from dbus-client.c:24:
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ../xchat.h:5:0,
**************** from dbus-client.c:24:

/usr/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ../xchat.h:6:0,
**************** from dbus-client.c:24:
/usr/include/glib-2.0/glib/giochannel.h:28:2: error: #error "Only <glib.h> can be included directly."

In file included from ../xchat.h:7:0,
**************** from dbus-client.c:24:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."


Thanks for help,

cvibo

*sorry my english

_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux

Fredrik Rinnestam 07-07-2012 09:14 PM

dbus problem for compile
 
On Sat, Jul 07, 2012 at 03:28:27PM +0000, caio bonvenuto wrote:
> Hey guys, I have a problem for make packages, the compilation. I have this
> problem in several packages...
>
> one example:
>
>
> In file included from ../xchat.h:3:0,
> > from dbus-client.c:24:
> > /usr/include/glib-2.0/glib/gslist.h:28:2: error: #error "Only <glib.h> can
> > be included directly."
> > In file included from ../xchat.h:4:0,
> > from dbus-client.c:24:
> > /usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can
> > be included directly."
> > In file included from ../xchat.h:5:0,
> > from dbus-client.c:24:
> > /usr/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can
> > be included directly."
> > In file included from ../xchat.h:6:0,
> > from dbus-client.c:24:
> > /usr/include/glib-2.0/glib/giochannel.h:28:2: error: #error "Only <glib.h>
> > can be included directly."
> > In file included from ../xchat.h:7:0,
> > from dbus-client.c:24:
> > /usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h>
> > can be included directly."
> >
>
> Thanks for help,
>
> cvibo
>
> *sorry my english

Can you please list the ports that fail to compile?

--

Fredrik Rinnestam
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux

caio bonvenuto 07-07-2012 09:40 PM

dbus problem for compile
 
On Sat, Jul 7, 2012 at 6:14 PM, Fredrik Rinnestam <fredrik@rinnestam.se> wrote:



Can you please list the ports that fail to compile?



yes, port: opt/xchat

and the software Ardour (ardour.org/ that same problem

thanks

_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux

Juergen Daubert 07-08-2012 08:00 AM

dbus problem for compile
 
On Sat, Jul 07, 2012 at 03:28:27PM +0000, caio bonvenuto wrote:
> Hey guys, I have a problem for make packages, the compilation. I have this
> problem in several packages...
>
> one example:
>
> In file included from ../xchat.h:3:0,
> ���������������� from dbus-client.c:24:
> /usr/include/glib-2.0/glib/gslist.h:28:2: error: #error "Only <glib.h>
> can be included directly."

that's is not related to dbus but to our new glib. Attached patch for
xchat should fix it. You can do a similar approach for other gtk/glib
programs.


Greetings
Juergen

diff --git a/xchat/Pkgfile b/xchat/Pkgfile
index ba1cba5..d49c39d 100644
--- a/xchat/Pkgfile
+++ b/xchat/Pkgfile
@@ -6,16 +6,16 @@

name=xchat
version=2.8.8
-release=1
+release=2
source=(http://www.xchat.org/files/source/2.8/$name-$version.tar.xz)

build() {
cd $name-$version
+ sed -i 's|<glib/.*.h>|<glib.h>|' src/common/{servlist.c,text.c,util.c,xchat.h}
./configure --prefix=/usr
--enable-openssl
--enable-perl
--enable-ipv6
- --disable-gnome
--disable-textfe
--disable-python
--disable-tcl
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux

caio bonvenuto 07-08-2012 04:23 PM

dbus problem for compile
 
On Sun, Jul 8, 2012 at 8:00 AM, Juergen Daubert <jue@jue.li> wrote:



that's is not related to dbus but to our new glib. Attached patch for

xchat should fix it. You can do a similar approach for other gtk/glib

programs.





Greetings

Juergen


Thanks for the patch. Simple and Worked. I'm learning. I go apply a similar in /opt/hal too.

Greetings
Caio


_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux


All times are GMT. The time now is 10:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.