Bug 192310 - graphics/graphviz gv_php_init.c:28:12: error: use of undeclared identifier 'tsrm_ls'
Summary: graphics/graphviz gv_php_init.c:28:12: error: use of undeclared identifier 't...
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 13:42 UTC by mikhail.rokhin
Modified: 2014-08-05 03:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mikhail.rokhin 2014-08-01 13:42:44 UTC
CC       libgv_php_la-gv_php_init.lo
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
                        ^
2 errors generated.
/usr/local/bin/swig2.0 -c++ -php5 -o gv_php.cpp ./gv.i
gmake[6]: *** [libgv_php_la-gv_php_init.lo] Error 1
gmake[6]: *** Waiting for unfinished jobs....
gmake[6]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.38.0/tclpkg/gv'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.38.0/tclpkg/gv'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.38.0/tclpkg'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.38.0'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.38.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/graphviz
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/graphviz

===>>> make build failed for graphics/graphviz
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> graphics/graphviz
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-01 13:52:14 UTC
Over to maintainer
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2014-08-03 10:28:42 UTC
Problem not reproduceable on FreeBSD 9.3, FreeBSD 10.0:
php5-5.4.30, swig-2.0.12

logfile:
[...]
mv -f .deps/libgv_php_la-gv_builtins.Tpo .deps/libgv_php_la-gv_builtins.Plo
/bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common  
-I../.. -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt -I../../lib/pathplan -
DDEMAND_LOADING=1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -I/usr/local/include/php/Zend -I/usr/local/include/tk8.6 -I/usr/local/include/tk8.6 -DLIBICONV_PLUG -I/usr/local/include  -O2 -pipe -I/usr/local/include/lua52 -DLIBICONV_PLUG -fno-strict-aliasing -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT libgv_php_la-gv_php_init.lo -MD -MP -MF .deps/libgv_php_la-gv_php_init.Tpo -c -o libgv_php_la-gv_php_init.lo `test -f 'gv_php_init.c' || echo './'`gv_php_init.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt -I../../lib/pathplan -DDEMAND_LOADING=1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -I/usr/local/include/php/Zend -I/usr/local/include/tk8.6 -I/usr/local/include/tk8.6 -DLIBICONV_PLUG -I/usr/local/include -O2 -pipe -I/usr/local/include/lua52 -DLIBICONV_PLUG -fno-strict-aliasing -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT libgv_php_la-gv_php_init.lo -MD -MP -MF .deps/libgv_php_la-gv_php_init.Tpo -c gv_php_init.c  -fPIC -DPIC -o .libs/libgv_php_la-gv_php_init.o
mv gv_lua.cpp gv_lua.cpp.orig
[...]
Comment 3 mikhail.rokhin 2014-08-03 15:03:25 UTC
Try 11-current

(In reply to Dirk Meyer from comment #2)
> Problem not reproduceable on FreeBSD 9.3, FreeBSD 10.0:
> php5-5.4.30, swig-2.0.12
> 
> logfile:
> [...]
> mv -f .deps/libgv_php_la-gv_builtins.Tpo .deps/libgv_php_la-gv_builtins.Plo
> /bin/sh ../../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
> -I../.. -I../../lib/common  
> -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/cgraph
> -I../../lib/cdt -I../../lib/pathplan -
> DDEMAND_LOADING=1 -I/usr/local/include/php -I/usr/local/include/php/main
> -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
> -I/usr/local/include -I/usr/local/include/php/Zend
> -I/usr/local/include/tk8.6 -I/usr/local/include/tk8.6 -DLIBICONV_PLUG
> -I/usr/local/include  -O2 -pipe -I/usr/local/include/lua52 -DLIBICONV_PLUG
> -fno-strict-aliasing -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math
> -MT libgv_php_la-gv_php_init.lo -MD -MP -MF
> .deps/libgv_php_la-gv_php_init.Tpo -c -o libgv_php_la-gv_php_init.lo `test
> -f 'gv_php_init.c' || echo './'`gv_php_init.c
> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../..
> -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt
> -I../../lib/pathplan -DDEMAND_LOADING=1 -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/Zend
> -I/usr/local/include/php/TSRM -I/usr/local/include
> -I/usr/local/include/php/Zend -I/usr/local/include/tk8.6
> -I/usr/local/include/tk8.6 -DLIBICONV_PLUG -I/usr/local/include -O2 -pipe
> -I/usr/local/include/lua52 -DLIBICONV_PLUG -fno-strict-aliasing
> -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT
> libgv_php_la-gv_php_init.lo -MD -MP -MF .deps/libgv_php_la-gv_php_init.Tpo
> -c gv_php_init.c  -fPIC -DPIC -o .libs/libgv_php_la-gv_php_init.o
> mv gv_lua.cpp gv_lua.cpp.orig
> [...]
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-08-05 03:34:22 UTC
A commit references this bug:

Author: dinoex
Date: Tue Aug  5 03:33:54 UTC 2014
New revision: 364072
URL: http://svnweb.freebsd.org/changeset/ports/364072

Log:
  - set option PHP broken on FreeBSD-11
  PR:		192310

Changes:
  head/graphics/graphviz/Makefile
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2014-08-05 03:39:00 UTC
The new clang version can not compile the code thats swig20 generates for PHP.

This is either a PHP or clang problem,

therefore this issue  can not be fixed in this port.