[Home]

Summary:ASTERISK-16810: Can't compile cdr_mysql addon
Reporter:mich (mich)Labels:
Date Opened:2010-10-14 03:54:00Date Closed:2011-06-07 14:04:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Addons/cdr_mysql
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:My mysql locates in custom dir but i hava linked mysql_config to default location
So during configure:
checking for mysql_config... /usr/bin/mysql_config - OK
In makeopt MYSQLCLIENT_INCLUDE also presents
But if i run make addons:
[CC] app_mysql.c -> app_mysql.o
app_mysql.c:33:25: fatal error: mysql/mysql.h: No such file or directory
So -I not included during compile
Comments:By: Leif Madsen (lmadsen) 2010-10-14 14:29:40

I think we'll need a copy of the config.log file as well.

By: Leif Madsen (lmadsen) 2010-10-14 14:38:33

Wait, did you install the mysql-dev package?

By: mich (mich) 2010-10-14 23:50:58

I compiled from sources. Lots of applications is compiled with it. So yes.
locate mysql.h
/opt/mysql/include/mysql.h

By: mich (mich) 2010-10-14 23:55:32

cat config.log|grep mysql
 $ ./configure --with-mysqlclient=/opt/mysql/include/mysql
configure:19818: checking for mysql_config
configure:19837: found /usr/bin/mysql_config
configure:19849: result: /usr/bin/mysql_config
ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT=/usr/bin/mysql_config
CONFIG_MYSQLCLIENT='/usr/bin/mysql_config'
MYSQLCLIENT_DIR='/opt/mysql/include/mysql'
MYSQLCLIENT_INCLUDE='-I/opt/mysql/include/mysql -align -falign-functions=16 -unroll -unroll-aggressive -opt-prefetch=4 -vec-guard-write -vec-threshold10 -fp-model fast=2 -xSSE4.2 -axSSE4.2 -override-limits  -g'
MYSQLCLIENT_LIB='-L/opt/mysql/lib -lmysqlclient -lpthread -lz -lrt'

By: Jason Parker (jparker) 2010-10-15 11:39:19

Have you tried ./configure --with-mysql=/opt/mysql/ ?

Adding the include dir is going to mess things up.

By: mich (mich) 2010-10-15 23:28:11

Ok. make addons runs ok, but addons folder not compiled. How i compile addons? In readme is nothing about it.

By: Tilghman Lesher (tilghman) 2010-10-18 01:00:12

'make menuselect' should bring up a menu as to what modules are compiled and which options are enabled.  This is all documented in the README file.

By: Leif Madsen (lmadsen) 2010-11-04 13:51:24

If you are still having issues please use the asterisk-users mailing list.