compilation issue on slackware 14.1

I am running into a compilation issue I am not sure how to fix. This is on slackware 14.1 stock install, 32-bit. Below is the error log. Any suggestions would be welcome.

thank you, -Borries

make[4]: Entering directory `/usr/local/src/graphviz-2.38.0/tclpkg/gv'
CXX libgv_guile_la-gv_guile.lo
CXX libgv_perl_la-gv_perl.lo
CC libgv_php_la-gv_php_init.lo
make[4]: Leaving directory `/usr/local/src/graphviz-2.38.0/tclpkg/gv'
make[3]: Leaving directory `/usr/local/src/graphviz-2.38.0/tclpkg/gv'
make[2]: Leaving directory `/usr/local/src/graphviz-2.38.0/tclpkg'
make[1]: Leaving directory `/usr/local/src/graphviz-2.38.0'
^
In file included from /usr/include/php/Zend/zend_alloc.h:27:0,
from /usr/include/php/Zend/zend.h:237,
from /usr/include/php/main/php.h:34,
from gv_php_init.c:14:
gv_php_init.c: In function 'gv_string_writer':
/usr/include/php/Zend/../TSRM/TSRM.h:167:18: error: 'tsrm_ls' undeclared (first use in this function)
#define TSRMLS_C tsrm_ls
^
/usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro 'TSRMLS_C'
#define TSRMLS_CC , TSRMLS_C
^
/usr/include/php/main/php_output.h:163:67: note: in expansion of macro 'TSRMLS_CC'
#define PHPWRITE(str, str_len) php_output_write((str), (str_len) TSRMLS_CC)
^
gv_php_init.c:28:12: note: in expansion of macro 'PHPWRITE'
return PHPWRITE(s, len);
^
/usr/include/php/Zend/../TSRM/TSRM.h:167:18: note: each undeclared identifier is reported only once for each function it appears in
#define TSRMLS_C tsrm_ls
^
/usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro 'TSRMLS_C'
#define TSRMLS_CC , TSRMLS_C
^
/usr/include/php/main/php_output.h:163:67: note: in expansion of macro 'TSRMLS_CC'
#define PHPWRITE(str, str_len) php_output_write((str), (str_len) TSRMLS_CC)
^
gv_php_init.c:28:12: note: in expansion of macro 'PHPWRITE'
return PHPWRITE(s, len);
^
gv_php_init.c: In function 'gv_channel_writer':
/usr/include/php/Zend/../TSRM/TSRM.h:167:18: error: 'tsrm_ls' undeclared (first use in this function)
#define TSRMLS_C tsrm_ls
^
/usr/include/php/Zend/../TSRM/TSRM.h:168:21: note: in expansion of macro 'TSRMLS_C'
#define TSRMLS_CC , TSRMLS_C
^
/usr/include/php/main/php_output.h:163:67: note: in expansion of macro 'TSRMLS_CC'
#define PHPWRITE(str, str_len) php_output_write((str), (str_len) TSRMLS_CC)
^
gv_php_init.c:33:12: note: in expansion of macro 'PHPWRITE'
return PHPWRITE(s, len);
^
gv_php_init.c: In function 'gv_string_writer':
gv_php_init.c:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
gv_php_init.c: In function 'gv_channel_writer':
gv_php_init.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [libgv_php_la-gv_php_init.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Re: compilation issue on slackware 14.1

Sorry about the problems. In principle this should work, but often "swig" doesn't track

changes in other systems very closely. Try adding --enable-swig=no  to the command
line arguments to configure, or at least --enable-php=no   if you just need the basic
graphviz tools.  If you need the language bindings like PHP, you might try upgrading
swig to 3.0.5

It appears Slackware 14.1 dates from 2013, and that was the last (final?) release
so you might want to move to Ubuntu or another Linux distribution that is kept up to date.

Stephen North
 

Re: compilation issue on slackware 14.1

Thank you Stephen, disabling swig and php solved my problem!

Much appreciated, -Borries

Recent comments