This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
info:devel:5209cce [2015/07/19 09:57] [Fixing CCE on 5209R] |
info:devel:5209cce [2015/07/20 01:44] (current) [Custom Patches] |
||
---|---|---|---|
Line 6: | Line 6: | ||
This wiki page is designed to document how to build the CCE library on a 5209R box, so that other helpers might assist in getting the official CCE library to build on 5209R | This wiki page is designed to document how to build the CCE library on a 5209R box, so that other helpers might assist in getting the official CCE library to build on 5209R | ||
===== BlueOnyx Development Environment ===== | ===== BlueOnyx Development Environment ===== | ||
- | Build a clean server using a recent BlueOnyx cd. Login as root, and execute the following commands to be ready to do some build work. | + | Build a clean 5209R server using a recent BlueOnyx cd. Login as root, and execute the following commands to be ready to do some build work. |
yum -y install sausalito-devel-tools flex-devel gettext | yum -y install sausalito-devel-tools flex-devel gettext | ||
ln -s ~/rpmbuild/ /usr/src/redhat | ln -s ~/rpmbuild/ /usr/src/redhat | ||
Line 14: | Line 14: | ||
===== Building on 5209R ===== | ===== Building on 5209R ===== | ||
- | On 5209, the build of the PHP CCE client fails. Michael has included a different PHP library, which works but is much slower. Our goal here is to find the bugs in the library written in C, to replace Michael's temporary class. We need to do a tweak so that it will build the old official library. | + | On 5209R, Michael disabled the build of the CCE client, and instead includes the other custom PHP library. To convert the build process to use the original library, execute the following commands to disable the new custom PHP library. |
cd /home/devel/BlueOnyx/trunk/BlueOnyx/ | cd /home/devel/BlueOnyx/trunk/BlueOnyx/ | ||
cp utils/cce/client/php/src/Makefile 5209R/utils/cce/client/php/src/Makefile | cp utils/cce/client/php/src/Makefile 5209R/utils/cce/client/php/src/Makefile | ||
Line 24: | Line 24: | ||
sed -ie "s/^function_entry/zend_function_entry/" client/php/src/cce.c | sed -ie "s/^function_entry/zend_function_entry/" client/php/src/cce.c | ||
sed -ie "s/pval/zval/" client/php/src/cce.c | sed -ie "s/pval/zval/" client/php/src/cce.c | ||
- | + | sed -ie "s/getParameters/zend_get_parameters/" client/php/src/cce.c | |
- | ===== Working on CCE ====== | + | ===== Build the CCE RPM's ====== |
- | Now, lets build the RPM's... | + | |
cd /home/devel/BlueOnyx/trunk/BlueOnyx/5209R/utils/cce | cd /home/devel/BlueOnyx/trunk/BlueOnyx/5209R/utils/cce | ||
make clean | make clean | ||
make | make | ||
make rpm | make rpm | ||
+ | |||
+ | ===== Testing ===== | ||
+ | If the above build process was successful, its now time to test. Below will be a set of instructions that can be used to validate if your library is working as expected. |