[Asterisk-Dev] Current HEAD: res_config_odbc.c compilation failure

Patrick asterisk at puzzled.xs4all.nl
Tue Nov 8 06:55:58 MST 2005


Hi all,

I hope this is not considered a -users question. If so please accept my
apologies for the noise. Compilation of cvs HEAD from about two hours
ago fails in res_config_odbc.c with the following messages:

gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT
-D_GNU_SOURCE  -O6 -march=k8 -DZAPTEL_OPTIMIZATIONS         -m64
-fomit-frame-pointer   -DZAPATA_MOH -DOPENSSL_NO_KRB5 -fPIC   -c -o
res_config_odbc.o res_config_odbc.c
In file included from res_config_odbc.c:36:
../include/asterisk/file.h:52: error: syntax error before '*' token
../include/asterisk/file.h:52: warning: function declaration isn't a
prototype
../include/asterisk/file.h:53: error: syntax error before '*' token
../include/asterisk/file.h:53: warning: function declaration isn't a
prototype
res_config_odbc.c: In function 'realtime_odbc':
res_config_odbc.c:98: warning: implicit declaration of function
'snprintf'
res_config_odbc.c:98: warning: incompatible implicit declaration of
built-in function 'snprintf'
res_config_odbc.c:105: warning: pointer targets in passing argument 2 of
'SQLPrepare' differ in signedness
res_config_odbc.c:149: warning: pointer targets in passing argument 3 of
'SQLDescribeCol' differ in signedness
res_config_odbc.c: In function 'realtime_multi_odbc':
res_config_odbc.c:242: warning: incompatible implicit declaration of
built-in function 'snprintf'
res_config_odbc.c:251: warning: pointer targets in passing argument 2 of
'SQLPrepare' differ in signedness
res_config_odbc.c:303: warning: pointer targets in passing argument 3 of
'SQLDescribeCol' differ in signedness
res_config_odbc.c: In function 'update_odbc':
res_config_odbc.c:370: warning: incompatible implicit declaration of
built-in function 'snprintf'
res_config_odbc.c:378: warning: pointer targets in passing argument 2 of
'SQLPrepare' differ in signedness
res_config_odbc.c: In function 'config_odbc':
res_config_odbc.c:448: warning: incompatible implicit declaration of
built-in function 'snprintf'
make[1]: *** [res_config_odbc.o] Error 1

Any suggestions for a quick fix?

Thanks and regards,
Patrick




More information about the asterisk-dev mailing list