[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667079: uhd: FTBFS: error: 'rx_dsp_buff_size' was not declared in this scope

>>>>> Christoph Egger <christoph@debian.org> writes:
> /build/buildd-uhd_3.4.0-2-kfreebsd-amd64-jnOr7B/uhd-3.4.0/host/examples/network_relay.cpp:210:111: error: 'rx_dsp_buff_size' was not declared in this scope

Leading up to that is uhd-3.4.0/host/include/uhd/config.hpp
// Platform defines for conditional parts of headers:
// Taken from boost/config/select_platform_config.hpp,
// however, we define macros, not strings for platforms.
#if defined(linux) || defined(__linux) || defined(__linux__)
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
    #define UHD_PLATFORM_WIN32
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
    #define UHD_PLATFORM_BSD

and uhd-3.4.0/host/examples/network_relay.cpp
#if defined(UHD_PLATFORM_MACOS) || defined(UHD_PLATFORM_BSD)
    //limit buffer resize on macos or it will error
    const size_t rx_dsp_buff_size = size_t(1e6);
#elif defined(UHD_PLATFORM_LINUX) || defined(UHD_PLATFORM_WIN32)
    //set to half-a-second of buffering at max rate
    const size_t rx_dsp_buff_size = size_t(50e6);

>From the error it looks like UHD_PLATFORM_BSD remained undefined.
Isn't __FreeBSD__ defined in g++ for Debian's kfreebsd architectures?

What do the debian-bsd folk recommend doing here?


Reply to: