# Re: \[PATCH 13/14\] kdbus: add walk-through user space example

- From: Daniel Mack \<daniel@zonque.org\>
- Date: 2015-03-24 18:51:52 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/03/4458409
- Thread: https://ratatoskr.run/linux-api/2015/03/4446482/t.md

```text
On 03/24/2015 07:22 PM, Michal Marek wrote:
> Dne 24.3.2015 v 18:37 Jiri Slaby napsal(a):

>> Oh, it's cut&paste, I see. This does not look correct though. The hack
>> inclusive. Host progs are intended to be run on the host where the
>> kernel is built. During the compilation or such (like x/menuconfig).
>> Quite misleading naming if you are used to the autotools one.
> 
> when cross compiling, we are a bit between a rock and a hard place with
> the sample userspace programs:
> - The target toolchain might not have libc support
> - The host toolchain might be lacking recent kernel headers (therefore
>   the need to do make headers_install)
> - It's not clean whether the samples are meant to be ran on the build
>   host or target.

Exactly. I just checked in a cross-compiled source tree, and none of the
compiled standalone executables from samples/ or Documentation/ are
actually built for the target platform. Only the samples which come as
kernel modules are.

> There has been some work by Sam Ravnborg to introduce uapiprogs-y to for
> sample userspace programs, but for now, please use hostprogs-y,
> -Iusr/include and make each sample opt-in.

Alright then. Does the attached patch fix your problem, Jiri?


Thanks,
Daniel

```

## Attachments

- [0001-kdbus-sample-build-kdbus-workers-conditionally.patch](https://ratatoskr.run/linux-api/2015/03/4458409/attachment/0) (text/x-diff, 1419 bytes)
