[Asterisk-Users] CVS won't compile: res_odbc error
Philipp von Klitzing
klitzing at pool.informatik.rwth-aachen.de
Wed Oct 5 13:51:09 MST 2005
Hi there,
admittedly this is a slightly aged RH system. ;-> Yet what I'd like to
know is if this compile problem is clearly due to the gcc version, or if
there is a way to solve the issue...?
Cheers, Philipp
[root at box src]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)
[root at box src]# rpm -q unixODBC
unixODBC-2.0.7-3
[root at box src]# rpm -q unixODBC-devel
unixODBC-devel-2.0.7-3
---beta1---
gcc -shared -Xlinker -x -o res_agi.so res_agi.o
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-
declarations -g -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_odbc.o res_odbc.c
res_odbc.c: In function `odbc_sanity_check':
res_odbc.c:131: `SQLLEN' undeclared (first use in this function)
res_odbc.c:131: (Each undeclared identifier is reported only once
res_odbc.c:131: for each function it appears in.)
res_odbc.c:131: parse error before `rowcount'
res_odbc.c:147: `rowcount' undeclared (first use in this function)
make[1]: *** [res_odbc.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.0-beta1/res'
make: *** [subdirs] Error 1
---CVS---
gcc -shared -Xlinker -x -o res_agi.so res_agi.o
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-
declarations -g -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
res_config_odbc.c: In function `realtime_odbc':
res_config_odbc.c:67: `SQLLEN' undeclared (first use in this function)
res_config_odbc.c:67: (Each undeclared identifier is reported only once
res_config_odbc.c:67: for each function it appears in.)
res_config_odbc.c:67: parse error before `rowcount'
res_config_odbc.c:68: `SQLULEN' undeclared (first use in this function)
res_config_odbc.c:129: `rowcount' undeclared (first use in this function)
res_config_odbc.c:154: `colsize' undeclared (first use in this function)
res_config_odbc.c: In function `realtime_multi_odbc':
res_config_odbc.c:213: `SQLLEN' undeclared (first use in this function)
res_config_odbc.c:213: parse error before `rowcount'
res_config_odbc.c:214: `SQLULEN' undeclared (first use in this function)
res_config_odbc.c:281: `rowcount' undeclared (first use in this function)
res_config_odbc.c:318: `colsize' undeclared (first use in this function)
res_config_odbc.c: In function `update_odbc':
res_config_odbc.c:358: `SQLLEN' undeclared (first use in this function)
res_config_odbc.c:358: parse error before `rowcount'
res_config_odbc.c:418: `rowcount' undeclared (first use in this function)
make[1]: *** [res_config_odbc.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/res'
make: *** [subdirs] Error 1
More information about the asterisk-users
mailing list