pcp
[Top] [All Lists]

Re: [pcp] Build Errors on CentOS 4.8

To: chandana@xxxxxxxxxxxxx
Subject: Re: [pcp] Build Errors on CentOS 4.8
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 11 Nov 2012 18:51:38 -0500 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <509EAEB5.5020805@xxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>

----- Original Message -----
> All,
> 
> I tried to build PCP 3.6.9 on a Cent)S 4.8 - i386 host, and got the
> error shown below. I was able to build 3.5.11-1 without a problem.
> Nathan has asked me to send this error to the list.
> 
> I have had this same error on newer CentOS 5 versions, which I was
> able
> to resolve by using a host with a clean build of CentOS with the
> Development tools package group. This did not work on the 4.8
> version.
>  ...
> 
> RPM build errors:
>      File not found:
> /tmp/pcp-build-13661/usr/lib/python2.3/site-packages/pcp.pyo
>      File not found:
> /tmp/pcp-build-13661/usr/lib/python2.3/site-packages/pcpi.pyo

I think this is a result of these lines from src/include/builddefs
(autogenerated from builddefs.in) -


ifeq "$(TARGET_OS)" "linux"
PYTHON_INSTALL = \
        $(AWK) '{print} /.pyc$$/ {sub(/.pyc$$/,".pyo"); print}' \
                < $(TOPDIR)/python-pcp.list > $(TOPDIR)/python-pcp.list.rpm
else
...


If you comment that out, does the build proceed to completion?  If so,
we'll need to tighten up that "if linux" guard to be "if linux and not
rpm before a certain version".

thanks.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>