Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on Ubuntu 18.04 #17

Closed
helmut72 opened this issue Mar 3, 2019 · 3 comments
Closed

Can't compile on Ubuntu 18.04 #17

helmut72 opened this issue Mar 3, 2019 · 3 comments

Comments

@helmut72
Copy link

helmut72 commented Mar 3, 2019

I've tried to compile 1.0rc1 and current branch on Ubuntu 18.04, but get this error:

In file included from fts-backend-xapian.cpp:45:0:
fts-backend-xapian-functions.cpp: In function ‘void fts_backend_xapian_oldbox(xapian_fts_backend*)’:
fts-backend-xapian-functions.cpp:471:10: error: ‘gettimeofday’ was not declared in this scope
          gettimeofday(&tp, NULL);
          ^~~~~~~~~~~~

The steps I made:

apt build-dep dovecot-core
apt install git dovecot-dev libicu-dev libxapian-dev
autoreconf -vi
PANDOC=false ./configure --with-dovecot=/usr/lib/dovecot
@helmut72
Copy link
Author

helmut72 commented Mar 3, 2019

Sorry, my fault. I need to use the 2.3 packages from this repository:
https://repo.dovecot.org

Now it compiles.

@helmut72 helmut72 closed this as completed Mar 3, 2019
@grosjo
Copy link
Owner

grosjo commented Mar 4, 2019

I added a call to #include <sys/time.h> in the .cpp file

@helmut72
Copy link
Author

helmut72 commented Mar 4, 2019

Ok, but it was completely my fault: I thought Ubuntu 18.04 comes with Dovecot 2.3, but it's 2.2

After installing Dovecot 2.3, your plugin compiles and it works well. Search is now a lot faster 👍

Thanks for this great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants