|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67315 Failed to compile
Submitted: 2014-05-21 07:19 UTC Modified: 2014-07-10 08:39 UTC
From: waton dot kelakon at gmail dot com Assigned: ab (profile)
Status: Closed Package: rrd (PECL)
PHP Version: 5.5.12 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: waton dot kelakon at gmail dot com
New email:
PHP Version: OS:


 [2014-05-21 07:19 UTC] waton dot kelakon at gmail dot com
Compile on windows 7 using Visual Studio 2012 failed. 

Error message:

..\pecl\rrd-1.1.3\rrd.c(669) : error C2440: '=' : cannot convert from 'void *' to 'char *'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast

663		zval **item;
664		smart_str option = {0}; /* one argument option */
666		/* force using strings as array items */
667		zend_hash_get_current_data(Z_ARRVAL_P(options), (void**) &item);
668		if (Z_TYPE_PP(item) != IS_STRING) convert_to_string(*item);
669		smart_str_appendl(&option, Z_STRVAL_PP(item), Z_STRLEN_PP(item));
670		smart_str_0(&option);

Expected result:
Compiled OK

Actual result:
Compile failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-21 08:01 UTC]
-Status: Open +Status: Feedback
 [2014-05-21 08:01 UTC]
Sorry, I don't support windows builds for rrd ext at all. Send me necessary patch for windows support (especially config.w32) if possible.
 [2014-05-21 10:04 UTC] waton dot kelakon at gmail dot com
Oh no, I'am a novice :-)

This is my config.w32 :

ARG_WITH("rrd", "RRDTool support", "no");

if (PHP_RRD != "no") {
  if (CHECK_LIB("librrd-4_a.lib;librrd-4.lib", "rrd", PHP_RRD) &&
	EXTENSION ("rrd", "rrd.c rrd_graph.c rrd_create.c rrd_update.c rrd_info.c");
	AC_DEFINE('HAVE_RRD', 1, 'Have RRDTool library');
   } else {
	WARNING("RRDTool could not enabled; libraries and headers not found");

Thank you.
 [2014-07-02 07:45 UTC]
-Assigned To: +Assigned To: ab
 [2014-07-02 07:45 UTC]
@walton, where from do you have the librrd builds? If those are proper vc9/vc11 builds, please share them. Otherwise we first need to build cairo and some other deps to get the librrd.

 [2014-07-10 06:49 UTC]
-Status: Feedback +Status: Closed
 [2014-07-10 06:49 UTC]
windows builds are now available from the pecl website.
 [2014-07-10 08:39 UTC]
thank you ab
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 28 17:03:37 2021 UTC