Package: rlog Version: 1.3.7-1.2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following: * rlog/RLogChannel.cpp: fixed FTBFS due to invalid pointer conversion (LP: #447107) We thought you might be interested in doing the same. The build fails with the following error: i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DRLOG_COMPONENT=rlog -DUSE_VALGRIND=0 -g -O2 -pthread -MT RLogChannel.lo -MD -MP -MF .deps/RLogChannel.Tpo -c RLogChannel.cpp -fPIC -DPIC -o .libs/RLogChannel.o RLogChannel.cpp: In function 'rlog::RLogChannel* rlog::GetComponentChannel(const char*, const char*, rlog::LogLevel)': RLogChannel.cpp:188: error: invalid conversion from 'const char*' to 'char*' http://launchpadlibrarian.net/32251344/buildlog_ubuntu-karmic-i386.rlog_1.3.7-1.2_FAILEDTOBUILD.txt.gz Please note that this is fixed in upstream version 1.4. -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty') Architecture: i386 (i686) Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u rlog-1.3.7/rlog/RLogChannel.cpp rlog-1.3.7/rlog/RLogChannel.cpp --- rlog-1.3.7/rlog/RLogChannel.cpp +++ rlog-1.3.7/rlog/RLogChannel.cpp @@ -185,7 +185,7 @@ if((current->logLevel() == Log_Undef) && (level != Log_Undef)) current->setLogLevel( level ); - char *next = strchr( path , '/' ); + const char *next = strchr( path , '/' ); size_t len = next ? next - path : strlen( path ); if(len > 1)