-
Notifications
You must be signed in to change notification settings - Fork 19
Cannot compile: “./.libs/libelemental.so: undefined reference to `rb_set_inherit'” #203
Comments
Strange. try this: $ make clean
$ make I think the parallel build might be interfering with it? |
No change. |
Do you have libratbox installed? rb_set_inherit is only in our branch |
No. |
That is to say do you have the version from debian installed, i'm not sure if they package it separately |
It is packaged as ircd-ratbox (according to Debian bug 485703). And I don't have it installed. |
current git head compiles fine in a clean container, which sources are you using? |
git head too |
double check |
confirmed. I think the work is on my side now. |
I set up a clean env: $ sudo debootstrap jessie chroot/
$ sudo chroot chroot/
# apt-get install libssl-dev autoconf autoconf-archive build-essential flex bison libsqlite3-dev automake libtool
# apt-get install git
# export LANG=C
# export LC_CTYPE=C Then, I can't even # git clone https://github.com/Elemental-IRCd/elemental-ircd.git
# cd elemental-ircd/
# ./autogen.sh
# ./configure
[…]
./configure: line 15312: syntax error near unexpected token `SQLITE,'
./configure: line 15312: `PKG_CHECK_MODULES(SQLITE, sqlite3 > 3.0.0)' Of course libsqlite3-dev is installed: # apt-cache show libsqlite3-dev
Package: libsqlite3-dev
Source: sqlite3
Version: 3.8.7.1-1+deb8u1
[…] |
you need pkg-config, it provides the PKG_CHECK_MODULES macro |
I found the issue. As you said, it's because I have another version of libratbox installed. But I did not find it at first, because it is in $PREFIX/lib/libratbox.so, and usually, applications do not look at $PREFIX outside the Feel free to close this if you don't consider it as an issue. |
This is really interesting. It may not be a direct bug in Elemental (a side effect of the circumstance of already having ratbox installed in $PREFIX), but it's probably indirectly caused by #94 I think. |
#94 would work around the issue, i don't think it should be searching the system path at all though, long as we have our own libratbox |
almost looks like a libtool bug |
Hmm, yeah. Makes sense. Is there another thing we can do to make elemental's libratbox incompatible with ratbox's? I'm not the most familiar with libtool but there has to be something that can be rejiggered around. |
ld version:
gcc version:
OS: Debian 8.2
The text was updated successfully, but these errors were encountered: