Unable to compile Graphviz 2.36.0 with PHP/RUBY bindings
Nicolas Raspail
nicolas.raspail at whisperingvault.net
Sun Jun 1 19:08:12 UTC 2014
Hi
I'm trying to compile graphviz 2.36.0 with php (built with ZTS) and ruby
bindings but the compilation fails. I'm running 9.1-RELEASE amd64
* PHP
gv_php_init.c:28:12: error: use of undeclared identifier 'tsrm_ls'
return PHPWRITE(s, len);
^
/usr/local/include/php/main/php_output.h:163:67: note: expanded from
macro 'PHPWRITE'
#define PHPWRITE(str, str_len) php_output_write((str),
(str_len) TSRMLS_CC)
^
/usr/local/include/php/Zend/../TSRM/TSRM.h:168:21: note: expanded from
macro 'TSRMLS_CC'
#define TSRMLS_CC , TSRMLS_C
^
/usr/local/include/php/Zend/../TSRM/TSRM.h:167:18: note: expanded from
macro 'TSRMLS_C'
#define TSRMLS_C tsrm_ls
^
gv_php_init.c:33:12: error: use of undeclared identifier 'tsrm_ls'
return PHPWRITE(s, len);
^
/usr/local/include/php/main/php_output.h:163:67: note: expanded from
macro 'PHPWRITE'
#define PHPWRITE(str, str_len) php_output_write((str),
(str_len) TSRMLS_CC)
^
/usr/local/include/php/Zend/../TSRM/TSRM.h:168:21: note: expanded from
macro 'TSRMLS_CC'
#define TSRMLS_CC , TSRMLS_C
^
/usr/local/include/php/Zend/../TSRM/TSRM.h:167:18: note: expanded from
macro 'TSRMLS_C'
#define TSRMLS_C tsrm_ls
I have found the webpage http://www.ucai.cn/blogdetail/7012?mid=8 and
adding |TSRMLS_FETCH()|; allow the compilation to go further.
* RUBY
clang++: warning: argument unused during compilation: '-pthread'
clang++: warning: argument unused during compilation: '-pthread'
Syntax error: "(" unexpected
gmake[4]: *** [libgv_ruby.la] Error 2
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
`/usr/ports/graphics/graphviz/work/graphviz-2.36.0/tclpkg/gv'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/ports/graphics/graphviz/work/graphviz-2.36.0/tclpkg/gv'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/graphics/graphviz/work/graphviz-2.36.0/tclpkg'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/graphics/graphviz/work/graphviz-2.36.0'
gmake: *** [all] Error 2
The problem comes from the data returned by pkgconf for ruby
root at fastjack:/root # pkgconf --libs ruby-1.9
-Wl,-soname,(.TARGET) -lruby19 -lexecinfo -lthr -lrt -lcrypt -lm
-L/usr/local/lib -Wl,-rpath,/usr/lib:/usr/local/lib -pthread
(.TARGET) is badly interpreted by the shell
I have no idea to solve this issue
Is somebody hasthe same problems ?
Regards
Nicolas
More information about the freebsd-ports
mailing list