[systemd-devel] systemd 191 does not compile on 32 bit Linux

Dave Reisner d at falconindy.com
Sat Sep 22 06:44:23 PDT 2012


On Sat, Sep 22, 2012 at 03:24:45PM +0200, Henrik /KaarPoSoft wrote:
> Hi!
> 
> systemd 191 does not compile on my 32 bit Linux box.
> 
> src/journal/mmap-cache.c:519:5: error: conflicting types for
> 'mmap_cache_get'
> In file included from src/journal/mmap-cache.c:32:0:
> src/journal/mmap-cache.h:34:5: note: previous declaration of
> 'mmap_cache_get' was here
> 
> mmap-cache.h declares:
> int mmap_cache_get(MMapCache *m, int fd, int prot, unsigned context,
> bool keep_always, uint64_t offset, uint64_t size, struct stat *st,
> void **ret);
> 
> whereas mmap-cache.c has:
> int mmap_cache_get(
>                 MMapCache *m,
>                 int fd,
>                 int prot,
>                 unsigned context,
>                 bool keep_always,
>                 uint64_t offset,
>                 size_t size,
>                 struct stat *st,
>                 void **ret) {
> 
> so the size parameter is inconsistently declared.

The patch right after the 191 tag in git fixes this inconsistency:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=e2c8b07dcb50

> (My last build of systemd vas 187, where this did not happen. but
> then again there was no src/journal/mmap-cache.{c,h} back then)
> /Henrik
> 
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list