[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

problems to compile php_rrdtool

after
# ./configure -with-rrdtool=/opt/rrdtool-1.4.7 -with-php-config=/usr/bin/php-config

# make starts with a lot of warnings and errors like this
usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:42:1: error: unknown type name 'function_entry'
 function_entry rrdtool_functions[] = {
 function_entry rrdtool_functions[] = {
 ^
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: braces around scalar initializer [enabled by default]
  PHP_FE(rrd_graph,    NULL)
  ^
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: (near initialization for 'rrdtool_functions[0]') [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: initialization makes integer from pointer without a cast [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: (near initialization for 'rrdtool_functions[0]') [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: error: initializer element is not computable at load time
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: error: (near initialization for 'rrdtool_functions[0]')
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: excess elements in scalar initializer [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: (near initialization for 'rrdtool_functions[0]') [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: excess elements in scalar initializer [enabled by default]
/usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:43:2: warning: (near initialization for 'rrdtool_functions[0]') [enabled by default]
In file included from /usr/include/php5/main/php.h:39:0,
                 from /usr/local/src/php-5.3.10/ext/rrdtool/rrdtool.c:26:
and finishs with

 ZEND_API char *_estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
                ^
make: *** [rrdtool.lo] Error
0
MikeRomo
Asked:
MikeRomo
  • 3
  • 2
1 Solution
 
Seth SimmonsSr. Systems AdministratorCommented:
what linux distribution?
php 5.3.10 is an older, non-supported version
what is compiled or rpm/deb package?
0
 
SandyCommented:
Why you are compiling ? rrdtool is  also available in rpm format on sourceforge and epel..

TY/SA
0
 
MikeRomoAuthor Commented:
yes thank you all I was compiling an old version and thanks for the rpm tip I'm now working with the rrdtool
thanks a lot

Mike
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
SandyCommented:
just asking.. are you configuring cacti ?  because similar issue i have faced while configuring cacti... :)

Ty/SA
0
 
MikeRomoAuthor Commented:
nagios/ pnp4nagios  :)
0
 
MikeRomoAuthor Commented:
the issue in this case was permissions to the files
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now