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
MikeRomoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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

Ty/SA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MikeRomoAuthor Commented:
nagios/ pnp4nagios  :)
0
MikeRomoAuthor Commented:
the issue in this case was permissions to the files
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.