[kde-solaris] problems compiling kdelibs-3.5

Albertson, Brett bretta at stratech.com
Sat Dec 24 15:10:09 CET 2005


I added the line:

extern "C" int madvise(void *, size_t, int);

near the top of the file to make this work.

BTW - I have compiled all of the kde 3.5 suite via konstruct using gcc 4.0.3 (from svn) if anyone wants a list of things I had to fix. 

Brett Albertson           brett.albertson at stratech.com
Strategic Technologies    voice: 919-379-8449     FAX: 919-379-8100
Solaris Core, Enterprise, E10K, F15K certified. 

-----Original Message-----
From: Tobias Oetiker [mailto:oetiker at ee.ethz.ch] 
Sent: Saturday, December 24, 2005 9:09 AM
To: For people using KDE on Solaris,with questions about KDE or Solaris
Subject: Re: [kde-solaris] problems compiling kdelibs-3.5

Hi Rob,

since this is just advise and I could not get my solaris to accept
it I just removed the line ... does not hurt except for performance
I guess ....


--- /scratch/build/kde-3.5.0-to/kdelibs-3.5.0/kdecore/ksycoca.cpp~      2005-12-18 14:15:21.205069000 +0100
+++ /scratch/build/kde-3.5.0-to/kdelibs-3.5.0/kdecore/ksycoca.cpp       2005-12-18 14:15:21.205076000 +0100
@@ -145,7 +145,7 @@
      }
      else
      {
-       (void) madvise((void*)m_sycoca_mmap, m_sycoca_size, MADV_WILLNEED);
+/*     (void) madvise((void*)m_sycoca_mmap, m_sycoca_size, MADV_WILLNEED); */

         QByteArray b_array;
         b_array.setRawData(m_sycoca_mmap, m_sycoca_size);


cheers
tobi

Monday Rob Fisher wrote:

> I've built QT and arts, but kdelibs-3.5 is failing with:
>
> ksycoca.cpp: In member function `bool KSycoca::openDatabase(bool)':
> ksycoca.cpp:147: error: `madvise' was not declared in this scope
> ksycoca.cpp:147: warning: unused variable 'madvise'
> gmake[2]: *** [ksycoca.lo] Error 1
> gmake[2]: Leaving directory `/home/rob/work/build/kdelibs-3.5.0/kdecore'
> gmake[1]: *** [all-recursive] Error 1
>
>
> This is OpenSolaris with gcc-3.4.5. Anyone got any ideas?
>
> TIA
>
>
> Rob
> ___________________________________________________
> This message is from the kde-solaris mailing list.
> Account management:  https://mail.kde.org/mailman/listinfo/kde-solaris.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286
___________________________________________________
This message is from the kde-solaris mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde-solaris mailing list