[asterisk-bugs] [Asterisk 0018139]: Can't compile cdr_mysql addon
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Oct 14 23:55:32 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18139
======================================================================
Reported By: mich
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18139
Category: Addons/cdr_addon_mysql
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: SVN
JIRA: SWP-2419
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-10-14 03:54 CDT
Last Modified: 2010-10-14 23:55 CDT
======================================================================
Summary: Can't compile cdr_mysql addon
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
======================================================================
----------------------------------------------------------------------
(0128084) mich (reporter) - 2010-10-14 23:55
https://issues.asterisk.org/view.php?id=18139#c128084
----------------------------------------------------------------------
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'
Issue History
Date Modified Username Field Change
======================================================================
2010-10-14 23:55 mich Note Added: 0128084
======================================================================
More information about the asterisk-bugs
mailing list