From: Nate B. <n0...@n0...> - 2011-03-21 01:22:15
|
* On 2011 20 Mar 17:16 -0500, Charles Suprin wrote: > Secondly, the compile ends here for me. > > /bin/bash ../libtool --tag=CC --mode=compile i586-mingw32msvc-gcc > -DHAVE_CONFIG_H -I. -I../include -I../include -I../src -I../lib -g > -O2 -Wall -I./libltdl -MT termios.lo -MD -MP -MF .deps/termios.Tpo -c > -o termios.lo termios.c > libtool: compile: i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../include > -I../include -I../src -I../lib -g -O2 -Wall -I./libltdl -MT termios.lo > -MD -MP -MF .deps/termios.Tpo -c termios.c -DDLL_EXPORT -DPIC -o > .libs/termios.o > In file included from termios.c:50: > win32termios.h:142: error: conflicting types for ‘usleep’ > ../include/config.h:382: error: previous declaration of ‘usleep’ was here > make[1]: *** [termios.lo] Error 1 I received the same error, Charles. Looking at the relevant lines in win32termios.h and config.h I chose to edit win32termios.h at line 142 to: int usleep(unsigned long usec); In this case I changed the 'unsigned int usec' to above which matches the definition in config.h. The compile made it quite some way. Now I have received the following error: libtool: compile: i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../src -I../lib -g -O2 -Wall -I./libltdl -MT rc2800.lo -MD -MP -MF .deps/rc2800.Tpo -c rc2800.c -DDLL_EXPORT -DPIC -o .libs/rc2800.o mv -f .deps/rc2800.Tpo .deps/rc2800.Plo /bin/bash ../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -g -O2 -Wall -I./libltdl -no-undefined -module -avoid-version -o hamlib-m2.la -rpath /tmp/mingw-inst/lib/hamlib rc2800.lo ../src/libhamlib.la libtool: link: i586-mingw32msvc-gcc -shared .libs/rc2800.o ../src/.libs/libhamlib.dll.a -L/home/nate/git/hamlib/libltdl -o .libs/hamlib-m2.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/hamlib-m2.dll.a Creating library file: .libs/hamlib-m2.dll.a .libs/rc2800.o: In function `rc2800_rot_stop': /home/nate/git/hamlib/m2/rc2800.c:275: undefined reference to `_usleep' .libs/rc2800.o: In function `rc2800_rot_set_position': /home/nate/git/hamlib/m2/rc2800.c:210: undefined reference to `_usleep' collect2: ld returned 1 exit status make[1]: *** [hamlib-m2.la] Error 1 make[1]: Leaving directory `/home/nate/git/hamlib/m2' make: *** [install-recursive] Error 1 So, it may be that my quick fix causes this problem. I tried a quick #ifdef HAVE_USLEEP #undef HAVE_USLEEP ahead of the usleep definition in win32termios.h and broke things even more severely. So I'm grasping at straws. Windows is a pain... 73, de Nate >> -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Ham radio, Linux, bikes, and more: http://www.n0nb.us |