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
|