Bug 55424 - Error when cross-compiling makekeys
Summary: Error when cross-compiling makekeys
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 14:57 UTC by Ross Burton
Modified: 2018-08-10 20:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2012-09-28 14:57:02 UTC
When cross-compiling makekeys on an older host (CentOS 5, for example):

makekeys-makekeys.o: In function `main':
makekeys.c:(.text+0x85): undefined reference to `__isoc99_sscanf'
makekeys.c:(.text+0xa7): undefined reference to `__isoc99_sscanf'

makekeys.c doesn't include config.h (as that has target information, not host) and this old libc doesn't expose these functions without _GNU_SOURCE.

We're working around this by passing -D_GNU_SOURCE when compiling makekeys, but Daniel Stone informed me that won't be acceptable upstream as it could potentially break/not work on Solaris.
Comment 1 GitLab Migration User 2018-08-10 20:10:17 UTC
-- 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/xorg/lib/libx11/issues/23.


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.