<div style="font-family: Verdana; font-size: 12;">Yes, madvise is available in illumos, but probably some build flag is excluding its definition</div><div style="font-family: Verdana; font-size: 12;">from the sys/mman.h, that is full of ifdef about __EXTENSIONS__, __XOPEN_OR_POSIX, and so on.</div><div style="font-family: Verdana; font-size: 12;">I found someone from OpenIndiana solving it by excluding like I did.</div><div style="font-family: Verdana; font-size: 12;"><br></div><div style="font-family: Verdana; font-size: 12;">Anyway, now I'm stuck with the last problem.... :(</div><div style="font-family: Verdana; font-size: 12;">Gabriele.<br><div><br><br>
</div><tt><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com><br>A: libreoffice@lists.freedesktop.org <br>Data: 27 giugno 2013 12.49.12 CEST<br>Oggetto: Re: Building LO 4.0.4.2 on illumos based OS<br><br></tt><blockquote style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><tt>Hi Gabriele,<br><br>Il 27/06/2013 10:52, Gabriele Bulfon ha scritto:<br>> Hi,<br>> I'm working on our Sonicle XStreamOS distro based on illumos kernel.<br>[snip]<br>> I stumbled on on error about "madvise" missing, but I could find a working patch:<br>> --- libreoffice-4.0.4.2/sal/osl/unx/file.cxx Thu Jun 27 09:22:25 2013<br>> +++ libreoffice-4.0.4.2/sal/osl/unx/file.cxx Thu Jun 27 09:22:54 2013<br>> @@ -1260,7 +1260,7 @@<br>> OSL_TRACE(<br>> "posix_madvise(..., POSIX_MADV_WILLNEED) failed with %d", e);<br>> }<br>> -#elif defined SOLARIS<br>> +#elif defined NOTSOLARIS<br>> if (madvise(static_cast<br>> (p), nLength, MADV_WILLNEED) != 0)<br>> {<br>> OSL_TRACE("madvise(..., MADV_WILLNEED) failed with %d", errno);<br>> basically it disables the call to madvise on my env, then build went on very long over the tail_build.<br><br>That's strange, you should have madvise on illumos per <br>http://illumos.org/man/3C/madvise . May this be an issue with the libc <br>in Sonicle XStreamOS?<br><br>cheers,<br>riccardo<br>_______________________________________________<br>LibreOffice mailing list<br>LibreOffice@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/libreoffice<br><br><br></tt></blockquote></div>