Bug#806381: opengm: FTBFS on non-Linux: 'sysinfo memInfo' incomplete

Aaron M. Ucko ucko at debian.org
Thu Nov 26 20:32:48 UTC 2015


Source: opengm
Version: 2.3.6-1
Severity: important
Justification: fails to build from source

Builds of opengm for kFreeBSD failed:

  /«PKGBUILDDIR»/include/opengm/utilities/meminfo.hxx: In static member function 'static double sys::MemoryInfo::usedSystemMem()':
  /«PKGBUILDDIR»/include/opengm/utilities/meminfo.hxx:135:22: error: aggregate 'sys::MemoryInfo::usedSystemMem()::sysinfo memInfo' has incomplete type and cannot be defined
         struct sysinfo memInfo;

The Hurd autobuilders haven't gotten to opengm yet, but it looks like
they'll encounter the same error when they do.

Could you please take a look?  From a quick glance at the relevant
header, I believe simply adding

  && defined(__linux__)

to line 46 of meminfo.hxx should address the error.

Thanks!



More information about the debian-science-maintainers mailing list