Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2004
damingyipai damingyipai is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 59
build php_ice 1.1.1 error. proxy.cpp line 183

proxy.cpp line 183:
_handlers.clone_obj = handleClone;

_handlers.clone_obj is define to :

(zend_object_handlers.h line 104)
typedef struct _zend_object_handlers {
...
zend_object_clone_obj_t clone_obj;
...

but the handleClone is define to :

zend_object_value handleClone(zval* TSRMLS_DC);

that is not compatibility with zend_object_clone_obj_t:

typedef zend_object_value (*zend_object_clone_obj_t)(zval *object TSRMLS_DC);

I got build error in vs.net 2003.

Thanks for you see it and help me to fix it.
Reply With Quote
  #2 (permalink)  
Old 07-28-2004
damingyipai damingyipai is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 59
why not compatibility?

------ 已启动生成: 项目: php_ice, 配置: Release Win32 ------

正在编译...
proxy.cpp
proxy.cpp(185) : error C2440: “=” : 无法从“zend_object_value (__cdecl *)(zval *,void *** )”转换为“zend_object_clone_obj_t”
UDT 返回值的不兼容调用约定
communicator.cpp
communicator.cpp(70) : error C2440: “=” : 无法从“zend_object_value (__cdecl *)(zval *,void *** )”转换为“zend_object_clone_obj_t”
UDT 返回值的不兼容调用约定
正在生成代码...

生成日志保存在“file://e:\Projects\JetRocket\base\IcePhp\IcePHP-1.1.1\src\ice\Release\BuildLog.htm”中
php_ice - 2 错误,0 警告


---------------------- 完成 ---------------------

生成: 0 已成功, 1 已失败, 0 已跳过
Reply With Quote
  #3 (permalink)  
Old 07-28-2004
damingyipai damingyipai is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 59
I got it ! is call type not match !

modify ice_common.h

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"

to follow:


extern "C"
{
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"
}

then build ok!
Reply With Quote
  #4 (permalink)  
Old 07-28-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
We actually removed the extern "C" wrapper shortly before release in order to satisfy a compiler on a different platform, and neglected to verify that it still compiled on Windows. Thanks for bringing this to our attention, we will fix this for the next release.

Take care,
- Mark
Reply With Quote
  #5 (permalink)  
Old 07-30-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Hi,

We've released IcePHP 1.1.2 to fix the Windows compilation error.

Thanks again,
- Mark
Reply With Quote
  #6 (permalink)  
Old 07-30-2004
damingyipai damingyipai is offline
Registered User
 
 
Join Date: Jan 2004
Posts: 59
I'm glad to hear it ! :-)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Ice resource code error lifesong Help Center 9 06-08-2006 12:00 PM
Build error in Redhat Linux 9.0 wuqiu Help Center 10 05-16-2006 10:39 PM
Build error on Red Hat Linux (kernel:2.4.18) rc_hz Help Center 3 11-26-2005 07:58 PM
Project : error PRJ0019: A tool returned an error code: "Performing Custom Build Step Falagard Help Center 6 04-11-2004 09:12 PM
error in doc for parsing of --Command.Line properties (14.8.3) shaver Bug Reports 1 11-30-2003 12:02 PM


All times are GMT -4. The time now is 03:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.