On 06/04/12 17:23, Thomas de Roo wrote:
> On 04/06/12 00:10, Bruce Dubbs wrote:
>> Thomas de Roo wrote:
>>> Hello,
>>>
>>> I’m trying to compile open-vm-tools-2012.03.13-651368. I get this error:
>>>
>>> ../lib/guestRpc/.libs/libGuestRpc.a(nicinfo_xdr.o): In function 
>>> `xdr_uint32':
>>> /usr/src/blfs/open-vm-tools-2012.03.13-651368/lib/include/vmxrpc.h:190: 
>>> undefined reference to `xdr_uint32_t'
>>> /usr/src/blfs/open-vm-tools-2012.03.13-651368/lib/include/vmxrpc.h:190: 
>>> undefined reference to `xdr_uint32_t'
>>> collect2: error: ld returned 1 exit status
>>> make[1]: *** [libvmtools.la] Error 1
>>> make[1]: Leaving directory 
>>> `/usr/src/blfs/open-vm-tools-2012.03.13-651368/libvmtools'
>>> make: *** [all-recursive] Error 1
>>>
>>> I checked that 
>>> /usr/src/blfs/open-vm-tools-2012.03.13-651368/lib/include/vmxrpc.h has 
>>> "#include<rpc/xdr.h>". /usr/include/rpc/xdr.h has a line "extern bool_t 
>>> xdr_uint32_t (XDR *__xdrs, uint32_t *__up) __THROW;".
>>>
>>> Where should I look for a solution?
>> Have you installed libtirpc?
>>
>> You may have to add -ltirpc to the libraries linked.
>>
>>     -- Bruce
> I have libtirpc installed. I tried adding -ltirpc using:
> LIBS="-ltirpc" ./configure --prefix=/usr --sysconfdir=/etc  --without-x 
> --without-icu
> The Makefile has a line "LIBS = -ltirpc". But I still get this error.
> 
> Thanks,
> Thomas

Looks like a similar problem I had with libvirt.
Try installing portablexdr.
http://people.redhat.com/~rjones/portablexdr/files
I also had a conflict problem with portablexdr and libtirpc, so I
uninstalled libtirpc.
On a side note, I think the instructions for copying the rpc header
files in LFS 7.1 is wrong, well at least the rpc.h file seemed wrong, it
had a "config.h" reference in it. Copying the header files from the
libtirpc instructions fixed my other problem. (I had to ignore the if
statement which checked for the rpc.h file in the first place).

Regards,
Wayne.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to