Bug 4736

Summary: lmbench build failure
Product: buildroot Reporter: Sven Neumann <s.neumann>
Component: OtherAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: minor CC: buildroot
Priority: P5    
Version: 2011.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Sven Neumann 2012-02-02 08:24:50 UTC
Build of lmbench failed:

lat_rpc.c:(.text+0x87): undefined reference to `svcudp_create'
lat_rpc.c:(.text+0xb8): undefined reference to `svctcp_create'
lat_rpc.c:(.text+0x16a): undefined reference to `svc_run'
/tmp/ccV4OkdU.o: In function `main':
lat_rpc.c:(.text+0x277): undefined reference to `clnt_create'
/tmp/ccV4OkdU.o: In function `initialize':
lat_rpc.c:(.text+0x484): undefined reference to `clnt_create'
collect2: ld returned 1 exit status
make[2]: *** [../bin/i586/lat_rpc] Error 1

Looks like lmbench does not only need basic RPC support in the toolchain, it needs full RPC support.


Compilation fails with this uclibc config:

UCLIBC_HAS_RPC=y
# UCLIBC_HAS_FULL_RPC is not set
# UCLIBC_HAS_REENTRANT_RPC is not set


It succeeds with:

UCLIBC_HAS_RPC=y
UCLIBC_HAS_FULL_RPC=y
UCLIBC_HAS_REENTRANT_RPC=y
Comment 1 Gustavo Zacarias 2013-05-04 18:00:48 UTC
Custom uclibc configurations are the responsibility of the user, we can't make buildroot audit every single option for every single package.
That's the reason we've got default samples that are appropiately tweaked by BR when enabling/disabling toolchain options like WCHAR, RPC, LFS and so on.