sm00th / bitlbee-discord

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

Incompatible with latest Git commit of libwebsockets. #3

Closed Ranndom closed 8 years ago

Ranndom commented 8 years ago

After installing libwebsockets-git from the Arch Linux AUR using the latest Git commit, trying to make bitlbee-discord gives the following error:

gcc `pkg-config --cflags bitlbee` -fPIC -Wall -g3 -ggdb -O0 -std=gnu99 -c -o discord.o src/discord.c
gcc `pkg-config --cflags bitlbee` -fPIC -Wall -g3 -ggdb -O0 -std=gnu99 -c -o discord-http.o src/discord-http.c
gcc `pkg-config --cflags bitlbee` -fPIC -Wall -g3 -ggdb -O0 -std=gnu99 -c -o discord-websockets.o src/discord-websockets.c
src/discord-websockets.c: In function ‘discord_ws_callback’:
src/discord-websockets.c:107:45: error: dereferencing pointer to incomplete type ‘struct libwebsocket_pollargs’
         dd->main_loop_id = b_input_add(pargs->fd, B_EV_IO_READ,
                                             ^
src/discord-websockets.c:119:18: error: dereferencing pointer to incomplete type ‘struct libwebsocket_pollargs’
         if (pargs->events & POLLIN) {
                  ^
Makefile:13: recipe for target 'discord-websockets.o' failed
make: *** [discord-websockets.o] Error 1

Compiling using libwebsockets v1.5-chrome47-firefox41 worked.

sm00th commented 8 years ago

Fixed, thank you.