Bug 51761 - kpf compilation aborts with "invalid reinterpret_cast"
Summary: kpf compilation aborts with "invalid reinterpret_cast"
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kpf
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: rik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-11 12:08 UTC by Unknown
Modified: 2008-12-15 16:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Stamminger 2002-12-11 12:08:58 UTC
Version:           As included in 3.1-RC5 (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          gcc-3.2 self-compiled on Solaris 2.6 with fix for bug #8197
OS:          Solaris

compilation ends with:

...
/usr/local/Qt-3.1/bin/moc /local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.h -o WebServer.moc
source='/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp' object='WebServer.lo' libtool=yes \
depfile='.deps/WebServer.Plo' tmpdepfile='.deps/WebServer.TPlo' \
depmode=gcc3 /bin/ksh /local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/admin/depcomp \
/bin/ksh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src -I../.. -I/usr/local/KDE_3.1rc5/include -I/usr/local/Qt-3.1/include    -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -fno-builtin -g3 -fno-exceptions -fno-check-new -DQT_NO_COMPAT -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DKDE_NO_COMPAT -DKDE_NO_COMPAT_H  -c -o WebServer.lo `test -f '/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp' || echo '/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/'`/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp
/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp: In
   member function `bool KPF::WebServer::handleConnection(int)':
/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp:237: invalid
   reinterpret_cast from type `unsigned int' to type `int'
/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp:239: warning: invalid
   conversion from `const void*' to `const char*'
/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp:252: invalid
   reinterpret_cast from type `unsigned int' to type `int'
/local_mdb-s/jstammi/compile/src/kdenetwork-3.1rc5/kpf/src/WebServer.cpp:254: warning: invalid
   conversion from `const void*' to `const char*'
make[3]: *** [WebServer.lo] Error 1
make[3]: Leaving directory `/local_mdb-s/jstammi/compile/obj/kdenetwork-3.1rc5/kpf/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/local_mdb-s/jstammi/compile/obj/kdenetwork-3.1rc5/kpf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local_mdb-s/jstammi/compile/obj/kdenetwork-3.1rc5'
make: *** [all] Error 2


I temporarily surrounded it by #ifdef __osf__ part of the implementation in WebServer.cpp
Comment 1 Johannes Stamminger 2002-12-11 15:42:42 UTC
Seems as if it has something to do with the setting of __osf__. In the further 
compilation I get more errors always with the __osf__ being around: 
 
 - as reported above kpf/src/WebServer.cpp 
 - krfb/libvncserver/main.c (undefined socklen_t) 
 - krfb/libvncserver/rfbserver.c (undefined socklen_t) 
 - krfb/libvncserver/sockets.c (undefined socklen_t) 
 - krfb/libvncserver/httpd.c (undefined socklen_t) 
 - krfb/srvloc/kinetaddr.cpp (missing includes sys/socket.h, arpa/nameser.h, 
resolv.h; the first would be included by kinetaddr.h but __osf__ prevents ...) 
 
Comment 2 Stephan Kulow 2004-05-27 10:12:24 UTC
Replaced johannes.stamminger@astrium-space.com with null@kde.org due to bounces by reporter
Comment 3 George Goldberg 2007-12-19 03:58:02 UTC
Is this bug still there in a recent version of KDE, such as 3.5.8 or KDE4.0 RC2?
Comment 4 groot 2008-12-15 16:17:39 UTC
Response timeout; kpf no longer exists in KDE 4.1.3.