On 04/09/2013 09:55 PM, JouVash wrote: > > >> Hi, i was trying to compile and install lsof in my linux (LFS) System, >> and i before installed all the libraries for RPC ( libtirpc-0.2.3 ).. >> so them when im going to install lsof: >> >> lsof_4.8.7 >> >> ./Configure linux ( works great with out warnings or everything bad >> and i skipped both configurations making it default ) >> >> BUT >> >> when i did >> >> make >> >> some erros comes in the standard exit...: >> ================================================================================================================================ >> >> ┌─( root ) - ( ~/lsof_4.87/lsof_4.87_src ) >> └──┤ make >> >> (cd lib; make DEBUG="-O" CFGF="-DLINUXV=38001 -DGLIBCV=217 -DHASIPv6 >> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAS_STRFTIME >> -DLSOF_VSTR=\"3.8.1\"") >> make[1]: se ingresa al directorio `/root/lsof_4.87/lsof_4.87_src/lib' >> make[1]: No se hace nada para `all'. >> make[1]: se sale del directorio `/root/lsof_4.87/lsof_4.87_src/lib' >> Constructing version.h >> cc -DLINUXV=38001 -DGLIBCV=217 -DHASIPv6 -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE64_SOURCE -DHAS_STRFTIME -DLSOF_VSTR=\"3.8.1\" -O -c >> -o usage.o usage.c >> cc -o lsof dfile.o dmnt.o dnode.o dproc.o dsock.o dstore.o arg.o >> main.o misc.o node.o print.o proc.o store.o usage.o util.o -L./lib -llsof >> print.o: En la funci?n `lkup_port': >> print.c:(.text+0x40d): referencia a `clnt_create' sin definir >> print.c:(.text+0x43c): referencia a `xdr_pmaplist' sin definir >> print.c:(.text+0x44c): referencia a `xdr_void' sin definir >> collect2: error: ld devolvi? el estado de salida 1 >> make: *** [lsof] Error 1 >> >> ================================================================================================================================ >> * >> * >> *Translating:* >> * >> * >> print.o: in the funtion `lkup_port': >> >> >> undefined reference to 'clnt_create' >> >> >> undefined reference to 'xdr_pmaplist' >> >> undefined reference to 'xdr_void' >> >> collect2: error: ld return exit 1 >> >> >> > > >
You need to explicitly link it with libtirpc ... LDFLAGS=-ltirpc ./configure ... I guess -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page