Bug 70972 - kdeedu/kiten/dict.cpp doesn't compile on Solaris
Summary: kdeedu/kiten/dict.cpp doesn't compile on Solaris
Status: RESOLVED FIXED
Alias: None
Product: kiten
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Jason Katz-Brown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 16:48 UTC by Torsten Kasch
Modified: 2004-01-10 13:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for kdeedu/kiten/dict.cpp (675 bytes, patch)
2003-12-21 16:52 UTC, Torsten Kasch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kasch 2003-12-21 16:48:05 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 2.95.3 20010315 (release) 
OS:          Solaris

Trying to compile kdeedu HEAD on my Solaris 8 x86 box breaks with

source='dict.cpp' object='dict.o' libtool=no \
depfile='.deps/dict.Po' tmpdepfile='.deps/dict.TPo' \
depmode=gcc /bin/ksh ../admin/depcomp \
g++ -pipe -DHAVE_CONFIG_H -I. -I. -I.. -I/vol/kde-cvs/include -I/vol/qt-3.2.3/include   -I/vol/local/include -I/vol/graphics/include  -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o dict.o `test -f 'dict.cpp' || echo './'`dict.cpp
dict.cpp: In method `Dict::File::~File()':
dict.cpp:117: ANSI C++ forbids implicit conversion from `void *' in argument passing
dict.cpp:121: ANSI C++ forbids implicit conversion from `void *' in argument passing
make[3]: *** [dict.o] Error 1
make[3]: Leaving directory `/vol/src/kde/cvs/kdeedu/kiten'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/vol/src/kde/cvs/kdeedu/kiten'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vol/src/kde/cvs/kdeedu'
make: *** [all] Error 2
Comment 1 Torsten Kasch 2003-12-21 16:52:23 UTC
Created attachment 3808 [details]
patch for kdeedu/kiten/dict.cpp

Applying the attached patch fixed this issue for me; it's basically the same as
in bug 65234
Comment 2 Thiago Macieira 2003-12-21 20:32:29 UTC
Agreed.
Comment 3 Dirk Mueller 2004-01-10 13:12:55 UTC
Subject: kdeedu/kiten

CVS commit by mueller: 

fix compile
CCMAIL: 70972-done@bugs.kde.org


  M +2 -2      dict.cpp   1.48


--- kdeedu/kiten/dict.cpp  #1.47:1.48
@@ -115,9 +115,9 @@ File::~File(void)
 {
         if (dictPtr != (unsigned char*) MAP_FAILED)
-                munmap((void *)dictPtr, dictFile.size());
+                munmap((char *)dictPtr, dictFile.size());
         dictFile.close();
 
         if (indexPtr != (uint32_t*) MAP_FAILED)
-                munmap((void *)indexPtr, indexFile.size());
+                munmap((char *)indexPtr, indexFile.size());
         indexFile.close();
 }