sm00th / bitlbee-discord

Bitlbee plugin for Discord (http://discordapp.com)
GNU General Public License v2.0
290 stars 27 forks source link

Cannot build on Debian 8 #8

Closed chinese-soup closed 8 years ago

chinese-soup commented 8 years ago

Hello, I am running Debian jessie and I am running into an error upon executing make. Sysinfo:

$ uname -a
Linux gan 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) i686 GNU/Linux
$ cat /etc/issue.net
Debian GNU/Linux 8

I got bitlbee and bitlbee-dev from the official Debian jessie repositories:

$ sudo bitlbee -V
BitlBee 3.2.2-2
API version 030202

Compiled libwebsockets yesterday from the git version:

jidori@gan:~/bitlbee-discord$ libwebsockets-test-echo
[1451753072:2612] NOTICE: Built to support client operations
[1451753072:2618] NOTICE: Built to support server operations
lwsts[23599]: libwebsockets echo test - (C) Copyright 2010-2015 Andy Green <andy@warmcat.com> - licensed under LGPL2.1
lwsts[23599]: Running in server mode
lwsts[23599]: Initial logging level 7
lwsts[23599]: Libwebsockets version: 1.6.0 0c7e5a9

However, whenever I try to build bitlbee-discord itself I cannot even get past the first file:

$ LC_ALL="en_US.UTF-8" make
gcc `pkg-config --cflags bitlbee` -fPIC -Wall -g3 -ggdb -O0 -std=gnu99 -c -o discord.o src/discord.c
src/discord.c: In function 'init_plugin':
src/discord.c:100:5: error: unknown field 'handle_is_self' specified in initializer
     .handle_is_self = discord_is_self
     ^
src/discord.c:101:3: warning: initialization from incompatible pointer type
   };
   ^
src/discord.c:101:3: warning: (near initialization for 'pp.auth_allow')
Makefile:13: recipe for target 'discord.o' failed
make: *** [discord.o] Error 1

Might this be because the bitlbee version in jessie repos is too old?

sm00th commented 8 years ago

Might this be because the bitlbee version in jessie repos is too old?

Looks like it, please use bitlbee's own debian repos to update your bitlbee and try again.

chinese-soup commented 8 years ago

Thank you, sorry for that, works flawlessly now, keep up the good work.