[sr-dev] [tracker] Task opened: FreeBSD + mariadb make fail

sip-router bugtracker at sip-router.org
Mon Dec 22 10:53:31 CET 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Victor (coyote) 

Attached to Project - sip-router
Summary - FreeBSD + mariadb make fail
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - 
Operating System - FreeBSD
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - With mariadb + FreeBSD we got error message adout <mysql/mysql.h> not found.

#grep -A2 -B2 sed modules/db_mysql/Makefile

ifneq ($(MYSQLCFG),)
	# use autodetection
	DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I.*\)\/mysql/\1/g' )
	LIBS = $(shell $(MYSQLCFG) --libs)


# mysql_config --include
-I/usr/local/include/mysql -I/usr/local/include/mysql/..

see last path - cause of error.





# mysql_config --include | sed 's/\(-I.*\)\/mysql/\1/g'
-I/usr/local/include/mysql -I/usr/local/include/..

Standart mysql headers in BSD's:

/usr/local/include/mysql/msql.h, #include <mysql/mysql.h>

/usr/local/include/mysql/<mysql/mysql.h> - not found
/usr/local/include/../<mysql/mysql.h> - not found too

For correct this situation need exclude sed at all.

# diff  modules/db_mysql/Makefile{,-} 
24c24
< 	DEFS += $(shell $(MYSQLCFG) --include )
---
> 	DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I.*\)\/mysql/\1/g' )







More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=503

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list