Displaying 6 results from an estimated 6 matches for "sql_init".
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
...4.000000000 -0600
--- app_voicemail.c.new 2004-06-23 07:55:47.000000000 -0600
***************
*** 49,61 ****
/*
* PostgreSQL routines written by Otmar Lendl <lendl@nic.at>
*/
! #include <postgresql/libpq-fe.h>
#define USESQLVM 1
#endif
#ifndef USESQLVM
static inline int sql_init(void) { return 0; }
static inline void sql_close(void) { }
#endif
#include <pthread.h>
--- 49,64 ----
/*
* PostgreSQL routines written by Otmar Lendl <lendl@nic.at>
*/
! #include <libpq-fe.h>
#define USESQLVM 1
#endif
+ static int append_mailbox(char *, char *,...
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
...2.000000000 -0600
--- app_voicemail.c.new 2004-06-23 07:29:08.000000000 -0600
***************
*** 49,61 ****
/*
* PostgreSQL routines written by Otmar Lendl <lendl@nic.at>
*/
! #include <postgresql/libpq-fe.h>
#define USESQLVM 1
#endif
#ifndef USESQLVM
static inline int sql_init(void) { return 0; }
static inline void sql_close(void) { }
#endif
#include <pthread.h>
--- 49,64 ----
/*
* PostgreSQL routines written by Otmar Lendl <lendl@nic.at>
*/
! #include <libpq-fe.h>
#define USESQLVM 1
#endif
+ static int append_mailbox(char *, char *,...
2008 Apr 19
1
using mysql from within a plugin
Hello,
I'm trying to access a mysql database in a plugin.
-What special compiler flags do I need? I discovered that when I don't
explicitly link lib-sql/libsql.a in, then I get an undefind symbol error
about sql_init when loading the plugin.
Shouldn't the imap process itself have sql support linked in, rather
than each plugin?
-It appears that I need to call sql_drivers_init() and
sql_drivers_register_all() before sql_init.
Again, shouldn't the imap process do this, instead of each plugin? It
should...
2010 May 05
1
2.0 FTBFS since sqlpool changes when --with-sql=plugin is used
...ng-declarations -Wpointer-arith -Wchar-
subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -o
.libs/checkpassword-reply checkpassword-reply.o ../../src/lib-
dovecot/.libs/libdovecot.so -ldl -lrt -Wl,-rpath -Wl,/usr/lib64/dovecot
../../src/lib-sql/.libs/libsql.a(sql-api.o): In function `sql_init':
/home/mhlavink/cvsf/dovecot/devel/dovecot-2.0.beta4/src/lib-sql/sql-api.c:70:
undefined reference to `driver_sqlpool_init'
Regards,
Michal Hlavinka
2010 Sep 02
1
LMTP plugin with MySQL query
Hello,
I want to create a plugin to dovecot 2.0.1, to call a on the deliver action.
My plugin work even if I include other libs like mysql or wathever
I tried to use the "sql-api.h" (lib-sql), but at runtime, I have :
"undefined symbol: sql_init", "Fatal: Couldn't load required plugins"
Is it possible to use lib-sql api or mysql libs in a plugin ?
I've tried with lda or lmtp plugin with the same result...
Any idea ?
Charly.
2010 Nov 29
1
SQL insert?
Hi,
I want to log some informations about a mail in a mysql database when the
mail is saved to inbox (for a groupware). I use Dovecot 1.2.16 and the log
message "msgid=<xxx>: saved mail to inbox" is generated in deliver.c. I
find all the needed data in that file. But I'am not sure how to use the
functions in sql-api.h or sql-api-private.h to send a simple SQL insert
statement