pcp
[Top] [All Lists]

Re: pcp updates

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: pcp updates
From: Mark Goodwin <markgw@xxxxxxx>
Date: Thu, 30 Oct 2008 13:58:38 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1225334916.4434.30.camel@verge.scott.net.au>
Organization: SGI Engineering
References: <1225334916.4434.30.camel@verge.scott.net.au>
Reply-to: markgw@xxxxxxx
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)


Nathan Scott wrote:
Changes committed to git://oss.sgi.com:8090/nathans/pcp.git

 src/cpan/PMDA.xs        |    7 ++++---
 src/cpan/local.c        |   20 +++++++++++++-------
 src/pmdas/mailq/mailq.c |    5 ++++-
 3 files changed, 21 insertions(+), 11 deletions(-)

commit 302791ace69ffeefa611a7f768e469549c129596
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Thu Oct 30 13:47:44 2008 +1100

    Resolve several compiler warnings, noticed on SLES10 builds:
    - chdir return value should not be ignored
    - cpan clustertab memory alloc cast pointer to signed type
    - ensure variables not declared after code, ISO C90 hath spoken.

We've been having trouble with cpan in our chroot build environment. Does any of the following ring any bells? Wrong Perl or missing modules??

=== cpan ===
ln -s ../../COPYING COPYING
perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for PCP::PMDA
/usr/bin/gmake -f Makefile
cp pmdanews.pl blib/lib/PCP/pmdanews.pl
cp pmdasimple.pl blib/lib/PCP/pmdasimple.pl
cp PMDA.pm blib/lib/PCP/PMDA.pm
AutoSplitting blib/lib/PCP/PMDA.pm (blib/lib/auto/PCP/PMDA)
cp dbprobe.pl blib/lib/PCP/dbprobe.pl
cp pmdadbping.pl blib/lib/PCP/pmdadbping.pl
cc -c  -I../include -I/usr/include/pcp -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe
-DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC
"-I/usr/lib/perl5/5.8.8/ia64-linux-thread-multi/CORE"
-DPERLIO_NOT_STDIO=0 local.c
local.c: In function 'local_pmns_split':
local.c:356: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c:363: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c:366: warning: ignoring return value of 'write', declared with
attribute warn_unused_result
local.c: In function 'local_pmns_write':
local.c:405: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c:443: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c:446: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c: In function 'local_pmns_clear':
local.c:465: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
local.c:480: warning: ignoring return value of 'chdir', declared with
attribute warn_unused_result
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  PMDA.xs > PMDA.xsc
&& mv PMDA.xsc PMDA.c
cc -c  -I../include -I/usr/include/pcp -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe
-DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC
"-I/usr/lib/perl5/5.8.8/ia64-linux-thread-multi/CORE"
-DPERLIO_NOT_STDIO=0 PMDA.c
PMDA.xs: In function 'refresh':
PMDA.xs:85: warning: ISO C90 forbids mixed declarations and code
PMDA.xs: In function 'XS_PCP__PMDA_new':
PMDA.xs:406: warning: implicit declaration of function 'pmParseDebug'
PMDA.xs: In function 'XS_PCP__PMDA_add_metric':
PMDA.xs:622: warning: pointer targets in assignment differ in signedness
Running Mkbootstrap for PCP::PMDA ()
chmod 644 PMDA.bs
rm -f blib/arch/auto/PCP/PMDA/PMDA.so
LD_RUN_PATH="/usr/lib" cc  -shared local.o PMDA.o  -o
blib/arch/auto/PCP/PMDA/PMDA.so   \
   -lpcp_pmda -lpcp     \

chmod 755 blib/arch/auto/PCP/PMDA/PMDA.so
cp PMDA.bs blib/arch/auto/PCP/PMDA/PMDA.bs
chmod 644 blib/arch/auto/PCP/PMDA/PMDA.bs
Manifying blib/man3/PCP::dbprobe.3pm
Manifying blib/man3/PCP::PMDA.3pm
Manifying blib/man3/PCP::pmdadbping.3pm
rm -f PCP-PMDA-*
/usr/bin/gmake -f Makefile dist
rm -rf PCP-PMDA-1.00
/usr/bin/perl "-MExtUtils::Manifest=manicopy,maniread" \
        -e "manicopy(maniread(),'PCP-PMDA-1.00', 'best');"
-e: COPYING not found at -e line 1
Can't read COPYING: No such file or directory
mkdir PCP-PMDA-1.00
gmake[3]: *** [create_distdir] Error 2
gmake[2]: *** [dist] Error 2
gmake[1]: *** [default_pcp] Error 2
gmake[1]: Leaving directory `/usr/src/packages/BUILD/pcp-sgi-2.7.8/src'
make: *** [default_pcp] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.7167 (%build)




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