Compiling kopano-core undefined symbol for vmime
-
I am trying to compile kopano-core on Ubuntu 20.04.
I verified no libvmime was installed before:
> sudo find /usr -iname libvmime*
These are the steps I’ve done on a clean Ubuntu install.
> sudo apt update > sudo apt install -y mysql-server apache2 php php-dev icu-devtools w3m poppler-utils postfix build-essential pkg-config autoconf libtool libhx-dev libxml2-dev libmysqlclient-dev libical-dev libjsoncpp-dev uuid-dev libpython3-dev libncurses-dev libtinfo-dev cmake libgsasl7-dev doxygen libgnutls28-dev swig3.0 gsoap libgsoap-dev libtcmalloc-minimal4 google-perftools > sudo reboot
> git clone https://github.com/Kopano-dev/vmime.git > cd vmime > cmake -G "Unix Makefiles" > make -j$(nproc) > sudo make install
> git clone https://stash.kopano.io/scm/kc/kopanocore.git > cd kopanocore > export PYTHON=/usr/bin/python3 > ./bootstrap.sh > ./configure --enable-epoll \ --enable-python \ --disable-static \ --sbindir=/usr/sbin \ --with-quotatemplate-prefix=/etc/kopano/quotamail > make -j$(nproc)
After compiling for a while this error appears:
.... CXXLD mapi.la GEN kopano-dbadm.ldx GEN kopano-server.ldx GEN libkcinetmapi.ldd undefined symbol: typeinfo for vmime::utility::stream (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::utility::stream::getBlockSize() (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::context (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::object (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::context::operator=(vmime::context const&) (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::net::transport (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::net::transport (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::net::transport::getType() const (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::net::transport::send(std::shared_ptr<vmime::message> const&, vmime::utility::progressListener*) (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::net::transport::send(std::shared_ptr<vmime::message> const&, vmime::mailbox const&, vmime::mailboxList const&, vmime::utility::progressListener*, vmime::mailbox const&) (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::headerFieldValue (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::headerFieldValue (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::parameterizedHeaderField (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::message (./.libs/libkcinetmapi.so.0) undefined symbol: typeinfo for vmime::defaultAttachment (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::message::generate[abi:cxx11](unsigned long, unsigned long) const (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::component::generate(vmime::utility::outputStream&, unsigned long, unsigned long*) const (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::component::generate(vmime::generationContext const&, vmime::utility::outputStream&, unsigned long, unsigned long*) const (./.libs/libkcinetmapi.so.0) undefined symbol: vmime::bodyPart::clone() const (./.libs/libkcinetmapi.so.0) ...
And lots of similar messages follow.
Does anyone have an idea what I’m doing wrong here?
Thanks,
Joep