Summary: | colord 0.1.17 fails to compile undefined reference to g_mapped_file_new_from_fd | ||
---|---|---|---|
Product: | colord | Reporter: | Ionut Biru <biru.ionut> |
Component: | daemon | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | biru.ionut |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ionut Biru
2012-02-22 13:49:58 UTC
cd-profile.c: In function 'cd_profile_set_fd': cd-profile.c:1069:2: warning: implicit declaration of function 'g_mapped_file_new_from_fd' [-Wimplicit-function-declaration] cd-profile.c:1069:20: warning: assignment makes pointer from integer without a cast [enabled by default] CC colord-cd-main.o CC colord-cd-sensor-client.o CC colord-cd-udev-client.o CCLD colord colord-cd-profile.o: In function `cd_profile_set_fd': cd-profile.c:(.text+0x16d5): undefined reference to `g_mapped_file_new_from_fd' collect2: ld returned 1 exit status (In reply to comment #0) > http://gitorious.org/colord/master/commit/1094fb00ea300122fbb2182be543e6b6790d28d4 > > introduced g_mapped_file_new_from_fd. This is available in glib 2.31.x and > configure.ac wasn't bumped. Ohh, uncool. In the gtk-doc markup it said that it was available in 2.30, fixed: commit eece6cb9c33dbbc30e6a71e09f699fe1ab6fdff3 Author: Richard Hughes <richard@hughsie.com> Date: Thu Feb 23 10:34:46 2012 +0000 Fix up 'Since:' for g_mapped_file_new_from_fd() It was introduced in 2.31.0, not 2.30.x I'll now add the #ifdefs to avoid adding the configure.ac bump. commit 638a98fef16fa15946522d4112660b4b20c0d630 Author: Richard Hughes <richard@hughsie.com> Date: Thu Feb 23 10:43:37 2012 +0000 trivial: Fix compile with older versions of GLib g_mapped_file_new_from_fd() was introduced in 2.31.0 not 2.30.0 as the docs suggested. Resoves https://bugs.freedesktop.org/show_bug.cgi?id=46481 |
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.