http://www.perlmonks.org?node_id=896121


in reply to Re^4: KinoSearch Installation errors
in thread KinoSearch Installation errors

I get the same errors as OP with latest mingw
$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrap +per.exe Target: mingw32 Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,f +ortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable- +shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-d +ebug --enable-version-specific-runtime-libs --disable-werror --build= +mingw32 --prefix=/mingw Thread model: win32 gcc version 4.5.2 (GCC)
And yes, I have
C:\MinGW\include\dirent.h C:\MinGW\share\libtool\libltdl\lt__dirent.c C:\MinGW\share\libtool\libltdl\libltdl\lt__dirent.h

I also get a bunch of these warnings

warning: incompatible implicit declaration of built-in function 'alloc +a'
which seems to be related to Richard Henderson - Re: Fix implicit declaration warnings for alloca in target files
On Thu, Sep 16, 2004 at 08:55:50AM -0400, Kaveh R. Ghazi wrote: > +/* GCC always provides __builtin_alloca(x). */ > +#ifndef alloca > +#define alloca(x) __builtin_alloca(x) > +#endif Should be #undef, not #ifndef.