LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Building xchat from Slack 14 source and slackbuild gives error (http://www.linuxquestions.org/questions/slackware-14/building-xchat-from-slack-14-source-and-slackbuild-gives-error-4175441247/)

clifford227 12-13-2012 12:30 AM

Building xchat from Slack 14 source and slackbuild gives error
 
Hello,

Im trying to build a new Xchat package from Xchat source and its slackbuild from the Slackware 14 source dvd, but when I run the slackbuild I get these errors:


Code:

make[5]: *** [dbus-client.o] Error 1
make[5]: *** Waiting for unfinished jobs....
libtool: link: gcc -O2 -march=i486 -mtune=i686 -Wall -pipe -g -Wno-pointer-sign -funsigned-char -o example example.o -pthread -Wl,--export-dynamic -pthread  /usr/lib/libdbus-glib-1.so /usr/lib/libgio-2.0.so /usr/lib/libgmodule-2.0.so -lz -lresolv /usr/lib/libdbus-1.so /usr/lib/libgobject-2.0.so /usr/lib/libffi.so /usr/lib/libgthread-2.0.so /usr/lib/libX11.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lssl -lcrypto -ldl /usr/lib/libglib-2.0.so -lpthread -lrt -pthread
make[5]: Leaving directory `/tmp/xchat-2.8.8/src/common/dbus'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/xchat-2.8.8/src/common/dbus'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/xchat-2.8.8/src/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/xchat-2.8.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/xchat-2.8.8'
make: *** [all] Error 2
make  all-recursive
make[1]: Entering directory `/tmp/xchat-2.8.8'
Making all in po
make[2]: Entering directory `/tmp/xchat-2.8.8/po'
make[2]: Leaving directory `/tmp/xchat-2.8.8/po'
Making all in intl
make[2]: Entering directory `/tmp/xchat-2.8.8/intl
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/xchat-2.8.8/intl'
Making all in src
make[2]: Entering directory `/tmp/xchat-2.8.8/src'
Making all in pixmaps
make[3]: Entering directory `/tmp/xchat-2.8.8/src/pixmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/xchat-2.8.8/src/pixmaps'
Making all in common
make[3]: Entering directory `/tmp/xchat-2.8.8/src/common'
Making all in dbus
make[4]: Entering directory `/tmp/xchat-2.8.8/src/common/dbus'
make  all-am
make[5]: Entering directory `/tmp/xchat-2.8.8/src/common/dbus'
depbase=`echo dbus-client.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include      -O2 -march=i486 -mtune=i686 -Wall -pipe -g -Wno-pointer-sign -funsigned-char    -MT dbus-client.o -MD -MP -MF $depbase.Tpo -c -o dbus-client.o dbus-client.c &&\
mv -f $depbase.Tpo $depbase.Po
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."
make[5]: *** [dbus-client.o] Error 1
make[5]: Leaving directory `/tmp/xchat-2.8.8/src/common/dbus'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/xchat-2.8.8/src/common/dbus'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/xchat-2.8.8/src/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/xchat-2.8.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/xchat-2.8.8'
make: *** [all] Error 2


willysr 12-13-2012 02:25 AM

That package hasn't been updated since 2010, so i'm guessing it would need a patch if you want to rebuild it again
Something like this one from ArchLinux

tuxbg 12-13-2012 05:27 AM

You need to do this.
Tar xchat then go to xchat-2.8.8 dir and do this

sed -i 's|<glib/.*\.h>|<glib.h>|' src/common/{servlist.c,text.c,util.c,xchat.h}

and then put configure options from slackbuild to build the package

clifford227 12-13-2012 07:05 AM

Thanks :)

tuxbg 12-13-2012 07:41 AM

Quote:

Originally Posted by clifford227 (Post 4848442)
Thanks :)

You're welcome


All times are GMT -5. The time now is 02:20 PM.