On 11/6/2010 2:38 AM, Don Ward wrote:
Jimmy Richardson wrote:
I got latest MinGW installed and I'm trying to compile latest GNURadio
based on the steps from
http://gnuradio.org/redmine/wiki/gnuradio/MingwInstallMain, everything
works if I put the gnuradio source files under /usr/src/gnuradio,
however if I run ./bootstrap and ./configure from outside MSYS directory
system, say E:\gnuradio (i.e. change directory to /e/gnuradio inside
MSYS) and run ./bootstrap and ./configure, then make, I got error:
test_gruel.cc: In function 'void ensure_unittest_path(const char*, const
char*)'
:
test_gruel.cc:75:3: error: 'mkdir' was not declared in this scope
make[5]: *** [test_gruel.o] Error 1
Is there a ./configure flag I should use in this case?
My guess is that this is due to a recent change in
gruel/src/lib/test_gruel.cc. Try adding the line
#include <unistd.h>
immediately after the line
#include <sys/stat.h>
Please let us know if this works.
It did get rid of the original error, but I got a new one now:
test_gruel.cc: In function 'void ensure_unittest_path(const char*, const
char*)'
:
test_gruel.cc:76:3: error: too many arguments to function 'int mkdir(const
char*)'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/io.h:302:3
7: note: declared here
test_gruel.cc:77:3: error: too many arguments to function 'int mkdir(const
char*
)'
c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/io.h:302:3
7: note: declared here
make[5]: *** [test_gruel.o] Error 1
I can see the following in config.log:
configure:19611: checking whether mkdir accepts only one arg
configure:19628: gcc -c -DWINVER=0x0501 -I/usr/local/include conftest.c
>&5
configure:19628: $? = 0
configure:19629: result: yes