Summary: | tests/util/piglit-util.c:69: multiple definition of `asprintf' | ||
---|---|---|---|
Product: | piglit | Reporter: | Vinson Lee <vlee> |
Component: | tests | Assignee: | Eric Anholt <eric> |
Status: | RESOLVED FIXED | QA Contact: | Eric Anholt <eric> |
Severity: | blocker | ||
Priority: | medium | CC: | anuj.phogat, brianp, jfonseca, stereotype441 |
Version: | unspecified | Keywords: | regression |
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2013-12-10 06:55:18 UTC
Evidently, the C++ lib's asprintf() is clashing with Piglit's implementation in piglit-util.c But we're not seeing this with our in-house build of piglit on mingw64. Any ideas, Jose? Vinson, could you try something like this in piglit_util.c and see what happens: diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c index 1c7f118..0ff54ac 100644 --- a/tests/util/piglit-util.c +++ b/tests/util/piglit-util.c @@ -56,7 +56,7 @@ #include "piglit-util.h" -#if defined(_WIN32) +#if defined(_WIN32) && !defined(__MINGW32__) /* Some versions of MinGW are missing _vscprintf's declaration, although they * still provide the symbol in the import library. The patch in comment #1 fixes the build on Fedora. commit 52bce82ddb8fc4b2dce95af0908abf4054591b77 Author: Vinson Lee <vlee@freedesktop.org> Date: Sat Dec 21 13:22:23 2013 -0800 cmake: Check for asprintf. Newer versions of MinGW provide asprintf in stdio.h. Do not define asprintf if it already exists. This patch fixes the Fedora 20 MinGW build. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Tested-by: Brian Paul <brianp@vmware.com> |
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.