[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool related compile issue on msys2

From: Bob Friesenhahn
Subject: Re: libtool related compile issue on msys2
Date: Sun, 9 Feb 2020 08:52:05 -0600 (CST)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

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 *) 
     |                ^~~~~~~
     |                spawnv

A bit more detailed on

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 
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 Friesenhahn
GraphicsMagick Maintainer,
Public Key,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]