[Build/Install] Make error --> gv_php_init.c: In function 'gv_string_writer':
Ported Issue from Mantis Original ID: 2378 Reported By: quadrinho
SEVERITY: CRITICAL Submitted: 2013-09-30 12:59:12
OS: RED HAT
PLATFORM: LINUX
DESCRIPTION
When i try to compile graphviz-2.34.0, i have always these error:
make[4]: Entering directory /portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg/gv/demo' make[4]: Nothing to be done for
all'.
make[4]: Leaving directory /portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg/gv/demo' make[4]: Entering directory
/portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg/gv'
CXX libgv_java_la-gv.lo
CC libgv_java_la-gv_builtins.lo
CC libgv_java_la-gv_dummy_init.lo
swig -package org.graphviz -c++ -java -o gv_java.cpp ./gv.i
CXX libgv_java_la-gv_java.lo
CXXLD libgv_java.la
CXX libgv_perl_la-gv.lo
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
CC libgv_perl_la-gv_builtins.lo
CC libgv_perl_la-gv_dummy_init.lo
swig -c++ -perl -o gv_perl.cpp ./gv.i
CXX libgv_perl_la-gv_perl.lo
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
CXXLD libgv_perl.la
*** Warning: Linking the shared library libgv_perl.la against the
*** static library /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a is not portable!
CXX libgv_php_la-gv.lo
CC libgv_php_la-gv_builtins.lo
CC libgv_php_la-gv_php_init.lo
In file included from gv_php_init.c:14:
/usr/include/php/main/php.h:297: warning: function declaration isn't a prototype
In file included from ../../lib/cdt/cdt.h:10,
from ../../lib/cgraph/cgraph.h:17,
from ../../lib/common/types.h:49,
from ../../lib/gvc/gvc.h:17,
from gv_php_init.c:15:
../../config.h:577:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from /usr/include/php/TSRM/tsrm_config.h:1,
from /usr/include/php/TSRM/tsrm_config_common.h:13,
from /usr/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /usr/include/php/main/php.h:401,
from gv_php_init.c:14:
/usr/include/php/main/../main/php_config.h:2074:1: warning: this is the location of the previous definition
In file included from ../../lib/cdt/cdt.h:10,
from ../../lib/cgraph/cgraph.h:17,
from ../../lib/common/types.h:49,
from ../../lib/gvc/gvc.h:17,
from gv_php_init.c:15:
../../config.h:580:1: warning: "PACKAGE_NAME" redefined
In file included from /usr/include/php/TSRM/tsrm_config.h:1,
from /usr/include/php/TSRM/tsrm_config_common.h:13,
from /usr/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /usr/include/php/main/php.h:401,
from gv_php_init.c:14:
/usr/include/php/main/../main/php_config.h:2077:1: warning: this is the location of the previous definition
In file included from ../../lib/cdt/cdt.h:10,
from ../../lib/cgraph/cgraph.h:17,
from ../../lib/common/types.h:49,
from ../../lib/gvc/gvc.h:17,
from gv_php_init.c:15:
../../config.h:583:1: warning: "PACKAGE_STRING" redefined
In file included from /usr/include/php/TSRM/tsrm_config.h:1,
from /usr/include/php/TSRM/tsrm_config_common.h:13,
from /usr/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /usr/include/php/main/php.h:401,
from gv_php_init.c:14:
/usr/include/php/main/../main/php_config.h:2080:1: warning: this is the location of the previous definition
In file included from ../../lib/cdt/cdt.h:10,
from ../../lib/cgraph/cgraph.h:17,
from ../../lib/common/types.h:49,
from ../../lib/gvc/gvc.h:17,
from gv_php_init.c:15:
../../config.h:586:1: warning: "PACKAGE_TARNAME" redefined
In file included from /usr/include/php/TSRM/tsrm_config.h:1,
from /usr/include/php/TSRM/tsrm_config_common.h:13,
from /usr/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /usr/include/php/main/php.h:401,
from gv_php_init.c:14:
/usr/include/php/main/../main/php_config.h:2083:1: warning: this is the location of the previous definition
In file included from ../../lib/cdt/cdt.h:10,
from ../../lib/cgraph/cgraph.h:17,
from ../../lib/common/types.h:49,
from ../../lib/gvc/gvc.h:17,
from gv_php_init.c:15:
../../config.h:592:1: warning: "PACKAGE_VERSION" redefined
In file included from /usr/include/php/TSRM/tsrm_config.h:1,
from /usr/include/php/TSRM/tsrm_config_common.h:13,
from /usr/include/php/TSRM/tsrm_virtual_cwd.h:27,
from /usr/include/php/main/php.h:401,
from gv_php_init.c:14:
/usr/include/php/main/../main/php_config.h:2089:1: warning: this is the location of the previous definition
gv_php_init.c: In function 'gv_string_writer':
gv_php_init.c:22: error: 'tsrm_ls' undeclared (first use in this function)
gv_php_init.c:22: error: (Each undeclared identifier is reported only once
gv_php_init.c:22: error: for each function it appears in.)
gv_php_init.c: In function 'gv_channel_writer':
gv_php_init.c:27: error: 'tsrm_ls' undeclared (first use in this function)
make[4]: *** [libgv_php_la-gv_php_init.lo] Error 1
make[4]: Leaving directory /portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg/gv' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory
/portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg/gv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /portale_oa/local/data/alessio/nagios/graphviz-2.34.0/tclpkg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/portale_oa/local/data/alessio/nagios/graphviz-2.34.0'
make: *** [all] Error 2