I have replaced those entries and indeed , it seemed to compile OK .
So i changed to the php dir and edited the Make.rules .
Code:
prefix ?= /usr/local/apps/Ice-$(VERSION)
embedded_runpath_prefix ?= /usr/local/apps/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)
PHP_HOME ?= /usr/lib/php
Then make ..
Code:
./Marshal.h:52: error: template argument 2 is invalid
./Marshal.h:52: error: template argument 4 is invalid
./Marshal.h:52: error: invalid type in declaration before â;â token
./Marshal.h:69: error: field âTSRMLS_Dâ has incomplete type
./Util.h:18: error: âzvalâ was not declared in this scope
./Util.h:18: error: expected primary-expression before â,â token
./Util.h:18: error: expected primary-expression before âconstâ
./Util.h:18: error: initializer expression list treated as compound expression
./Util.h:19: error: âzvalâ was not declared in this scope
./Util.h:19: error: expected primary-expression before â,â token
./Util.h:19: error: expected primary-expression before â&â token
./Util.h:19: error: âTSRMLS_DCâ was not declared in this scope
./Util.h:19: error: initializer expression list treated as compound expression
./Util.h:21: error: âzvalâ was not declared in this scope
./Util.h:21: error: expected primary-expression before â,â token
./Util.h:21: error: expected primary-expression before âconstâ
./Util.h:21: error: initializer expression list treated as compound expression
./Util.h:22: error: âzvalâ was not declared in this scope
./Util.h:22: error: expected primary-expression before â,â token
./Util.h:22: error: expected primary-expression before â&â token
./Util.h:22: error: âTSRMLS_DCâ was not declared in this scope
./Util.h:22: error: initializer expression list treated as compound expression
./Util.h:29: error: âzend_objectâ does not name a type
./Util.h:37: error: âzend_class_entryâ was not declared in this scope
./Util.h:37: error: âTSRMLS_DCâ was not declared in this scope
./Util.h:42: error: âzvalâ was not declared in this scope
./Util.h:42: error: âTSRMLS_DCâ was not declared in this scope
./Util.h:52: error: expected constructor, destructor, or type conversion before â*â token
./Util.h:57: error: expected constructor, destructor, or type conversion before â*â token
./Util.h:90: error: âzend_class_entryâ was not declared in this scope
./Util.h:90: error: expected primary-expression before â,â token
./Util.h:90: error: âzend_class_entryâ was not declared in this scope
./Util.h:90: error: expected primary-expression before â)â token
./Util.h:90: error: initializer expression list treated as compound expression
./Util.h: In destructor âIcePHP::AutoEfree::~AutoEfree()â:
./Util.h:99: error: âefreeâ was not declared in this scope
./Util.h: At global scope:
./Util.h:111: error: expected `)' before â*â token
./Util.h:115: error: ISO C++ forbids declaration of âzvalâ with no type
./Util.h:115: error: expected â;â before â*â token
./Util.h: In destructor âIcePHP::AutoDestroy::~AutoDestroy()â:
./Util.h:112: error: â_zvâ was not declared in this scope
./Util.h:112: error: âzval_ptr_dtorâ was not declared in this scope
Communicator.cpp: At global scope:
Communicator.cpp:19: error: expected constructor, destructor, or type conversion before â(â token
Communicator.cpp:29: error: âzend_object_handlersâ does not name a type
Communicator.cpp:33: error: âzend_object_valueâ does not name a type
Communicator.cpp:34: error: âzend_object_valueâ does not name a type
Communicator.cpp:37: error: âzvalâ was not declared in this scope
Communicator.cpp:37: error: expected primary-expression before â,â token
Communicator.cpp:37: error: expected primary-expression before âcharâ
Communicator.cpp:37: error: expected primary-expression before âintâ
Communicator.cpp:37: error: initializer expression list treated as compound expression
Communicator.cpp:45: error: âfunction_entryâ does not name a type
Communicator.cpp:62: error: redefinition of âbool IcePHP::communicatorInitâ
./Communicator.h:62: error: âbool IcePHP::communicatorInitâ previously defined here
Communicator.cpp:62: error: âTSRMLS_Dâ was not declared in this scope
Communicator.cpp:79: error: redefinition of âbool IcePHP::createCommunicatorâ
./Communicator.h:64: error: âbool IcePHP::createCommunicatorâ previously defined here
Communicator.cpp:79: error: âTSRMLS_Dâ was not declared in this scope
Communicator.cpp:35: warning: âvoid handleFreeStorage(void*)â declared âstaticâ but never defined
Communicator.cpp:37: warning: âhandleGetMethodâ defined but not used
Communicator.cpp:40: warning: âvoid initCommunicator(IcePHP::ice_object*)â declared âstaticâ but never defined
make[2]: *** [Communicator.o] Error 1
make[2]: Leaving directory `/tmp/ice/Ice-3.3.1/php/src/IcePHP'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/ice/Ice-3.3.1/php/src'
make: *** [all] Error 1
I don't know if I meet the requirements ?
Code:
- A supported version of PHP:
* 5.1.2 (SLES 10)
* 5.1.6 (RHEL)
* 5.2.6 (source builds)
You can download PHP from
http://www.php.net/downloads.php
- Ice for C++ 3.3.1 development kit
Since I have PHP 5.2.10 installed , and no Ice C++ development kit installed . Will that indeed be my problem now ?