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.
|
|