discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Make fail...config.h:467: error: 'usleep' was not


From: Don Ward
Subject: Re: [Discuss-gnuradio] Make fail...config.h:467: error: 'usleep' was not declared in this scope
Date: Thu, 1 Jan 2009 21:00:29 -0500

"Dan J" wrote:

Finally was able to successfully configure gnuradio on
Windows XP with MinGW/MSYS but fails during make. Does anyone have an > idea of what's
going on here?
. . .
$ make
make  all-recursive
make[1]: Entering directory `/usr/src/gnuradio-3.1.3'
Making all in config
make[2]: Entering directory `/usr/src/gnuradio-3.1.3/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gnuradio-3.1.3/config'
Making all in omnithread
make[2]: Entering directory `/usr/src/gnuradio-3.1.3/omnithread'
/bin/sh
../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..
-DOMNITHREAD_NT=1 -DPthreadDraftVersion=10
-I/usr/src/gnuradio-3.1.3/omnithread  -I/usr/local/include -g -O2 -Wall
-Woverloaded-virtual  -MT omni_time.lo -MD -MP -MF .deps/omni_time.Tpo
-c -o omni_time.lo omni_time.cc
libtool: compile:  g++
-DHAVE_CONFIG_H -I. -I.. -DOMNITHREAD_NT=1 -> DPthreadDraftVersion=10
-I/usr/src/gnuradio-3.1.3/omnithread -I/usr/local/include -g -O2 -Wall
-Woverloaded-virtual -MT omni_time.lo -MD -MP -MF .deps/omni_time.Tpo
-c omni_time.cc  -DDLL_EXPORT -DPIC -o .libs/omni_time.o
In file included from omni_time.cc:23:
../config.h: In function `int nanosleep(const timespec*, timespec*)':
../config.h:467: error: `usleep' was not declared in this scope
../config.h:467: warning: unused variable 'usleep'
make[2]: *** [omni_time.lo] Error 1
make[2]: Leaving directory `/usr/src/gnuradio-3.1.3/omnithread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnuradio-3.1.3'
make: *** [all] Error 2

There appears to be some confusion about what sleep functions are available in your installation. If you do "fgrep -i sleep config.h" in your top-level directory, you should see that HAVE_SLEEP is defined but HAVE_USLEEP and HAVE_NANOSLEEP are not. You should also see a declaration "int usleep(...", which should prevent the error shown above.

It sounds like configure thinks that it has found usleep, but when you go to compile it isn't found.

Did you install MinGW recently? Did you use the automated installer? Do you know what version of w32api you have?

-- Don W.





reply via email to

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