odbc compilation problems

Comment on Asterisk app_dbodbc
lhgomes
Joined: Fri 17 of Feb, 2006

Re: odbc compilation problems

Posted:Fri 17 of Feb, 2006 (20:00 UTC)
make & make install must be run from asterisk directory, not apps. See: http://lists.digium.com/pipermail/asterisk-dev/2004-June/004809.html
lhgomes
Joined: Fri 17 of Feb, 2006

Re: odbc compilation problems

Posted:Fri 17 of Feb, 2006 (20:00 UTC)
make & make install must be run from asterisk directory, not apps. See: http://lists.digium.com/pipermail/asterisk-dev/2004-June/004809.html
Anonymous

Re: odbc compilation problems

Posted:Thu 02 of Dec, 2004 (19:35 UTC)
the file is out of date. on line 271, where chan->callerid is, replace callerid with cid.cid_num
bais
Joined: Sun 24 of Oct, 2004

odbc compilation problems

Posted:Sun 24 of Oct, 2004 (19:35 UTC)
RH 9.0 apt-get update & upgrade 10 minutes ago

packages installed:

#rpm -qa | grep ODBC
MyODBC-2.50.39-11
unixODBC-2.2.3-6
unixODBC-devel-2.2.3-6


result of compilation:
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686     -DASTERISK_VERSION=\"CVS-HEAD-10/25/04-00:58:46\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      -fPIC   -c -o app_dbodbc.o app_dbodbc.c
app_dbodbc.c: In function `odbcget_exec':
app_dbodbc.c:271: structure has no member named `callerid'
make[1]: *** [app_dbodbc.o] Error 1
make[1]: Leaving directory `/root/asterisk/apps'
make: *** [subdirs] Error 1
for x in res channels pbx apps codecs formats agi cdr astman stdtime; do make -C $x depend || exit 1 ; done
make[1]: Entering directory `/root/asterisk/res'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/res'
make[1]: Entering directory `/root/asterisk/channels'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/channels'
make[1]: Entering directory `/root/asterisk/pbx'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/pbx'
make[1]: Entering directory `/root/asterisk/apps'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/apps'
make[1]: Entering directory `/root/asterisk/codecs'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/codecs'
make[1]: Entering directory `/root/asterisk/formats'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/formats'
make[1]: Entering directory `/root/asterisk/agi'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/agi'
make[1]: Entering directory `/root/asterisk/cdr'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/cdr'
make[1]: Entering directory `/root/asterisk/astman'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/astman'
make[1]: Entering directory `/root/asterisk/stdtime'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/root/asterisk/stdtime'
cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
make -C editline libedit.a
make[1]: Entering directory `/root/asterisk/editline'
make[1]: `libedit.a' is up to date.
make[1]: Leaving directory `/root/asterisk/editline'
make[1]: Entering directory `/root/asterisk/db1-ast'
make[1]: `libdb1.a' is up to date.
make[1]: Leaving directory `/root/asterisk/db1-ast'
make[1]: Entering directory `/root/asterisk/stdtime'
make[1]: `libtime.a' is up to date.
make[1]: Leaving directory `/root/asterisk/stdtime'
if [ -d CVS ] && ! [ -f .version ]; then echo CVS-HEAD-10/25/04-00:58:46 > .version; fi
for x in res channels pbx apps codecs formats agi cdr astman stdtime; do make -C $x || exit 1 ; done
make[1]: Entering directory `/root/asterisk/res'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/asterisk/res'
make[1]: Entering directory `/root/asterisk/channels'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/asterisk/channels'
make[1]: Entering directory `/root/asterisk/pbx'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/asterisk/pbx'
make[1]: Entering directory `/root/asterisk/apps'
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686     -DASTERISK_VERSION=\"CVS-HEAD-10/25/04-00:58:46\" -DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      -fPIC   -c -o app_dbodbc.o app_dbodbc.c
app_dbodbc.c: In function `odbcget_exec':
app_dbodbc.c:271: structure has no member named `callerid'
make[1]: *** [app_dbodbc.o] Error 1
make[1]: Leaving directory `/root/asterisk/apps'
make: *** [subdirs] Error 1
--------------------------------------------


some advices?
(:mrgreen:)