php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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

Code:
663		zval **item;
664		smart_str option = {0}; /* one argument option */
665
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-21 08:01 UTC] koubel@php.net
-Status: Open +Status: Feedback
 [2014-05-21 08:01 UTC] koubel@php.net
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) &&
    CHECK_HEADER_ADD_INCLUDE("rrd.h", "CFLAGS_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');
	ADD_FLAG('CFLAGS_RRD', '/TP');
   } else {
	WARNING("RRDTool could not enabled; libraries and headers not found");
   }
}

Thank you.
 [2014-07-02 07:45 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2014-07-02 07:45 UTC] ab@php.net
@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.

Thanks.
 [2014-07-10 06:49 UTC] ab@php.net
-Status: Feedback +Status: Closed
 [2014-07-10 06:49 UTC] ab@php.net
windows builds are now available from the pecl website.
 [2014-07-10 08:39 UTC] koubel@php.net
thank you ab
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC