[Asterisk-Users] 1.2 won't compile: res_config_odbc.c

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Thu Nov 17 15:09:40 MST 2005


Hi there,

so far I didn't succeed in getting 1.2 compiled on a RH72 System (with 
gcc 3.0.4). I'd appreciate any tips... ;->

Cheers, Philipp


gcc -shared -Xlinker -x -o res_features.so  res_features.o
gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-
declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -
march=i686 -DZAPTEL_OPTIMIZATIONS         -fomit-frame-pointer   -
DZAPATA_MOH -DOPENSSL_NO_KRB5 -fPIC   -c -o res_config_odbc.o 
res_config_odbc.c
In file included from ../include/asterisk/utils.h:35,
                 from ../include/asterisk/cdr.h:48,
                 from ../include/asterisk/channel.h:114,
                 from ../include/asterisk/file.h:30,
                 from res_config_odbc.c:37:
../include/asterisk/strings.h:34: warning: `always_inline' attribute 
directive ignored
In file included from ../include/asterisk/cdr.h:48,
                 from ../include/asterisk/channel.h:114,
                 from ../include/asterisk/file.h:30,
                 from res_config_odbc.c:37:
../include/asterisk/utils.h:173: warning: `always_inline' attribute 
directive ignored
../include/asterisk/utils.h:186: warning: `always_inline' attribute 
directive ignored
../include/asterisk/utils.h:199: warning: `always_inline' attribute 
directive ignored
../include/asterisk/utils.h:217: warning: `always_inline' attribute 
directive ignored
res_config_odbc.c: In function `realtime_odbc':
res_config_odbc.c:68: `SQLULEN' undeclared (first use in this function)
res_config_odbc.c:68: (Each undeclared identifier is reported only once
res_config_odbc.c:68: for each function it appears in.)
res_config_odbc.c:68: parse error before "colsize"
res_config_odbc.c:150: `colsize' undeclared (first use in this function)
res_config_odbc.c: In function `realtime_multi_odbc':
res_config_odbc.c:208: `SQLULEN' undeclared (first use in this function)
res_config_odbc.c:208: parse error before "colsize"
res_config_odbc.c:304: `colsize' undeclared (first use in this function)
res_config_odbc.c: In function `update_odbc':
res_config_odbc.c:344: `SQLLEN' undeclared (first use in this function)
res_config_odbc.c:344: parse error before "rowcount"
res_config_odbc.c:404: `rowcount' undeclared (first use in this function)
make[1]: *** [res_config_odbc.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.0/res'
make: *** [subdirs] Error 1





More information about the asterisk-users mailing list