Bug 88800 - FTBFS with default params
Summary: FTBFS with default params
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xt (show other bugs)
Version: git
Hardware: Other All
: medium major
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 11:01 UTC by Vadim Rutkovsky
Modified: 2015-01-26 18:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Comment 1 Alan Coopersmith 2015-01-26 15:45:14 UTC
Works for me - with no detail on even what OS you're building on, not much
we can do here.

You need to figure out why configure found asprintf() in your platform's
libc, but cc did not find it in your platform's <stdio.h>.
Comment 2 Vadim Rutkovsky 2015-01-26 17:22:37 UTC
(In reply to Alan Coopersmith from comment #1)
> You need to figure out why configure found asprintf() in your platform's
> libc, but cc did not find it in your platform's <stdio.h>.

OS is a customized Yocto's Poky, sources are at https://github.com/cgwalters/poky/tree/gnomeostree-3.10-dylan
Comment 3 Yanko Kaneti 2015-01-26 17:23:57 UTC
Perhaps

diff --git a/util/makestrs.c b/util/makestrs.c
index 5764849..7e11547 100644
--- a/util/makestrs.c
+++ b/util/makestrs.c
@@ -25,7 +25,9 @@ in this Software without prior written authorization from The Open Group.
 */
 
 /* Constructs string definitions */
-
+#ifdef HAVE_ASPRINTF
+# define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
Comment 4 Alan Coopersmith 2015-01-26 17:26:15 UTC
Proposed fix for GNU libc platforms:
http://patchwork.freedesktop.org/patch/41113/
Comment 5 Rob Clark 2015-01-26 18:02:13 UTC
I've pushed the fix that I sent earlier today to xorg list


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.