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

List:       kde-bugs-dist
Subject:    [Bug 124416] kdelibs 3.5.2 - Compile error on Solaris 8: duplicate
From:       Michael Lambrellis <michael.lambrellis () gmail ! com>
Date:       2006-03-29 1:44:57
Message-ID: 20060329014457.15698.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=124416         




------- Additional Comments From michael.lambrellis gmail com  2006-03-29 03:44 -------
I can confirm this.

Compiling KDE 3.5.2 on Solaris 9 using gcc 3.4.5 gives:
 In file included from libkdecore_la.all_cpp.cpp:72:
 ksycoca.cpp: At global scope:
 ksycoca.cpp:46: error: duplicate `extern'

Stephan's change fixes this.

NOTE: The wrong code also exists in the current trunk not just the 3.5 branch.

*** kdelibs-3.5.2/kdecore/ksycoca.cpp   Fri Mar 17 21:19:04 2006
--- kdelibs/kdecore/ksycoca.cpp Wed Mar 29 11:22:59 2006
***************
*** 43,49 ****
  #endif

  #ifdef Q_OS_SOLARIS
! extern "C" extern int madvise(caddr_t, size_t, int);
  #endif

  #ifndef MAP_FAILED
--- 43,49 ----
  #endif

  #ifdef Q_OS_SOLARIS
! extern "C" int madvise(caddr_t, size_t, int);
  #endif

  #ifndef MAP_FAILED
[prev in list] [next in list] [prev in thread] [next in thread] 

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