|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-05-23 14:51 UTC] j dot pardons at redline-hosting dot eu
Description: ------------ cc -shared .libs/rrd.o .libs/rrd_graph.o .libs/rrd_create.o .libs/rrd_update.o .libs/rrd_info.o /usr/lib/librrd.so -L/usr/lib64 -Wl,-soname -Wl,rrd.so -o .libs/rrd.so .libs/rrd_graph.o:(.data.rel.local+0x0): multiple definition of `arginfo_rrd_info' .libs/rrd.o:(.data.rel.local+0x180): first defined here .libs/rrd_graph.o:(.data.rel.local+0x60): multiple definition of `arginfo_rrd_graph' .libs/rrd.o:(.data.rel.local+0x0): first defined here .libs/rrd_create.o:(.data.rel.local+0x0): multiple definition of `arginfo_rrd_create' .libs/rrd.o:(.data.rel.local+0x80): first defined here .libs/rrd_update.o:(.data.rel.local+0x0): multiple definition of `arginfo_rrd_update' .libs/rrd.o:(.data.rel.local+0x100): first defined here .libs/rrd_update.o:(.data.rel.local+0x80): multiple definition of `arginfo_construct' .libs/rrd_create.o:(.data.rel.local+0x80): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: Warning: size of symbol `arginfo_construct' changed from 160 in .libs/rrd_create.o to 80 in .libs/rrd_update.o .libs/rrd_info.o:(.data.rel.local+0x0): multiple definition of `arginfo_rrd_info' .libs/rrd.o:(.data.rel.local+0x180): first defined here collect2: ld returned 1 exit status make: *** [rrd.la] Erreur 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Try this patch. It solved the compile error for me, but I'm not entirely sure all the features are right, since the php developers I work with haven't tested it out completely. {noformat} diff -Nuar rrd-1.0.4.orig/rrd_create.c rrd-1.0.4.new/rrd_create.c --- rrd-1.0.4.orig/rrd_create.c 2011-08-12 07:50:10.000000000 -0700 +++ rrd-1.0.4.new/rrd_create.c 2011-08-31 17:20:02.000000000 -0700 @@ -22,7 +22,6 @@ #include <rrd.h> #include "php.h" -#include "rrd_create.h" #include "php_rrd.h" #include "zend_exceptions.h" #include "ext/standard/php_array.h" @@ -335,7 +334,7 @@ /* }}} */ /* arguments */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_construct, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_construct_new, 0, 0, 1) ZEND_ARG_INFO(0, path) ZEND_ARG_INFO(0, startTime) ZEND_ARG_INFO(0, step) @@ -347,7 +346,7 @@ /* class method table */ static zend_function_entry rrd_create_methods[] = { - PHP_ME(RRDCreator, __construct, arginfo_construct, ZEND_ACC_PUBLIC) + PHP_ME(RRDCreator, __construct, arginfo_construct_new, ZEND_ACC_PUBLIC) PHP_ME(RRDCreator, save, NULL, ZEND_ACC_PUBLIC) PHP_ME(RRDCreator, addDataSource, arginfo_description, ZEND_ACC_PUBLIC) PHP_ME(RRDCreator, addArchive, arginfo_description, ZEND_ACC_PUBLIC) diff -Nuar rrd-1.0.4.orig/rrd_graph.c rrd-1.0.4.new/rrd_graph.c --- rrd-1.0.4.orig/rrd_graph.c 2011-08-12 07:50:10.000000000 -0700 +++ rrd-1.0.4.new/rrd_graph.c 2011-08-31 17:20:19.000000000 -0700 @@ -27,8 +27,6 @@ #include <rrd.h> #include "php_rrd.h" -#include "rrd_info.h" -#include "rrd_graph.h" /* declare class entry */ static zend_class_entry *ce_rrd_graph; diff -Nuar rrd-1.0.4.orig/rrd_info.c rrd-1.0.4.new/rrd_info.c --- rrd-1.0.4.orig/rrd_info.c 2011-08-12 07:50:10.000000000 -0700 +++ rrd-1.0.4.new/rrd_info.c 2011-08-31 17:21:28.000000000 -0700 @@ -25,7 +25,8 @@ #include <rrd.h> #include "php_rrd.h" -#include "rrd_info.h" + +extern uint rrd_info_toarray(const rrd_info_t *rrd_info_data, zval *array TSRMLS_DC); /* {{{ proto array rrd_info(string file) Gets the header information from an RRD. @@ -99,4 +100,4 @@ return 1; } -/* }}} */ \ No newline at end of file +/* }}} */ diff -Nuar rrd-1.0.4.orig/rrd_update.c rrd-1.0.4.new/rrd_update.c --- rrd-1.0.4.orig/rrd_update.c 2011-08-12 07:50:10.000000000 -0700 +++ rrd-1.0.4.new/rrd_update.c 2011-08-31 17:21:58.000000000 -0700 @@ -23,7 +23,6 @@ #include <rrd.h> #include "php.h" #include "php_rrd.h" -#include "rrd_update.h" #include "zend_exceptions.h" #include "ext/standard/php_smart_str.h" {noformat} If this fixes the compile time problem, but causes other errors, please let me know, as that would be valuable information for me.