discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Gnuradio compile errors


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Gnuradio compile errors
Date: Mon, 04 Jun 2012 14:57:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1


On 06/04/2012 02:24 AM, Phil wrote:
> On 04/06/12 16:48, Josh Blum wrote:
>>
>>
>> On 06/03/2012 05:14 PM, Phil wrote:
>>> /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
>>
>> 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.
> 
> 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?
> 

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

run cmake <path to gnuradio source tree>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]