Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#503 : FreeBSD + mariadb make fail

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#503 - FreeBSD + mariadb make fail

Attached to Project: sip-router
Opened by Victor (coyote) - Monday, 22 December 2014, 09:53 GMT
Last edited by Daniel-Constantin Mierla (miconda) - Monday, 29 December 2014, 20:27 GMT
Task Type Bug Report
Category Core
Status Closed
Assigned To No-one
Operating System FreeBSD
Severity Medium
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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’ )
This task depends upon

Closed by  Daniel-Constantin Mierla (miconda)
Monday, 29 December 2014, 20:27 GMT
Reason for closing:  Fixed
Comment by Daniel-Constantin Mierla (miconda) - Monday, 22 December 2014, 10:08 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Ca you attach the output of?

git diff

or

diff -u oldfile newfile
Comment by Victor (coyote) - Monday, 22 December 2014, 12:53 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

# diff -u modules/db_mysql/Makefile{,-}
— modules/db_mysql/Makefile 2014-12-22 12:47:36.631590149 +0300
+++ modules/db_mysql/Makefile- 2014-12-22 12:47:50.818588504 +0300
@@ -21,7 +21,7 @@

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

   1.diff (0.4 KiB)
Comment by Daniel-Constantin Mierla (miconda) - Monday, 22 December 2014, 17:50 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

What version are you using?

The line is in the Makefile for db_mysql module:

Comment by Victor (coyote) - Tuesday, 23 December 2014, 07:37 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

# diff -u modules/db_mysql/Makefile{,-}
— modules/db_mysql/Makefile 2014-12-22 12:47:36.631590149 +0300
+++ modules/db_mysql/Makefile- 2014-12-22 12:47:50.818588504 +0300
@@ -21,7 +21,7 @@

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

   1.diff (0.4 KiB)
Comment by Victor (coyote) - Tuesday, 23 December 2014, 07:42 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

4.3.0-dev0

Oh, sorry, backward:

# diff -u modules/db_mysql/Makefile{-,}
— modules/db_mysql/Makefile- 2014-12-22 12:47:50.818588504 +0300
+++ modules/db_mysql/Makefile 2014-12-22 12:47:36.631590149 +0300
@@ -21,7 +21,7 @@

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

Comment by Daniel-Constantin Mierla (miconda) - Monday, 29 December 2014, 20:27 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Your patch is going to break compilation when the mysql_config returns only one path (the first one), I pushed a patch to master branch in order to detect if there are many paths returned and attempt fix them individually. it will backported soon. If still doesn't work for you, re-open the issue on github.

Loading...