pcp
[Top] [All Lists]

Re: [pcp] Compile error of autofsd-probe

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Compile error of autofsd-probe
From: ye.youqun <ye.youqun@xxxxxxxxx>
Date: Tue, 14 Jul 2015 13:05:32 +0800
Cc: <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1442085639.37578313.1436848348043.JavaMail.zimbra@xxxxxxxxxx>
References: <55A38CE0.7080003@xxxxxxxxx> <1442085639.37578313.1436848348043.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
Thanks a lot.

å 2015/7/14 12:32, Nathan Scott åé:
Hi there,

----- Original Message -----
Hi,all
I cloned the pcp source code, and after runing ./configure script, make, then
(BTW, you may want to run "./Makepkgs --verbose" instead - will ensure all the
correct settings get set, and even produce rpms for you from your build)

I got the error message:



gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all
-D_FORTIFY_SOURCE=2 -Wall -O2 -g -DPCP_DEBUG -DPCP_VERSION=\"3.10.6\"
-I../../src/include -I../../src/include/pcp -o autofsd-probe -Wall
-L../../src/libpcp/src -L../../src/libpcp_pmda/src autofsd-probe.o -lpcp
/lib64/libc.so.6
autofsd-probe.o: In function `main':
/mnt/pcp/pcp/src/autofsd-probe/autofsd-probe.c:69: undefined reference to
`clnt_create'
/mnt/pcp/pcp/src/autofsd-probe/autofsd-probe.c:80: undefined reference to
`xdr_void'
/mnt/pcp/pcp/src/autofsd-probe/autofsd-probe.c:84: undefined reference to
`clnt_perror'
/mnt/pcp/pcp/src/autofsd-probe/autofsd-probe.c:70: undefined reference to
`clnt_pcreateerror'


I checked the /lib64/libc.so.6 and got the symbol:


[root@localhost autofsd-probe]# nm /lib64/libc.so.6 | grep clnt_create
......
0000003849715350 T clnt_create@xxxxxxxxxxx

Who knows the what the problem is?
Not really sure - its very odd, noone else is reporting this and all
our RHEL builds are resolving those symbols just fine.

My Enviroment is Redhat 6.2 with kernel 4.2.0,gcc is 4.4.6.
We should probably just remove this command - its an IRIX-specific bit
of code, not useful as-is on other platforms.  You can safely comment
it out (or remove it entirely) from the src/GNUmakefile SUBDIRS macro,
and not lose any sleep over it.

diff --git a/src/GNUmakefile b/src/GNUmakefile
index 4a78f89..9da9032 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -90,7 +90,6 @@ OTHER_SUBDIRS = \
        perl \
        python \
        procmemstat \
-       autofsd-probe \
        telnet-probe \
        collectl2pcp \
        iostat2pcp \


cheers.

--
Nathan

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