Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#36273 closed defect (fixed)

KDESVN compilation error - cannot cast 'QObject *' to 'RevGraphView *' via virtual base 'QGraphicsView'

Reported by: mitroshin@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: kdesvn

Description

[ 86%] Building CXX object src/svnfrontend/CMakeFiles/svnfrontend.dir/graphtree/revisiontree.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src/svnfrontend && /usr/bin/clang++   -DKDE_DEFAULT_DEBUG_AREA=9510 -pipe -O2 -arch x86_64  -fno-common -fexceptions -O3 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src/svnfrontend -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src/svnfrontend -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src/svnqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src/svnfrontend/fronthelpers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src/svnqt -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src/ksvnwidgets -I/opt/local/include -I/opt/local/include/KDE -I/opt/local/include/phonon -I/opt/local/include/QtXmlPatterns -I/opt/local/include/QtXml -I/opt/local/include/QtWebKit -I/opt/local/include/QtUiTools -I/opt/local/include/QtTest -I/opt/local/include/QtSvg -I/opt/local/include/QtSql -I/opt/local/include/QtScriptTools -I/opt/local/include/QtScript -I/opt/local/include/QtOpenGL -I/opt/local/include/QtNetwork -I/opt/local/include/QtMultimedia -I/opt/local/include/QtHelp -I/opt/local/include/QtDesigner -I/opt/local/include/QtDeclarative -I/opt/local/include/QtDBus -I/opt/local/include/Qt3Support -I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/share/qt4/mkspecs/default -I/opt/local/include/apr-1 -I/usr/include/subversion-1      -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -DDARWIN_10 -fPIC -o CMakeFiles/svnfrontend.dir/graphtree/revisiontree.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src/svnfrontend/graphtree/revisiontree.cpp
clang: warning: argument unused during compilation: '-no-cpp-precomp'
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/kdesvn-1.5.5/src/svnfrontend/graphtree/revgraphview.cpp:962:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build/src/svnfrontend/revgraphview.moc:64:28: error: cannot cast 'QObject *' to 'RevGraphView *' via virtual base 'QGraphicsView'
        RevGraphView *_t = static_cast<RevGraphView *>(_o);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.                                                                                                                                                                                                                                                     
make[2]: *** [src/svnfrontend/CMakeFiles/svnfrontend.dir/graphtree/revgraphview.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build'
make[1]: *** [src/svnfrontend/CMakeFiles/svnfrontend.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_kde_kdesvn/kdesvn/work/build'

Bug - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662767

Patch - http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=virtual_inheritance.patch;att=1;bug=662767

Change History (3)

comment:1 Changed 7 years ago by ryandesign (Ryan Schmidt)

Keywords: clang added
Owner: changed from macports-tickets@… to ryandesign@…
Port: kdesvn added
Status: newassigned

Thanks.

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

It seemed simpler and better to just update the port to 1.6.0. Done in r98012.

comment:3 Changed 7 years ago by ryandesign (Ryan Schmidt)

Keywords: clang removed
Note: See TracTickets for help on using tickets.