Darrell,
I started a new build of tde tonight from scratch. I grabbed the output of the build failure in tdelibs due to komp-pid.diff. (I know it is experimental -- I was experimenting :) It is another "error: cannot convert 'TQString' to 'const char*' in assignment" in tdelibs/tdecore/kapplication.cp:
[ 6%] Building CXX object tdecore/CMakeFiles/tdecore-shared.dir/kapplication.cpp.o cd /build/src/build/tdecore && /usr/bin/c++ -Dtdecore_shared_EXPORTS -DHAVE_CONFIG_H -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/opt/tqt3/include -I/usr/include/tqt -I/build/src/build/tdecore -I/build/src/build -I/build/src/tdelibs/tdecore -I/build/src/tdelibs/tdecore/network -I/build/src/tdelibs/dcop -I/build/src/tdelibs/libltdl -I/build/src/tdelibs/tdefx -I/build/src/tdelibs/tdeui -I/build/src/tdelibs/kio/kio -I/usr/include/libart-2.0 -o CMakeFiles/tdecore-shared.dir/kapplication.cpp.o -c /build/src/tdelibs/tdecore/kapplication.cpp /build/src/tdelibs/tdecore/kapplication.cpp:2039:2: warning: #warning This should be already in Qt, check. [-Wcpp] /build/src/tdelibs/tdecore/kapplication.cpp: In static member function 'static bool KApplication::isCompositionManagerAvailable()': /build/src/tdelibs/tdecore/kapplication.cpp:1791:47: error: cannot convert 'TQString' to 'const char*' in assignment /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'TQt::HANDLE KApplication::getX11RGBAVisual(Display*)': /build/src/tdelibs/tdecore/kapplication.cpp:1911:10: warning: converting to non-pointer type 'TQt::HANDLE {aka long unsigned int}' from NULL [-Wconversion-null] /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'TQt::HANDLE KApplication::getX11RGBAColormap(Display*)': /build/src/tdelibs/tdecore/kapplication.cpp:1921:10: warning: converting to non-pointer type 'TQt::HANDLE {aka long unsigned int}' from NULL [-Wconversion-null] /build/src/tdelibs/tdecore/kapplication.cpp: In static member function 'static void KApplication::sigpipeHandler(int)': /build/src/tdelibs/tdecore/kapplication.cpp:3595:31: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'bool KApplication::detectCompositionManagerAvailable(bool, bool)': /build/src/tdelibs/tdecore/kapplication.cpp:1876:42: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] make[2]: *** [tdecore/CMakeFiles/tdecore-shared.dir/kapplication.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [tdecore/CMakeFiles/tdecore-shared.dir/all] Error 2 make[1]: Leaving directory `/build/src/build'
So far the build is progressing with all other patches:
patch -Np0 -i ${pkgname#*-}-XDG-KDE-TDE.diff
## patch kde help dir patch -Np0 -i ${pkgname#*-}-helpdir.diff
## patch KDE4-detect patch -Np0 -i ${pkgname#*-}-KDE4-detect.diff
## patch kdetcompmgr patch -Np0 -i ${pkgname#*-}-kdetcompmgr.diff
## patch recentdocs patch -Np0 -i ${pkgname#*-}-recentdocs.diff
## patch kdirwatch patch -Np0 -i ${pkgname#*-}-kdirwatch.diff
I'll report back on the kdirwatch patch improvements once the build is done.
I started a new build of tde tonight from scratch. I grabbed the output of the build failure in tdelibs due to komp-pid.diff. (I know it is experimental -- I was experimenting :) It is another "error: cannot convert 'TQString' to 'const char*' in assignment" in tdelibs/tdecore/kapplication.cp:
The goal of the komp*.diff patches are to hide the xsession pid message when komp is not in use. Refer to bug reports 645, 880, 887. I have not toyed with them for a few weeks and have them disabled in my builds.
So far the build is progressing with all other patches:
patch -Np0 -i ${pkgname#*-}-XDG-KDE-TDE.diff
## patch kde help dir patch -Np0 -i ${pkgname#*-}-helpdir.diff
Regarding those two patches, today I finally got around to creating similar patches for every single module. The first patch is related to bug report 892 and the latter is related to bug report 660, which we discussed several days ago. I hope in the next day or three to push all of those patches. I will provide list memebers a warning before I do that.
## patch KDE4-detect patch -Np0 -i ${pkgname#*-}-KDE4-detect.diff
This patch is related to bug report 891.
## patch kdetcompmgr patch -Np0 -i ${pkgname#*-}-kdetcompmgr.diff
Related to bug report 645.
## patch recentdocs patch -Np0 -i ${pkgname#*-}-recentdocs.diff
Related to bug report 914.
## patch kdirwatch patch -Np0 -i ${pkgname#*-}-kdirwatch.diff
I'll report back on the kdirwatch patch improvements once the build is done.
Related to bug report 756.
If only I knew C++ better. I get frustrated when I know what I want to do and can't get there because of noob C++ skills. All of these efforts would be completed by any person with C++ skills.
Darrell
On 04/09/2012 11:06 PM, Darrell Anderson wrote:
Related to bug report 756.
If only I knew C++ better. I get frustrated when I know what I want to do and can't get there because of noob C++ skills. All of these efforts would be completed by any person with C++ skills.
Darrell
All good things in time. Yes, it is frustrating as hell knowing what your want to do, but being stifled by syntax. In code and in all things, education is nothing more than a slow revealing of the truth. The only variable is the time required for revelation.
(that doesn't make it any easier :)
On Mon, 09 Apr 2012 22:30:56 -0500 "David C. Rankin" drankinatty@suddenlinkmail.com wrote:
Darrell,
I started a new build of tde tonight from scratch. I grabbed the output of the build failure in tdelibs due to komp-pid.diff. (I know it is experimental -- I was experimenting :) It is another "error: cannot convert 'TQString' to 'const char*' in assignment" in tdelibs/tdecore/kapplication.cp:
[ 6%] Building CXX object tdecore/CMakeFiles/tdecore-shared.dir/kapplication.cpp.o cd /build/src/build/tdecore && /usr/bin/c++ -Dtdecore_shared_EXPORTS -DHAVE_CONFIG_H -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/opt/tqt3/include -I/usr/include/tqt -I/build/src/build/tdecore -I/build/src/build -I/build/src/tdelibs/tdecore -I/build/src/tdelibs/tdecore/network -I/build/src/tdelibs/dcop -I/build/src/tdelibs/libltdl -I/build/src/tdelibs/tdefx -I/build/src/tdelibs/tdeui -I/build/src/tdelibs/kio/kio -I/usr/include/libart-2.0 -o CMakeFiles/tdecore-shared.dir/kapplication.cpp.o -c /build/src/tdelibs/tdecore/kapplication.cpp /build/src/tdelibs/tdecore/kapplication.cpp:2039:2: warning: #warning This should be already in Qt, check. [-Wcpp] /build/src/tdelibs/tdecore/kapplication.cpp: In static member function 'static bool KApplication::isCompositionManagerAvailable()': /build/src/tdelibs/tdecore/kapplication.cpp:1791:47: error: cannot convert 'TQString' to 'const char*' in assignment /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'TQt::HANDLE KApplication::getX11RGBAVisual(Display*)': /build/src/tdelibs/tdecore/kapplication.cpp:1911:10: warning: converting to non-pointer type 'TQt::HANDLE {aka long unsigned int}' from NULL [-Wconversion-null] /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'TQt::HANDLE KApplication::getX11RGBAColormap(Display*)': /build/src/tdelibs/tdecore/kapplication.cpp:1921:10: warning: converting to non-pointer type 'TQt::HANDLE {aka long unsigned int}' from NULL [-Wconversion-null] /build/src/tdelibs/tdecore/kapplication.cpp: In static member function 'static void KApplication::sigpipeHandler(int)': /build/src/tdelibs/tdecore/kapplication.cpp:3595:31: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] /build/src/tdelibs/tdecore/kapplication.cpp: In member function 'bool KApplication::detectCompositionManagerAvailable(bool, bool)': /build/src/tdelibs/tdecore/kapplication.cpp:1876:42: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] make[2]: *** [tdecore/CMakeFiles/tdecore-shared.dir/kapplication.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [tdecore/CMakeFiles/tdecore-shared.dir/all] Error 2 make[1]: Leaving directory `/build/src/build'
So far the build is progressing with all other patches:
patch -Np0 -i ${pkgname#*-}-XDG-KDE-TDE.diff
## patch kde help dir patch -Np0 -i ${pkgname#*-}-helpdir.diff
## patch KDE4-detect patch -Np0 -i ${pkgname#*-}-KDE4-detect.diff
## patch kdetcompmgr patch -Np0 -i ${pkgname#*-}-kdetcompmgr.diff
## patch recentdocs patch -Np0 -i ${pkgname#*-}-recentdocs.diff
## patch kdirwatch patch -Np0 -i ${pkgname#*-}-kdirwatch.diff
I'll report back on the kdirwatch patch improvements once the build is done.
I think the right fix for the komp-pid.diff related error is to replace the Unix/Standard C function calls (that take C strings) to Qt ones, as there don't seem to be any easy way to convert back TQString to const char* without messing with locales (TQString is UTF16, const char* is locale-dependent).
I think the right fix for the komp-pid.diff related error is to replace the Unix/Standard C function calls (that take C strings) to Qt ones, as there don't seem to be any easy way to convert back TQString to const char* without messing with locales (TQString is UTF16, const char* is locale-dependent).
Yup, go ahead and pop my noobie balloon!
I understand what you are describing, but my response is to act like the proverbial deer in the headlight beam. Or go glassy eyed like a baby filling its diaper. :)
All I want to accomplish with the patches and two bug reports:
* Move both .kompmgr.available and kompmgr.pid out of $HOME to $TDEHOME/$TDETMP (non persistent) or $TDEHOME/$TDEVARTMP (persistent). Or /var/run. Or $TMP. Anywhere appropriate other than $HOME.
* Silence the xsession output "reading '/home/users/username/.kompmgr.pid' as kompmgr pidfile" when kompmgr is not enabled.
Darrell