[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 114747] Compile error in ksycoca.cpp on Solaris 9 (temp.
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-01-25 10:22:58
Message-ID: 20060125102258.30321.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=114747         
mueller kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From mueller kde org  2006-01-25 11:22 -------
SVN commit 502222 by mueller:

solaris sucks, as usal.
BUG:114747


 M  +6 -1      ksycoca.cpp   [POSSIBLY UNSAFE: system]


--- trunk/KDE/kdelibs/kdecore/ksycoca.cpp #502221:502222
 @ -40,6 +40,10  @
 #include <sys/mman.h>
 #endif
 
+#ifdef Q_OS_SOLARIS
+extern int madvise(caddr_t, size_t, int); 
+#endif
+
 #ifndef MAP_FAILED
 #define MAP_FAILED ((void *) -1)
 #endif
 @ -443,7 +447,8  @
          return;
       _self->d->readError = true;
       if (_self->d->autoRebuild)
-         system("kbuildsycoca"); // Rebuild the damned thing.
+         if(system("kbuildsycoca") < 0) // Rebuild the damned thing.
+	   qWarning("ERROR: Running KSycoca failed.");
    }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic