Summary: | asprintf not defined | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Dominique Leuenberger <dominique-freedesktop.org> | ||||||
Component: | App/xmodmap | Assignee: | Alan Coopersmith <alan.coopersmith> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | ||||||||
Version: | unspecified | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Dominique Leuenberger
2012-04-14 14:22:05 UTC
http://patchwork.freedesktop.org/patch/9923/ submitted for review letting autoconf pick the right #define for the platform, since not all of X.Org's supported platforms use/require _GNU_SOURCE for that. Fix pushed to git master. The committed fix didn't help, I still get the same error with xmodmap 1.0.7. Created attachment 60482 [details] [review] 0001-include-config.h-before-stdio.h-other-system-headers.patch Seems like something is different with your build setup then, since no other Linux user, nor the Linux tinderboxes, are reporting any such problem. However, I do see there could be an ordering problem, as configure now generates config.h to include: /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif But xmodmap.c doesn't include config.h directly, instead gets it via xmodmap.h which is loaded after stdio.h - the attached patch should correct it. I'm not going to bother pushing/releasing this until you test & confirm first though. (In reply to comment #4) > Created attachment 60482 [details] [review] [review] > 0001-include-config.h-before-stdio.h-other-system-headers.patch I made a test build with this patch attached (and one more without): - Without patch: fails (as expected) - With patch: Build succeeds. So from my PoV, this looks fine as a solution as well. Thanks, fix pushed to git master. |
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.