Building LO on illumos based OS

Gabriele Bulfon gabriele.bulfon at
Thu Jun 27 03:56:13 PDT 2013

Yes, madvise is available in illumos, but probably some build flag is excluding its definition
from the sys/mman.h, that is full of ifdef about __EXTENSIONS__, __XOPEN_OR_POSIX, and so on.
I found someone from OpenIndiana solving it by excluding like I did.
Anyway, now I'm stuck with the last problem.... :(
Da: Riccardo Magliocchetti
A: libreoffice at
Data: 27 giugno 2013 12.49.12 CEST
Oggetto: Re: Building LO on illumos based OS
Hi Gabriele,
Il 27/06/2013 10:52, Gabriele Bulfon ha scritto:
I'm working on our Sonicle XStreamOS distro based on illumos kernel.
I stumbled on on error about "madvise" missing, but I could find a working patch:
--- libreoffice-    Thu Jun 27 09:22:25 2013
+++ libreoffice-    Thu Jun 27 09:22:54 2013
@@ -1260,7 +1260,7 @@
"posix_madvise(..., POSIX_MADV_WILLNEED) failed with %d", e);
-#elif defined SOLARIS
+#elif defined NOTSOLARIS
if (madvise(static_cast
(p), nLength, MADV_WILLNEED) != 0)
OSL_TRACE("madvise(..., MADV_WILLNEED) failed with %d", errno);
basically it disables the call to madvise on my env, then build went on very long over the tail_build.
That's strange, you should have madvise on illumos per . May this be an issue with the libc
in Sonicle XStreamOS?
LibreOffice mailing list
LibreOffice at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list