Forgot to CC the list. On Fri, Aug 12, 2011 at 7:49 PM, Steve Bennett <ste...@workware.net.au> wrote: > On 13/08/2011, at 7:26 AM, Jie Zhang wrote: > >> On Fri, Aug 12, 2011 at 5:19 PM, Steve Bennett <ste...@workware.net.au> >> wrote: >>> On 13/08/2011, at 6:41 AM, Jie Zhang wrote: >>> >>>> The current HEAD cannot build with mingw32 >>>> >>>> libtool: link: i586-mingw32msvc-gcc -std=gnu99 -g -O2 >>>> -I/home/jie/installs/openocd/include -D__USE_MINGW_ANSI_STDIO -Wall >>>> -Wstrict-prototypes -Wformat-security -Wshadow -Wextra >>>> -Wno-unused-parameter -Wbad-function-cast -Wcast-align >>>> -Wredundant-decls -Werror -o openocd.exe main.o >>>> -L/home/jie/installs/openocd/lib ./.libs/libopenocd.a -lws2_32 >>>> ../jimtcl/libjim.a >>>> ./.libs/libopenocd.a(libhelper_la-command.o): In function >>>> `process_jim_events': >>>> /home/jie/sources/openocd/src/helper/command.c:1398: undefined >>>> reference to `_Jim_ProcessEvents' >>>> collect2: ld returned 1 exit status >>>> make[4]: *** [openocd.exe] Error 1 >>>> make[4]: Leaving directory `/home/jie/sources/openocd/src' >>>> >>>> Jim_ProcessEvents is defined in jimtcl/jim-eventloop.c. >>>> >>>> set needs(eventloop) {expr {[have-feature select] || [have-feature >>>> usleep]}} >>>> >>>> but >>>> >>>> Checking for select...not found >>>> Checking for usleep...not found >>> >>> Can you send me jimtcl/config.log >>> >> Attached. >> >>> This is on Linux, right? >>> >> Yes. Debian testing AMD64. > > So, no usleep. Could it be a macro?
I don't know. > Can you comment out that "needs(eventloop)" line and see if it works? Now I have no machine to test it. > Otherwise we will need to implement usleep() in terms of Sleep(). > Another option is to drop mingw32 and require mingw-w64. Regards, Jie _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development