[Asterisk-Users] compile error with postgres and voicemail

Sebastian Kühner skuehner at veraza.com
Mon Sep 12 13:49:08 MST 2005


Hello,

I'm using asterisk-1.0.9 and wanted to compile it with database support in
voicemail (postgres).

I made the following changes in the /apps/Makefile:

USE_MYSQL_VM_INTERFACE=0
USE_POSTGRES_VM_INTERFACE=1

Without theese changes asterisk compiles perfectly, but after setting the
postgres variable on 1 (that's what I have to do or not?), asterisk
terminates with the following compile error after make:

[...]
app_voicemail.c:460: warning: assignment makes pointer from integer without
a cast
app_voicemail.c:461: warning: implicit declaration of function `PQgetisnull'
app_voicemail.c:462: warning: implicit declaration of function `PQgetvalue'
app_voicemail.c:462: warning: passing arg 2 of `__builtin_strncpy' makes
pointer from integer without a cast
app_voicemail.c:464: warning: passing arg 2 of `__builtin_strncpy' makes
pointer from integer without a cast
app_voicemail.c:466: warning: passing arg 2 of `__builtin_strncpy' makes
pointer from integer without a cast
app_voicemail.c:468: warning: passing arg 2 of `__builtin_strncpy' makes
pointer from integer without a cast
app_voicemail.c:470: warning: passing arg 2 of `__builtin_strncpy' makes
pointer from integer without a cast
app_voicemail.c:480: warning: format argument is not a pointer (arg 6)
app_voicemail.c: At top level:
app_voicemail.c:508: warning: `reset_user_pw' defined but not used
app_voicemail.c:3754: warning: `append_mailbox' defined but not used
make[1]: *** [app_voicemail.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.0.9/apps'
make: *** [subdirs] Error 1

Can anyone give me a hint?

Thanks!

Sebastian




More information about the asterisk-users mailing list