Gnuradio compile errors

Almost there I think. It looks like I’m missing something to do with
gr-udp.

– ######################################################
– # Gnuradio enabled components
– ######################################################
– * python-support
– * testing-support
– * volk
– * doxygen
– * gruel
– * gnuradio-core
– * gnuradio-companion
– * gr-atsc
– * gr-audio
– * gr-digital
– * gr-noaa
– * gr-pager
– * gr-qtgui
– * gr-trellis
– * gr-uhd
– * gr-utils
– * gr-video-sdl
– * gr-vocoder
– * gr-fcd
– * gr-wavelet
– * gr-wxgui

– ######################################################
– # Gnuradio disabled components
– ######################################################
– * gr-comedi
– * gr-shd

/usr/local/src/gnuradio-3.6.0/gnuradio-core/src/lib/io/gr_udp_sink.cc:
In constructor gr_udp_sink::gr_udp_sink(size_t, const char*, short
unsigned int, int, bool):
/usr/local/src/gnuradio-3.6.0/gnuradio-core/src/lib/io/gr_udp_sink.cc:123:51:
error: optval_t was not declared in this scope
make[2]: ***
[gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/io/gr_udp_sink.cc.o]
Error 1
make[1]: *** [gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/all]
Error 2
make: *** [all] Error 2


Regards,
Phil

On 04/06/12 10:43, Josh B. wrote:

make[1]: *** [gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/all]
Error 2
make: *** [all] Error 2

Thats probably a simple fix away. But kind of unexpected. What OS?

Linux Josh.


Regards,
Phil

Error 2
make: *** [all] Error 2

Thats probably a simple fix away. But kind of unexpected. What OS?

-josh

On 03/06/12 08:54 PM, Phil wrote:

[gnuradio-core/src/lib/CMakeFiles/gnuradio-core.dir/io/gr_udp_sink.cc.o]
Linux Josh.

Phil, I’m pretty sure that Josh was asking about which particular
flavour of the dozen or so popular
Linux distributions you’re using. It matters. Different distributions
use different file-system layouts,
store header files in different locations, and have different sets of
“standard” packages installed.


Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On 04/06/12 12:49, Marcus D. Leech wrote:

Phil, I’m pretty sure that Josh was asking about which particular
flavour of the dozen or so popular
Linux distributions you’re using. It matters. Different distributions
use different file-system layouts,
store header files in different locations, and have different sets of
“standard” packages installed.

Ok Marcus, it’s Mageia 2, a fork off Mandriva.


Regards,
Phil

On 04/06/12 16:48, Josh B. wrote:

Error 1
#endif
#define SHUT_RDWR 2
typedef char* optval_t;
#endif

Im guessing that configure did not find netdb.h and if you make
VERBOSE=1, HAVE_NETDB_H will not be in the defines. Can you confirm.

Hello Josh,

I’m not entirely sure where I should find VERBOSE=1. It doesn’t appear
anywhere as a result of cmake. However, netdb.h is in the /usr/include
directory.

Does that help narrow down the problem?


Regards,
Phil

On 06/03/2012 05:14 PM, Phil wrote:

make: *** [all] Error 2
accounting for indentation, the code looks like this:

#if defined(HAVE_NETDB_H)
#include <netdb.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

#ifdef HAVE_SYS_SOCKET_H
    #include <sys/socket.h>  //usually included by <netdb.h>?
#endif
typedef void* optval_t;

#elif defined(HAVE_WINDOWS_H)
// if not posix, assume winsock
#define USING_WINSOCK
#include <winsock2.h>
#include <ws2tcpip.h>
#define SHUT_RDWR 2
typedef char* optval_t;
#endif

Im guessing that configure did not find netdb.h and if you make
VERBOSE=1, HAVE_NETDB_H will not be in the defines. Can you confirm.

(guess we should have used asio and not tried to write our own cross
platform sockets code)

-josh

On 06/04/2012 02:24 AM, Phil wrote:

make[2]: ***
#ifdef HAVE_SYS_TYPES_H
#include<winsock2.h>
I’m not entirely sure where I should find VERBOSE=1. It doesn’t appear
anywhere as a result of cmake. However, netdb.h is in the /usr/include
directory.

Does that help narrow down the problem?

Id recommend deleting the build directory (to start with a clean slate)

run cmake
and post the complete output

then cd into the build dir and run make VERBOSE=1
and post the complete output

I’m sure that we can get this logically sorted out!
-josh

On 04/06/12 05:27, Phil wrote:

Ok Marcus, it’s Mageia 2, a fork off Mandriva.

I’m just about to push 3.6.0 to Cauldron. :slight_smile:

Barry

On 05/06/12 07:57, Josh B. wrote:

Id recommend deleting the build directory (to start with a clean slate)

Hello Josh,

Starting again seems to have solved the problem except for:

99% tests passed, 1 tests failed out of 102

Total Test time (real) = 62.09 sec

The following tests FAILED:
1 - qa_volk_test_all (Failed)
Errors while running CTest

Do I need ga-volk anyway to use my ezcap RTL uUSB device?

I haven’t performed make install yet, just in case.


– ######################################################
– # Gnuradio enabled components
– ######################################################
– * python-support
– * testing-support
– * volk
– * doxygen
– * gruel
– * gnuradio-core
– * gnuradio-companion
– * gr-atsc
– * gr-audio
– * gr-digital
– * gr-noaa
– * gr-pager
– * gr-qtgui
– * gr-trellis
– * gr-uhd
– * gr-utils
– * gr-video-sdl
– * gr-vocoder
– * gr-fcd
– * gr-wavelet
– * gr-wxgui

– ######################################################
– # Gnuradio disabled components
– ######################################################
– * gr-comedi
– * gr-shd

– Using install prefix: /usr/local
– Building for version: 3.6.0 / 3.6.0
– Configuring done
– Generating done
– Build files have been written to: /usr/local/src/gnuradio-3.6.0/build
[r


Regards,
Phil