📜 ⬆️ ⬇️

Painful compilation of pidgin-2.7.0 and pidgin-sipe-1.10.0

With some delay I want to share the experience of installing pidgin-2.7.0 from the sources on the Debian Lenny , x86 platform.
I ran into a bug , and the installation was completed successfully only after applying the described patch.

Then the pidgin-sipe-1.10.0 plugin was naughty and didn’t want to compile. Gave out the following error.

/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -Werror -Wall -Wextra -Werror=declaration-after-statement -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\"/usr/share/locale\" -I./../api -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT libsipe_core_purple_la-sipe.lo -MD -MP -MF .deps/libsipe_core_purple_la-sipe.Tpo -c -o libsipe_core_purple_la-sipe.lo `test -f 'sipe.c' || echo './'`sipe.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Werror -Wall -Wextra -Werror=declaration-after-statement -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\"/usr/share/locale\" -I./../api -I/usr/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT libsipe_core_purple_la-sipe.lo -MD -MP -MF .deps/libsipe_core_purple_la-sipe.Tpo -c sipe.c -fPIC -DPIC -o .libs/libsipe_core_purple_la-sipe.o
cc1: warnings being treated as errors
sipe.c:10689: error: missing initializer
sipe.c:10689: error: (near initialization for 'prpl_info.set_public_alias')
make[3]: *** [libsipe_core_purple_la-sipe.lo] Error 1
make[3]: Leaving directory `/tmp/pidgin-sipe-1.10.0/src/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pidgin-sipe-1.10.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pidgin-sipe-1.10.0'
make: *** [all] Error 2

After spending a couple of hours using the scientific method, the necessary combination of running the configure script was found, at which the compilation was successful.
./configure --prefix=/usr --disable-quality-check
I hope this hack will help save time for readers and will be indexed by search engines.

The pidgin-sipe-1.10.0 plugin was worth the pain. Now he successfully and consistently picks up the status of Micorsoft Office Communicator from the MS Exchange calendar.

')

Source: https://habr.com/ru/post/96298/


All Articles