From a clean repo with: make -f win32/Makefile.mingw
Cheers, Trond On 28. juni 2011, at 09.58, Rafal Likus wrote: > Ok, I downloaded latest MSysGit, and MinGW, both gives the same > result. > I downloaded official beta and latest snapshot of Memcached. > Copied m4/version.m4 from official beta to snapshot. > And: > ./config/autorun.sh - works OK - this not works in official beta. > ./configure - works OK. > make - gives errors. > The most strange for me is > gcc.exe: unrecognized option '-pthread' > > pthreads dlls and header files are in bin and lib directories. > > What am I doing wrong? > Nobody builds on Windows except Core Team - how do You do this? > > Maybe I should build MinGW from scratch? > > Can you help? I will be glad if I could test this version. > > Full dump from make: > > $ make > make all-am > make[1]: Entering directory `/c/Temp/memcached-16b7' > /bin/sh ./libtool --tag=CC --mode=compile gcc -std=gnu99 - > DHAVE_CONFIG_H -I. -I./include -I./libevent -I./utilities -I./include > -I./libevent -fvisibility=hidden -pthread -g -O2 -Wall -Werror - > pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls > -MT libmemcached_utilities_la-engine_loader.lo -MD -MP -MF .deps/ > libmemcached_utilities_la-engine_loader.Tpo -c -o > libmemcached_utilities_la-engine_loader.lo `test -f 'utilities/ > engine_loader.c' || echo './'`utilities/engine_loader.c > libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./include -I./ > libevent -I./utilities -I./include -I./libevent -fvisibility=hidden - > pthread -g -O2 -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing- > declarations -Wredundant-decls -MT libmemcached_utilities_la- > engine_loader.lo -MD -MP -MF .deps/libmemcached_utilities_la- > engine_loader.Tpo -c utilities/engine_loader.c -DDLL_EXPORT -DPIC - > o .libs/libmemcached_utilities_la-engine_loader.o > gcc.exe: unrecognized option '-pthread' > cc1.exe: warnings being treated as errors > utilities/engine_loader.c: In function 'load_engine': > utilities/engine_loader.c:32: error: implicit declaration of function > 'dlopen' > utilities/engine_loader.c:32: error: 'RTLD_NOW' undeclared (first use > in this function) > utilities/engine_loader.c:32: error: (Each undeclared identifier is > reported only once > utilities/engine_loader.c:32: error: for each function it appears in.) > utilities/engine_loader.c:32: error: 'RTLD_LOCAL' undeclared (first > use in this function) > utilities/engine_loader.c:32: error: assignment makes pointer from > integer without a cast > utilities/engine_loader.c:34: error: implicit declaration of function > 'dlerror' > utilities/engine_loader.c:34: error: initialization makes pointer from > integer without a cast > utilities/engine_loader.c:42: error: implicit declaration of function > 'dlsym' > utilities/engine_loader.c:42: error: initialization makes pointer from > integer without a cast > utilities/engine_loader.c:58: error: implicit declaration of function > 'dlclose' > make[1]: *** [libmemcached_utilities_la-engine_loader.lo] Error 1 > make[1]: Leaving directory `/c/Temp/memcached-16b7' > make: *** [all] Error 2 > > > > -- > Regards > Rafal
