bug-gnulib
[Top][All Lists]
Advanced

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

Re: Tests on MinGW: undef ref pthread_mutex_lock/unlock


From: Tim Rühsen
Subject: Re: Tests on MinGW: undef ref pthread_mutex_lock/unlock
Date: Thu, 11 Apr 2019 21:35:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 11.04.19 20:56, Bruno Haible wrote:
> Hi Tim,
> 
>>> For analyzing this, we would need the generated
>>>   - config.log,
>>>   - config.status,
>>>   - config.h.
>>
>> Thanks, attached.
> 
> You should also say which package you are building, and with which
> configure options you configured it.
> 
> It looks like
>   - you are building gnutls-3.6.7, not just a gnulib testdir,
>   - you gave the configure option --disable-threads,
>   - but at the same time the C macro USE_POSIX_THREADS is defined.
> How come?

Yes, it's gnutls from master. I don't use --disable-threads nor do I set
USE_POSIX_THREADS manually.

Basically (after building the dependencies):

###################
unset CC
unset CXX

#PREFIX=i686-w64-mingw32
PREFIX=x86_64-w64-mingw32

export PATH="/usr/$PREFIX/bin:$PATH"
export INSTALLDIR="$PWD/$PREFIX"
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig:/usr/$PREFIX/lib/pkgconfig
export PKG_CONFIG_LIBDIR="$INSTALLDIR/lib/pkgconfig"
export PKG_CONFIG="/usr/bin/${PREFIX}-pkg-config"
export CPPFLAGS="-I$INSTALLDIR/include"
export LDFLAGS="-L$INSTALLDIR/lib"

# stuff for running tests
export GCCLIB=$(dirname $(find /usr/lib/gcc/$PREFIX -name
libgcc_s_seh-1.dll|grep posix))
export
WINEPATH="$WINEPATH;/usr/$PREFIX/bin;/usr/$PREFIX/lib;$PWD/libwget/.libs;$GCCLIB"

# let mingw compiler be less verbose
export CFLAGS="-O2 -Wall -Wno-format"

git clone https://gitlab.com/gnutls/gnutls.git
./configure --build=x86_64-pc-linux-gnu --host=$PREFIX \
  --with-nettle-mini --enable-shared --with-included-libtasn1 \
  --without-p11-kit --disable-doc --disable-tests --disable-tools
--disable-cxx \
  --disable-maintainer-mode --disable-libdane
--disable-hardware-acceleration --disable-guile --prefix=$INSTALLDIR
make -j$(nproc)
make check -j$(nproc)
###################

I could give the the complete script, which worked since years (apart
from temporary dependency/build issues). I use it every few weeks,
whenever there are MinGW issue with any of the projects I work on.

But it has some build overhead, creating from scratch libunistring,
libidn2, nettle, gnutls.

Let me know if it is of any help for you (I have to brush up a bit
before sending).

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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