compiling dovecot fails with poudriere

Hello all,

may I kindly ask for help ? My mail/dovecot fails to compile due to missing libmysqlclient, but I do not understand why. Do you have an idea how this can be fixed ? Did I forget or overlooked something somewhere ?
The port compiled well in the past...
Options for dovecot as well as the poudriere build log is attached.

Thanks a lot.
Vladimir
 

Attachments

  • dovecot-2.3.2.1_1.log.txt
    28.3 KB · Views: 290
  • options.txt
    823 bytes · Views: 264
Many OPTIONS you have set actually does not exist in the PORT. How did you get those, you invented them? :what:

So, we cannot even try to reproduce.
 
Oops. Ok, so I created the up-to-date options for that, but it didn't help. The output is attached.
Btw. I am using mariadb with:
Code:
DEFAULT_VERSIONS= mysql=10.0m
in my /usr/local/etc/poudriere.d/make.conf
 

Attachments

  • dovecot-2.3.2.1_1.log.txt
    28.3 KB · Views: 259
  • options.txt
    792 bytes · Views: 232
Did you recently change the default MySQL? Have you tried doing a clean run? I've had issues before when I was trying a lot of different defaults, at some point things get entangled too much and you need to do a clean build run in order to get everything in line again.
 
How to run a completely clean build ?
poudriere bulk -c {...}

Code:
     -c           Clean all previously built packages and logs.
From poudriere-bulk(8).

Normally Poudriere uses an incremental built, packages that have been previously built will get used to build new things. But sometimes this messes up and the only way to solve it is to start with a fresh build.
 
Instead of building everything I would recommend making a list of packages you actually need and only build those. It's not very useful to build all 34000+ packages (including various flavors of them) if you're only going to use Apache and a few other packages for example.

Just make a list of the things you need and feed that to Poudriere.
 
My fault, you're right ! Omg.... Typo.. Thanks for that.
/usr/local/bin/poudriere bulk -j freebsd_11-2x64 -p HEAD -f /usr/local/etc/poudriere.d/port-list -c
 
So, the clean build ended with the same error.

checking for mysql_init in -lmysqlclient... no
configure: error: Can't build with MySQL support: libmysqlclient not found
 
Odd, I have dovecot with MySQL support too and it builds fine for me. The only difference is that I use MariaDB 10.2.

Some parts of my last build logs:
Code:
=======================<phase: lib-depends    >============================
===>   dovecot-2.3.2.1_1 depends on shared library: libmariadb.so.3 - not found
===>   Installing existing package /packages/All/mariadb102-client-10.2.17.txz
...
===>   dovecot-2.3.2.1_1 depends on shared library: libmariadb.so.3 - found (/usr/local/lib/mysql/libmariadb.so.3)
===>   Returning to build of dovecot-2.3.2.1_1
...

checking for mysql_config... mysql_config
checking for mysql_init in -lmysqlclient... yes
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking for mysql_ssl_set in -lmysqlclient... yes
 
It compiles without a problem with mariadb 10.2...
So this seems to be the solution, I will upgrade mariadb and that's it.

Thanks for help !
 
Back
Top