emerging lincvs-1.3.2 fails to compile with GCC 3.4 with the following error: g++ -c -mtune=athlon-xp -march=athlon-xp -O2 -fomit-frame-pointer -ftracer -pipe -fweb -Wall -W -D_REENTRANT -DNO_CLIPBOARD -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -Isrc -I./res -Iconfig -Icvslib -Icompat -I/usr/qt/3/include -I.ui/ -I.moc/ -o .obj/HistoryDialogImpl.o src/HistoryDialogImpl.cpp g++ -c -mtune=athlon-xp -march=athlon-xp -O2 -fomit-frame-pointer -ftracer -pipe -fweb -Wall -W -D_REENTRANT -DNO_CLIPBOARD -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I. -Isrc -I./res -Iconfig -Icvslib -Icompat -I/usr/qt/3/include -I.ui/ -I.moc/ -o .obj/InteractiveCmdThread.o src/InteractiveCmdThread.cpp /usr/qt/3/include/qfile.h: In member function `virtual void HistoryDialogImpl::afterCall(int, CvsBuffer*, bool)': /usr/qt/3/include/qfile.h:115: error: `QFile::QFile(const QFile&)' is private src/HistoryDialogImpl.cpp:271: error: within this context make: *** [.obj/HistoryDialogImpl.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-util/lincvs-1.3.2 failed. !!! Function src_compile, Line 31, Exitcode 2 !!! make failed
Created attachment 39547 [details, diff] Simple patch to fix compile error The QFile copy constructor is a private member of the class, and with how they use it in lincvs, it apparently needs to use it. By initializing the variable first, then passing it to the function, it solves the issue.
This is in CVS, should reach rsync in two hours. Thanks for your patch Mark.