http://oss.sgi.com/bugzilla/show_bug.cgi?id=890
Summary: /usr/include/pcp/builddefs has some variables left
over from build environment
Product: pcp
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: pcp
AssignedTo: mort@xxxxxxx
ReportedBy: emery@xxxxxxx
CC: pcp@xxxxxxxxxxx
Estimated Hours: 0.0
Classification: Unclassified
As pmdas are being split out of the main PCP build, /usr/include/pcp/builddefs
is used during the build process. at 3.2.1, builddefs refers to directories
inside the pcp build environment which may not be available to the builder
of independent PDMAs.
These are the definitions that I found at first glance. There may be more
that need adjustment.
BUILDRULES=$(TOPDIR)/src/include/buildrules
PCP_LIBS = -L$(TOPDIR)/src/libpcp/$(LIBPCP_ABIDIR) \
-L$(TOPDIR)/src/libpcp_pmda/$(LIBPCP_ABIDIR)
CFLAGS += $(PCFLAGS) $(LCFLAGS) $(WARN_OFF) -g -DPCP_DEBUG \
-DPCP_VERSION=\"$(PCP_VERSION)\" -I$(TOPDIR)/src/include
INSTALL = $(TOPDIR)/install-sh -o root -g root
GENPMDA = $(TOPDIR)/src/genpmda/genpmda
IMAGES_DIR = $(TOPDIR)/all-images
DIST_DIR = $(TOPDIR)/dist
# env vars to be set before you can run a PCP binary in the build
# environment ... needed for tools like newhelp
#
# default, then special case for different platforms
#
RUN_IN_BUILD_ENV = PCP_CONF=$(TOPDIR)/src/include/pcp.conf
LD_LIBRARY_PATH=$(TOPDIR)/src/libpcp/src:$(TOPDIR)/src/libpcp_pmda/src:$$LD_LIBRARY_PATH
ifeq "$(TARGET_OS)" "darwin"
RUN_IN_BUILD_ENV = PCP_CONF=$(TOPDIR)/src/include/pcp.conf
DYLD_LIBRARY_PATH=$(TOPDIR)/src/libpcp/src:$(TOPDIR)/src/libpcp_pmda/src:$$DYLD_LIBRARY_PATH
endif
ifeq "$(TARGET_OS)" "aix"
RUN_IN_BUILD_ENV = PCP_CONF=$(TOPDIR)/src/include/pcp.conf
LIBPATH=$(TOPDIR)/src/libpcp/src:$(TOPDIR)/src/libpcp_pmda/src:$$LIBPATH
endif
ifeq "$(TARGET_OS)" "mingw"
RUN_IN_BUILD_ENV = PCP_CONF=$(TOPDIR)/src/include/pcp.conf
PCP_CONFIG=$(TOPDIR)/src/pmconfig/pmconfig.exe
PATH=$(TOPDIR)/src/libpcp/src:$(TOPDIR)/src/libpcp_pmda/src
:$$PATH
endif
I want to set (on my 64bit linux box):
BUILDRULES=$(PCP_INC_DIR)/buildrules
PCP_LIBS=$(PCP_LIB_DIR)
CFLAGS= $(PCFLAGS) $(LCFLAGS) $(WARN_OFF) -g -DPCP_DEBUG \
-DPCP_VERSION=\"$(PCP_VERSION)\" -I$(PCP_INC_DIR)
#INSTALL = $(TOPDIR)/install-sh -o root -g root
# should the install script be made generally available... in $(PCP_BINADM_DIR)
GENPMDA = $(PCP_BIN_DIR)/genpmda
I'm ignoring IMAGES_DIR and DIST_DIR because they aren't used. I think that
INSTALL probably should be defined in a useful way.
I'm investigating how to address this.
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
|