[SR-Users] Compiling with db_unixodbc

Grant Bagdasarian gb at cm.nl
Mon Mar 23 16:52:25 CET 2015


Hello,

I'm trying to compile Kamailio 4.2.3 on Debian 7.8 with db_unixodbc but the sql.h file can't be found.

I've used the following command to compile and install unixODBC.

tar -zxvf unixODBC-2.3.2.tar.gz &&
                cd unixODBC-2.3.2 &&
                ./configure --sysconfdir=/etc --prefix=/usr/local/unixODBC --disable-gui &&
                make &&
                make install

#####################: locate odbc_config
/usr/local/unixODBC/bin/odbc_config
/usr/src/unixODBC-2.3.2/exe/odbc_config

#####################: locate sql.h
/usr/local/unixODBC/include/sql.h
/usr/src/kamailio-4.2.3/modules/db_mysql/km_db_mysql.h
/usr/src/kamailio-4.2.3/modules/db_postgres/pg_sql.h
/usr/src/unixODBC-2.3.2/Drivers/Postgre7.1/isql.h
/usr/src/unixODBC-2.3.2/Drivers/nn/isql.h
/usr/src/unixODBC-2.3.2/Drivers/nn/nnsql.h
/usr/src/unixODBC-2.3.2/exe/isql.h
/usr/src/unixODBC-2.3.2/include/sql.h

Kamailio Compile Error
CC (gcc) [M db_unixodbc.so]             connection.o
In file included from connection.c:34:0:
connection.h:42:17: fatal error: sql.h: No such file or directory
compilation terminated.
make[1]: *** [connection.o] Error 1
make: *** [modules] Error 1


Modules.lst
include_modules= carrierroute db_unixodbc dialog_ng lcr tls uuid

Removed these includes from the exclude_modules

Any ideas?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150323/600d50c5/attachment.html>


More information about the sr-users mailing list