Re: [Hamlib-developer] How to build latest sources using Cygwin
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Nate B. <n0...@n0...> - 2013-07-22 02:10:57
|
* On 2013 21 Jul 20:52 -0500, Bill Somerville wrote: > Now I have a problem with the generated config.h > > ------------------------------------------------------------------------------------------- > > $ make > Making all in libltdl > make[1]: Entering directory > `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' > make all-am > make[2]: Entering directory > `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' > CC loadlibrary.lo > In file included from ../include/config.h:578:0, > from libltdl/lt__private.h:35, > from loaders/loadlibrary.c:32: > /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2: error: > #error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h > instead." > In file included from ../include/config.h:578:0, > from libltdl/lt__private.h:35, > from loaders/loadlibrary.c:32: > /usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:147:8: error: > redefinition of 'struct ip_mreq' > In file included from > /usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:93:0, > from ../include/config.h:491, > from libltdl/lt__private.h:35, > from loaders/loadlibrary.c:32: > /usr/i686-pc-mingw32/sys-root/mingw/include/winsock.h:315:8: note: > originally defined here > Makefile:746: recipe for target `loadlibrary.lo' failed > make[2]: *** [loadlibrary.lo] Error 1 > make[2]: Leaving directory > `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' > Makefile:491: recipe for target `all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/cygdrive/c/Cygwin/home/bill/src/hamlib-code/libltdl' > Makefile:511: recipe for target `all-recursive' failed > make: *** [all-recursive] Error 1 This error is occuring in the libltdl code which is placed in the Hamlib tree by the autogen.sh bootstrap process. As this code came from your Libtool installation, I'm afraid that I'm in the dark as to the reason. > ---------------------------------------------------------------------------------- > > Looks like including both windows.h and ws2tcpip.h is not valid unless > WIN32_LEAN_AND_MEAN is defined. > > I get this info from > http://msdn.microsoft.com/en-us/library/windows/desktop/ms738562%28v=vs.85%29.aspx > > > I'm no autotools expert so not sure what to do here, any ideas? I suspect it is more of a MinGW issue than Autotools. As there are intentions to remove the need for libltdl at some point in the future, this issue may resolve itself at some point. ;-) 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 |