I'm trying to get a simple, clean build of pkg-config in a windows xp environment using mingw32 (not the newest mingw-W64) and msys1, with gcc-4.9.3 and binutils-2.25.1. I enabled the '--with-internal-glib' option in order not to ship the final executable with huge several dll files. Build went ok, then when I launched 'make check' two tests failed: [cut] make[2]: Entering directory `/home/David/pkg-config-0.29.1/check' PASS: check-cflags PASS: check-libs PASS: check-mixed-flags PASS: check-non-l-flags PASS: check-define-variable PASS: check-libs-private PASS: check-requires-private PASS: check-circular-requires PASS: check-includedir PASS: check-conflicts PASS: check-missing PASS: check-special-flags PASS: check-sort-order PASS: check-duplicate-flags PASS: check-whitespace PASS: check-cmd-options PASS: check-version PASS: check-requires-version PASS: check-print-options ../pkg-config.exe --variable=pc_path pkg-config : 'C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\lib\pkgconfig;C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\share\pkgconfig' != 'C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\.libs\lib\pkgconfig;C:\MSYS_1\msys\1.0\home\David\pkg-config-0.29.1\.libs\share\pkgconfig' FAIL: check-path PASS: check-sysroot PASS: check-uninstalled PASS: check-debug PASS: check-gtk PASS: check-tilde PASS: check-relocatable ../pkg-config.exe --variable=prefix simple : 'C:/MSYS_1/msys/1.0/foo' != '/foo' FAIL: check-variable-override PASS: check-variables [cut] The code is from the vanilla tarball, maybe the git master has some latest useful fix? Can anybody help me fixing this? Thank you Elio
I don't think master has changed here, but I'm not sure there's actually a problem here. It might be more that the assumptions made in the tests don't quite hold in all the windows environments. I've had trouble handling all of those correctly. Could you tell me the contents of the environment variable OSTYPE? I.e., "echo $OSTYPE"? Also, can you show the contents of the generated file check/config.sh? Thanks.
Hi Dan, $OSTYPE gives "msys" (without quotes) and here you can read the content of 'config.sh' from check/ subdir: # # Settings from the configure script # abs_srcdir=/home/David/pkg-config-0.29.1/check top_srcdir=.. abs_top_srcdir=/home/David/pkg-config-0.29.1 abs_builddir=/home/David/pkg-config-0.29.1/check top_builddir=.. abs_top_builddir=/home/David/pkg-config-0.29.1 prefix=/usr/local exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib datarootdir=${prefix}/share datadir=${datarootdir} pc_path="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig" system_include_path="/usr/include" system_library_path="/usr/lib:/lib" list_indirect_deps=no PACKAGE_VERSION=0.29.1 native_win32=yes WINE=
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/47.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.