Wind River Support Network

HomeDefectsLIN8-9058
Fixed

LIN8-9058 : cgp: openipmi version macros undefined

Created: Apr 18, 2018    Updated: Dec 3, 2018
Resolved Date: Apr 25, 2018
Found In Version: 8.0.0.25
Fix Version: 8.0.0.26
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

The openipmi version macros are undefined in the resulting ipmiif.h file when the package is built. In package version openipmi 2.0.21.

The macros include OPENIPMI_VERSION_MAJOR, OPENIPMI_VERSION_MINOR and OPENIPMI_VERSION_RELEASE. They should also be defined as 2, 0, 21 and such.

This cause a build-time error of a application layer, when the build is done with the system roots generated by the WRL8 exported dev and rpms.

The openipmi 2.0.21 configure.ac attempts to set the variables initially but this is not correct causing the malfunction.

The openipmi 2.0.24 configure.ac defines the variables differently, which includes specifying values in the AC_SUBST(). Fixing the issue.

Please provide a backport of openipmi 2.0.24 to fix this.

Adding sample grep of sysroot header file:

$ grep OPENIPMI_VERSION bitbake_build/tmp/sysroots/intel-x86-64/usr/include/OpenIPMI/ipmiif.h
#define OPENIPMI_VERSION_MAJOR
#define OPENIPMI_VERSION_MINOR
#define OPENIPMI_VERSION_RELEASE
#define OPENIPMI_VERSION_EXTRA
#define OPENIPMI_VERSION OPENIPMI_XSTRING(OPENIPMI_VERSION_MAJOR) \
"." OPENIPMI_XSTRING(OPENIPMI_VERSION_MINOR) \
"." OPENIPMI_XSTRING(OPENIPMI_VERSION_RELEASE) \
OPENIPMI_XSTRING(OPENIPMI_VERSION_EXTRA)

Workaround

The openipmi 2.0.24 configure.ac defines the variables differently, which includes specifying values in the AC_SUBST(). Fixing the issue. 

Steps to Reproduce

$ grep OPENIPMI_VERSION bitbake_build/tmp/sysroots/intel-x86-64/usr/include/OpenIPMI/ipmiif.h 
#define OPENIPMI_VERSION_MAJOR 
#define OPENIPMI_VERSION_MINOR 
#define OPENIPMI_VERSION_RELEASE 
#define OPENIPMI_VERSION_EXTRA 
#define OPENIPMI_VERSION OPENIPMI_XSTRING(OPENIPMI_VERSION_MAJOR) \ 
"." OPENIPMI_XSTRING(OPENIPMI_VERSION_MINOR) \ 
"." OPENIPMI_XSTRING(OPENIPMI_VERSION_RELEASE) \ 
OPENIPMI_XSTRING(OPENIPMI_VERSION_EXTRA)

Other Downloads


Live chat
Online