Skip to contentSkip to conversation

Can't compile lsof: no rpc.h ?

Buildroot Guillaume Dargaud 2 participants 3 messages Oct 22, 2010

lore
Share & tools
lore
#0 lore raw

Hello all,
I can't compile lmbench or lsof, it complains that it cannot find rpc.h... RPC is enabled in the .config

/home/dargaud/Devel/buildroot-2010.08/output/staging/usr/bin/powerpc-unknown- linux-uclibc-gcc -- sysroot=/home/dargaud/Devel/buildroot-2010.08/output/staging -pipe -Os - mtune=405 -msoft-float - I/home/dargaud/Devel/buildroot-2010.08/output/staging/usr/include -
I/home/dargaud/Devel/buildroot-2010.08/output/staging/include -c -o isfn.o
isfn.c
In file included from ../lsof.h:195,

                 from isfn.c:67:

../dlsof.h:59:21: error: rpc/rpc.h: No such file or directory ../dlsof.h:60:27: error: rpc/pmap_prot.h: No such file or directory make[2]: *** [isfn.o] Error 1
make[2]: Leaving directory `/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src/lib' make[1]: *** [lib/liblsof.a] Error 2
make[1]: Leaving directory `/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src'
make: *** [/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src/lsof] Error 2

Signature · 2 lines
Guillaume Dargaud
http://www.gdargaud.net/
#1 lore raw

Sorry about that, a make clean solved it.

Quoted 24 lines · On Friday 22 October 2010 13:40:41 Guillaume Dargaud wrote:

Hello all,
I can't compile lmbench or lsof, it complains that it cannot find rpc.h... RPC is enabled in the .config

/home/dargaud/Devel/buildroot-2010.08/output/staging/usr/bin/powerpc-unknow n- linux-uclibc-gcc -- sysroot=/home/dargaud/Devel/buildroot-2010.08/output/staging -pipe -Os - mtune=405 -msoft-float - I/home/dargaud/Devel/buildroot-2010.08/output/staging/usr/include -
I/home/dargaud/Devel/buildroot-2010.08/output/staging/include -c -o
isfn.o isfn.c
In file included from ../lsof.h:195,

                 from isfn.c:67:

../dlsof.h:59:21: error: rpc/rpc.h: No such file or directory ../dlsof.h:60:27: error: rpc/pmap_prot.h: No such file or directory make[2]: *** [isfn.o] Error 1
make[2]: Leaving directory `/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src /lib' make[1]: *** [lib/liblsof.a] Error 2
make[1]: Leaving directory `/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src ' make: *** [/home/dargaud/Devel/buildroot-2010.08/output/build/lsof_4.81/lsof_4.81_src /lsof] Error 2

Signature · 2 lines
Guillaume Dargaud
http://www.gdargaud.net/
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Guillaume" == Guillaume Dargaud <[email protected]> writes:

Guillaume> Sorry about that, a make clean solved it.

Good. I was just about to ask you if you had enabled the RPC option without recompiling the toolchain, because it works here.

Signature · 1 line
Bye, Peter Korsgaard