bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* Tests on MinGW: undef ref pthread_mutex_lock/unlock
@ 2019-04-11  7:18 Tim Rühsen
  2019-04-11  7:58 ` Bruno Haible
  0 siblings, 1 reply; 10+ messages in thread
From: Tim Rühsen @ 2019-04-11  7:18 UTC (permalink / raw)
  To: bug-gnulib


[-- Attachment #1.1: Type: text/plain, Size: 2219 bytes --]

Hi,

Running gnulib tests on MinGW (current Debian unstable) fail:

/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0x10): undefined reference
to `pthread_mutex_lock'
/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0x83): undefined reference
to `pthread_mutex_unlock'
/usr/bin/x86_64-w64-mingw32-ld:
libtests.a(localename.o):localename.c:(.text+0xa8): undefined reference
to `pthread_mutex_unlock'
collect2: error: ld returned 1 exit status

This is with latest master (eb8278fefa0bbf2a53b706bffb2c99ccfe5d7bd4).

From gl/Makefile.am:
# Generated by gnulib-tool.
# Reproduce by:
# gnulib-tool --import --local-dir=gl/override \
#  --lib=libgnu \
#  --source-base=gl \
#  --m4-base=m4 \
#  --doc-base=doc \
#  --tests-base=gl/tests \
#  --aux-dir=build-aux \
#  --with-tests \
#  --no-conditional-dependencies \
#  --libtool \
#  --macro-prefix=gl \
#  --avoid=alignof-tests \
#  --avoid=lock-tests \
#  --avoid=lseek-tests \
#  alloca \
#  arpa_inet \
#  byteswap \
#  c-ctype \
#  c-strcase \
#  extensions \
#  func \
#  gendocs \
#  getline \
#  gettext-h \
#  gettimeofday \
#  hash-pjw-bare \
#  havelib \
#  inet_ntop \
#  inet_pton \
#  intprops \
#  lib-msvc-compat \
#  lib-symbol-versions \
#  maintainer-makefile \
#  manywarnings \
#  memmem-simple \
#  minmax \
#  netdb \
#  netinet_in \
#  pmccabe2html \
#  read-file \
#  secure_getenv \
#  setsockopt \
#  snprintf \
#  stdint \
#  strcase \
#  strdup-posix \
#  strndup \
#  strtok_r \
#  strverscmp \
#  sys_socket \
#  sys_stat \
#  sys_types \
#  time_r \
#  unistd \
#  valgrind-tests \
#  vasprintf \
#  vsnprintf \
#  warnings

My environment, if of any interest:
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"
export CFLAGS="-O2 -Wall -Wno-format"

Any help is thankfully appreciated,
Tim


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-04-13 15:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11  7:18 Tests on MinGW: undef ref pthread_mutex_lock/unlock Tim Rühsen
2019-04-11  7:58 ` Bruno Haible
2019-04-11  8:49   ` Tim Rühsen
2019-04-11 18:56     ` Bruno Haible
2019-04-11 19:35       ` Tim Rühsen
2019-04-11 20:33       ` Tim Rühsen
2019-04-12  0:26         ` Bruno Haible
2019-04-12  1:26           ` Eric Blake
2019-04-12  7:15           ` Tim Rühsen
2019-04-13 15:07             ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).