pcp
[Top] [All Lists]

Compile error of autofsd-probe

To: <pcp@xxxxxxxxxxx>
Subject: Compile error of autofsd-probe
From: ye.youqun <ye.youqun@xxxxxxxxx>
Date: Mon, 13 Jul 2015 18:03:12 +0800
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
Hi,all
ÂÂÂ I cloned the pcp source code, and after runing ./configure script, make, then 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?

My Enviroment is Redhat 6.2 with kernel 4.2.0,gcc is 4.4.6.

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