Re: libtool related compile issue on msys2
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 9 Feb 2020, Torsten Kühnel wrote: > Hi, i encountered 2 similar errors in an attempt to build check-0.14.0 > and popt-1.16 on latest msys2. Msys2 targets native Windows APIs. I suggest consulting Microsoft's API documentation. > ... > ./.libs/lt-ex_output.c: In function 'main': > ./.libs/lt-ex_output.c:319:16: warning: implicit declaration of function '_spawnv'; did you mean 'spawnv'? [-Wimplicit-function-declaration] > 319 | rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); > | ^~~~~~~ > | spawnv > > A bit more detailed on https://pastebin.com/VKnYxXXm It seems like a Windows header file which declares spawnv is not being included. > For libcheck the problem can be solved by using cmake to build it. But > autotools/automake build system should work, too, as long as it is supported. > > What i hope will be until the end of the universe :) > > Configuring with any CFLAGS=-D_XOPEN_SOURCE=500 or such did not solve the problem. > Any help apreciated. It would be senseless for -D_XOPEN_SOURCE=500 to help for Msys2 because this is an option for POSIX APIs (specifically APIs defined by XOPEN), not Windows APIs. What does this issue have to do with libtool? I have not had any problems when compiling GraphicsMagick under msys2 and GraphicsMagick is also using libtool and using the Windows spawnvp() function. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt