Compiling core from source Ubuntu 16.04

Hi together.

I am still running a 7.1 Zarafa installation for my own mails only. I want to upgrade of course.
So I started playing around with some versions and options.

I am a professional java developer and not that strong on compiling and installing those linux dependencies.
So reading result in question marks regarding those optional components and if I need them on my ubuntu 64 bit version (and which actual package must be installed)

So my question is:
Can someone simply copy paste the commands here to be able to build the core?
Lets assume I start with a fresh ubuntu 16.04 64 bit virtual machine and I have checkout the source from git.
I think the steps are like this…

sudo apt-get install google-perftools aptitude autoconf automake bison ..... ??? (list of dependencies for example g++-5? or which version)
# to compile:
./configure --whatever [what is needed here?]
make install

any suggestions for a quick success?
(and no… the downloadable packages are nice but as a developer I want to be able to build it myself… otherwise future contribution is quiet hard :-) )

Greets Markus

Which just notes:

./configure --enable-epoll \
            --enable-unicode \
            --enable-python \
            --enable-swig \
            --enable-tcmalloc \
            --disable-static \
            --disable-testtools \
            --with-userscript-prefix=/etc/kopano/userscripts \
make install

and does not answer the ubuntu 16.04 required (optional) libraries which should be used as well as does not state anything about the options mentioned in the install.txt like:

–enable-epoll: use epoll(2) instead of poll(2) on Linux
–with-asan: shorthand for enabling Address Sanitizer
–with-ubsan: shorthand for enabling UB Sanitizer
–enable-debug: adds -DDEBUG to set some very unusual debug values.
This does not enable CXXFLAGS=-ggdb3 which is separate!
–enable-release: adds -O2 -fno-strict-aliasing and disables asserts.

It also does not advice me what actual dependencies I should install on that system.
So what is actually a “perfect” starting configuration I can play with. :-)

So I am a bit further.

  • I checked out the 8.4 branch and checked the dependencies document
  • I checked the libraries and versions via ldconfig -v | grep <libname>
  • I installed and/or checked the installed versions
    This installed the missing once
    sudo apt-get install g++ binutils pkg-config gsoap openssl swig2.0 zlibc google-perftools

But when I start autoconf the result is:

mclu@ubuntu:~/compile/kopanocore$ autoconf error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation. error: possibly undefined macro: AC_SUBST error: possibly undefined macro: AC_DISABLE_STATIC error: possibly undefined macro: AC_PROG_LIBTOOL error: possibly undefined macro: AM_PROG_CC_C_O error: possibly undefined macro: AC_MSG_RESULT error: possibly undefined macro: AC_MSG_ERROR error: possibly undefined macro: AM_CONDITIONAL error: possibly undefined macro: AC_CHECK_LIB error: possibly undefined macro: AM_PATH_PYTHON

What I do wrong?

Sounds like you didn’t run aclocal, before.

core kc-git-master
webapp git-master
z-push 2.4.1beta0+0
CentOS 6.9
PHP 7.1.15 (fpm-fcgi)
Python 2.6.6

Don’t overthink it:

autoreconf -fi
./configure [--prefix=/home/self or some other place]

Thx to all the hints…
After aclocal and some other package installations i was able to compile the source of 8.4.
I used the commands below.
Remarks and Questions:

  • There is a warning maybe I am missing some dependencies?
    configure: WARNING: unrecognized options: --enable-swig, --enable-tcmalloc, --disable-testtools
  • my compile system and the test machine are 2 different virtual machines. How can I make those *.deb packages after the “make” ?

Sorry for my stupid questions… everything is quiet new here :-)

# steps to compile:
sudo apt-get install autoconf aptitude libtool php-dev g++ binutils pkg-config gsoap openssl swig2.0 zlibc  google-perftools
sudo apt-get install debhelper libical-dev libicu-dev libldap2-dev libmysqlclient-dev libncurses5-dev libncursesw5-dev libssl-dev libxml2-dev  uuid-dev  zlib1g-dev python-dev

./configure --enable-epoll --enable-release --enable-unicode  --enable-python --enable-swig --enable-tcmalloc --disable-static --disable-testtools --with-userscript-prefix=/etc/kopano/userscripts  --with-quotatemplate-prefix=/etc/kopano/quotamail
#failed with an error that is not there 
 autoreconf -i
# now next call works
 ./configure --enable-epoll --enable-release --enable-unicode  --enable-python --enable-swig --enable-tcmalloc --disable-static --disable-testtools --with-userscript-prefix=/etc/kopano/userscripts  --with-quotatemplate-prefix=/etc/kopano/quotamail

# if I add  --with-asan --with-ubsan  the build failed  

@mclu said:

configure: WARNING: unrecognized options:  --enable-swig, --enable-tcmalloc, --disable-testtools

You don’t need that.

make --enable-release
make install 
  • Builds everything incl. php-mapi with default options and for your default php-setup.
  • Installs kopano-core to alternate locations:
    Thus, adjustments to config files might be required.

Read for details on configure-options.

Good luck!

core kc-git-master
webapp git-master
z-push 2.4.1beta0+0
CentOS 6.9
PHP 7.1.15 (fpm-fcgi)
Python 2.6.6

Log in to reply

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.