Hi Simon, > While debugging a 'asprintf' bug on Windows, I noticed that building the > 'vasprintf' module fails: > > gnulib-tool --create-testdir --dir m --with-tests vasprintf > cd m > ./configure --host=i586-mingw32msvc --build=i686-pc-linux-gnu > make > > results in: > > g++ -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. > -I../gllib -I./../gllib -MT test-string-c++2.o -MD -MP -MF > .deps/test-string-c++2.Tpo -c -o test-string-c++2.o test-string-c++2.cc > mv -f .deps/test-string-c++2.Tpo .deps/test-string-c++2.Po > g++ -o test-string-c++.exe test-string-c++.o test-string-c++2.o > ../gllib/libgnu.a > test-string-c++.o:(.data+0x0): undefined reference to `rpl_memchr' > test-string-c++.o:(.rodata+0x0): undefined reference to `rpl_memchr' > test-string-c++2.o:(.rodata+0x0): undefined reference to `rpl_memchr' > collect2: ld returned 1 exit status > make[4]: *** [test-string-c++.exe] Error 1 > make[4]: Leaving directory `/home/jas/src/gnulib/m/gltests'
Can you show the result of 'grep MEMCHR config.status' and the relevant portion of gllib/string.h ? In two native mingw builds, one with default settings and one with gl_cv_func_memchr_works=no, I could not reproduce your problem. Bruno