OpenClovis / SAFplus-Availability-Scalability-Platform

Middleware that provides libraries, GUI, and code generator to design multi-node (clustered) applications that are highly available, redundant, and scalable. Provides sub-second node and application fault detection and failover, and useful application libraries including distributed hash tables (checkpoint), event, logging, and communications. Implements SA-Forum APIs where applicable. Used anywhere reliability is a must -- like telecom, wireless, defense and enterprise computing. Download stable release with installer from: ftp.openclovis.com
www.openclovis.com
GNU General Public License v2.0
20 stars 13 forks source link

SAFplus installer for doesn't compile tipc-config with the right path #39

Closed karthick18 closed 11 years ago

karthick18 commented 11 years ago

SAIC had this issue where the install of SAFplus failed during the build of tipc-config. It was found that tipc-config is being built with: export KERNELDIR to reflect the path while building tipc-config for tipcutils-1.1.9. This is incorrect as the right include path or command for building TIPC config is: make INCLUDE_PATH=/lib/modules/uname -r/build/include VERSION="shipped-tipc-version" Replace uname -r with the kernel version on the target. Replace "shipped-tipc-version" with 1.7.7 or whatever version is in the installer bundle. (from net/tipc/tipc_core.h --> TIPC_MOD_VER reflects the same)

The workaround is to copy the tipc include files from the kernel source to the standard system wide include path in /usr/include/linux So cp -v /lib/modules/uname -r/build/include/linux/tipc*.h /usr/include/linux is a simple workaround that unblocked the customer. But we can still try and avoid it by fixing the installer to use the right command for building tipc-config. Assigning it to @hoangle who can it assign it to the right guy as this needs some testing to confirm/close and I can't do that here. Keeping @AndrewStoneOpenClovis in the loop as well.

Customer is unblocked with the workaround. So this is low priority but needs to be fixed before the next SAFplus release/update which might re-introduce the install failure for the customer.

hoangle commented 11 years ago

tipc-config depends on tipc on kernel (or 1.7.7 our installer bundle), I assigned to @minhgiang1983 since don't break what has been done by him.

minhgiang1983 commented 11 years ago

Hi a Hoang,

After reproduce this issue with Ubuntu 12.04 , I found 2 problem as below :

  1. make error without INCLUDE_PATH = /lib/modules/uname -r/build/include
  2. make error with default tipc_config.h file in /lib/modules/uname -r/build/include folder. To fix this issue I tried copying new tipc_config.h file from tipc-1.7.7.tar pakage to /lib/modules/uname -r/build/include or set INCLUDE_PATH to tipc-1.7.7 folder. I will modify package.py and commit to github after finish testing.

Thanks, Minh Giang

On Mon, Feb 18, 2013 at 8:55 AM, Hoang Le notifications@github.com wrote:

tipc-config depends on tipc on kernel (or 1.7.7 our installer bundle), I assigned to @minhgiang1983 https://github.com/minhgiang1983 since don't break what has been done by him.

— Reply to this email directly or view it on GitHubhttps://github.com/OpenClovis/SAFplus-Availability-Scalability-Platform/issues/39#issuecomment-13703505.

hoangle commented 11 years ago

Please take care of param "shipped-tipc-version" Karthick's mention.