You are not logged in.

#1 2012-05-08 14:59:00

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Building pidgin with meanwhile support from ABS failing

I've been building pidgin manually from ABS in order to incorporate meanwhile support for use on IBM Lotus Sametime. This entails editing pidgin's PKGBUILD and removing this line:

 --disable-meanwhile \

Then I simply run `makepkg -si`. Recently (last week and after trying again today after a fresh pacman -Syu), I get this fail in the build:

Making all in sametime
make[5]: Entering directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4/libpurple/protocols/sametime'
  CC     libsametime_la-sametime.lo
In file included from /usr/include/meanwhile/mw_srvc_conf.h:25:0,
                 from sametime.c:57:
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/meanwhile/mw_srvc_place.h:25:0,
                 from sametime.c:60:
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/meanwhile/mw_srvc_resolve.h:26:0,
                 from sametime.c:61:
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/meanwhile/mw_st_list.h:32:0,
                 from sametime.c:63:
/usr/include/glib-2.0/glib/glist.h:28:2: error: #error "Only <glib.h> can be included directly."
sametime.c: In function 'blist_merge':
sametime.c:989:16: warning: variable 'buddy' set but not used [-Wunused-but-set-variable]
sametime.c: In function 'blist_node_menu_cb':
sametime.c:1340:16: warning: variable 'group' set but not used [-Wunused-but-set-variable]
sametime.c: In function 'mw_conf_peer_joined':
sametime.c:2033:21: warning: variable 'gc' set but not used [-Wunused-but-set-variable]
sametime.c: In function 'mw_conf_peer_parted':
sametime.c:2059:21: warning: variable 'gc' set but not used [-Wunused-but-set-variable]
sametime.c: In function 'mw_place_peerJoined':
sametime.c:3053:21: warning: variable 'gc' set but not used [-Wunused-but-set-variable]
sametime.c: In function 'mw_place_peerParted':
sametime.c:3078:21: warning: variable 'gc' set but not used [-Wunused-but-set-variable]
make[5]: *** [libsametime_la-sametime.lo] Error 1
make[5]: Leaving directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4/libpurple/protocols/sametime'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4/libpurple/protocols'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4/libpurple'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4/libpurple'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jwhendy/installed/abs/pidgin/src/pidgin-2.10.4'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

If I build with --disable-meanwhile present, it succeeds. Something is occurring when I try to being in meanwhile support, which I believe entails libpurple integration.

Any suggestions on debugging further?

Offline

#2 2012-05-08 18:38:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Building pidgin with meanwhile support from ABS failing

You need to fix the source files with something like

sed -i 's|glib/*.h|glib.h|' src/*

There have been several similar errrors with builds of other packages.  I don't know the details, but I gather glib has been revised  such that there is now a single unified glib.h that should be included in source files.

EDIT: you'll have to edit the target files in the sed command as there is a deeper tree structure than src/*, but I'll let you sort that out.  Once done, this sed command can be added to the PKGBUILD.

Last edited by Trilby (2012-05-08 18:39:40)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB