Re: [PATCH 1/2] build: avoid journald on rhel 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/01/2012 05:07 PM, Eric Blake wrote:
> Commit f6430390 broke builds on RHEL 5, where glibc (2.5) is too
> old to support mkostemp (2.7) or htole64 (2.9).  While gnulib
> has mkostemp, it still lacks htole64; and it's not worth dragging
> in replacements on systems where journald is unlikely to exist
> in the first place, so we just use an extra configure-time check
> as our witness of whether to attempt compiling the code.
> 
> * src/util/logging.c (virLogParseOutputs): Don't attempt to
> compile journald on older glibc.
> * configure.ac (AC_CHECK_FUNCS_ONCE): Check for htole64.

Actually, this won't work (glad I didn't push yet); on F17 little-endian
machines, htole64 is a macro with no backing function, so you have to
use AC_CHECK_DECLS rather than AC_CHECK_FUNCS to detect it.  v2 coming up.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]