--nextPart7933893.Ik9ZRoNJhk Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D--------- Forwarded Message ---------- Subject: ksycoca.cpp - error: duplicate `extern' Date: Saturday 10 June 2006 11:46 =46rom: "Sotiris Sotiropoulos" To: bastian@kde.org Dear Waldo, During a compilation run of kdelibs version 3.5.3 under Solaris OS 10, the following error has been reported: ksycoca.cpp:46: error: duplicate `extern' A look into the file revealed: #ifdef Q_OS_SOLARIS extern "C" extern int madvise(caddr_t, size_t, int); /* Line 46 */ #endif I changed to: #ifdef Q_OS_SOLARIS extern "C" { extern int madvise(caddr_t, size_t, int); } #endif and it complied without problems. I do not know if it is a GCC compiler problem or the {} curly brackets are indeed necessary to separate the two extern directives. Some details on my hardware and software running: CPU:AMD Athlon 64 3000+, Physical memory: 2048 MB. uname -a SunOS unknown 5.10 Generic_118844-26 i86pc i386 i86pc gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure =2D-prefix=3D/usr/sfw --with-as=3D/usr/sfw/bin/gas --with-gnu-as =2D-with-ld=3D/usr/ccs/bin/ld --without-gnu-ld --enable-languages=3Dc,c++ =2D-enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Thank you, Sotiris. =2D------------------------------------------------------ =2D-=20 Linux Client Architect - Channel Platform Solutions Group - Intel Corporati= on --nextPart7933893.Ik9ZRoNJhk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEi0XiN4pvrENfboIRAlS1AJ9a141VqUguQaEgs9A70+zpDDAX8wCfYt9h pYrmPpNd50x4c1QTCRD/PGk= =Ir/Q -----END PGP SIGNATURE----- --nextPart7933893.Ik9ZRoNJhk--