Closed ikwyl6 closed 3 years ago
Does it work better if you pass CFLAGS= instead of CLFAGS=?
./configure
shouldn't have syntax errors so maybe it got corrupted or wasn't built properly in the first place. Try rebuilding it with ./autogen.sh
and make sure there are no errors on that step.
@Alcaro oops.. I thought you were joking but you weren't. my bad! And I did have a typo in there like you pointed out but I did change it on command line so it says CFLAGS (doh!) and it still gives the same error (the two lines that reference line 12538).
@sm00th I get the same error if I use your git repo and run the steps or the arch linux AUR PKGBUILD so I'm at a loss.
I did an ./autogen.sh
and this is output (no errors):
https://pastebin.com/ALpfjxWK
I re-ran ./configure
after re-running autogen.sh and I get the same output (line 12538):
https://pastebin.com/gLBR2A1V
and running it with the CFLAGS and LDFLAGS gives same result.
I will try downloading the v3.6 version of bitlbee and compiling the libraries from that and linking to that directory to see if it works.. unless there are some other ideas...
Make sure you have pkgconfig
installed and that it installed the following file: /usr/share/aclocal/pkg.m4
. And after that is sorted re-do autogen (or start the aur-build from scratch).
looks like I needed pkg-config installed. Re-ran ./autogen.sh
, ./configure
and make
, sudo make install
and it compiled fine. thanks for the help!
just for future.. I don't think bitlbee is still offered by pacman so I had to compile it myself and then had to do the following for bitlbee-discord to get it to compile:
BITLBEE_CFLAGS=-I/home/alarm/dev/bitlbee-aur/bitlbee-3.6 -I/home/alarm/dev/bitlbee-aur/bitlbee-3.6/protocols -I/home/alarm/dev/bitlbee-aur/bitlbee-3.6/lib BITLBEE_LIBS=-L/home/alarm/dev/bitlbee-aur/bitlbee-3.6 ./configure --with-plugindir=/var/lib/bitlbee
Had to use absolute directories for BITLBEE_CFLAGS
and BITLBEE_LIBS
and not relative and where --with-plugindir
was the plugindir that I had used for bitlbee compile time.
On arch
Linux alarm 4.4.238-1-ARCH #1 PREEMPT Sat Oct 3 05:39:18 UTC 2020 armv5tel GNU/Linux
I've installedbitlbee
using pacman with version:I cannot find a
bitlbee-dev
pkg under pacman but there are include and libs under these directories from the bitlbee installation:when I run
./configure
in the bitlbee-discord directory, the script ends with:which tells me it can't find the bitlbee header files (.h) or the libraries. When I pass:
$ CLFAGS=-I/usr/include/bitlbee/ LDFLAGS=-I/usr/lib/bitlbee/ ./configure
I get the same error above (line 12538).Is there a way to pass these directories to the configure script so it finds these headers and libraries?