The problem seems to be in src/lib-sql/Makefile[.in]
When there are no sql drivers to build, the shell-script for making sql-drivers-register.c fails.
I've managed to get it to build by just having
#include "lib.h" #include "sql-api.h" void sql_drivers_register_all(void) { }
as sql-drivers-register.c
Best Wishes, Chris
P.S. I meant to send the message below to the whole list rather than just Timo. Sorry!
Chris Wakelin wrote:
I'm getting build errors with 1.0-beta3. It looks like something to with the dynamic SQL drivers; presumably needs equivalent of "-I../lib-sql" somewhere!
Configure line was "./configure --prefix=/opt/RDGdovect --with-ssl=openssl", Solaris make, gcc 3.3.2
Best Wishes, Chris
Undefined first referenced symbol in file sql_drivers_register_all main.o ld: fatal: Symbol referencing errors. No output written to dovecot-auth collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `dovecot-auth'
Timo Sirainen wrote:
- Added support for loading SQL drivers dynamically (see INSTALL file for how to build them)
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094