Package: klogic Version: 1.63-5 Severity: important Tags: patch Justification: fails to build from source User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
*** /tmp/tmpiN4kWy In Ubuntu, we've applied the attached patch to achieve the following: * Fix FTBFS with GCC 4.4 and eglibc 2.10 (LP: #461300). We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic') Architecture: amd64 (x86_64) Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- klogic-1.63.orig/klogic/symbolicCalc.cpp +++ klogic-1.63/klogic/symbolicCalc.cpp @@ -346,7 +346,7 @@ // assumes that there are no parenthesis errors! int SymbolicCalc::needsParenthesis(const char * eq, char op) { - char *par = strchr(eq, '('); + char *par = (char *) strchr(eq, '('); if (!par) { switch (op) { case Operator::NOT: @@ -369,7 +369,7 @@ break; } } - char * deq = strrchr(eq, ')'); + char * deq = (char *) strrchr(eq, ')'); if (!deq) fatal("fatal parenthesis error in class SymbolicCalc!\n"); *par = 0; switch (op) { only in patch2: unchanged: --- klogic-1.63.orig/klogic/dlgEqu.cpp +++ klogic-1.63/klogic/dlgEqu.cpp @@ -404,11 +404,11 @@ } // remove pre- and suffixes from the output name - search = strstr(buf, TYPE_INTERN); + search = (char *) strstr(buf, TYPE_INTERN); if (!search) { - search = strstr(buf, TYPE_FINAL); + search = (char *) strstr(buf, TYPE_FINAL); if (!search) { - search = strstr(buf, " = "); + search = (char *) strstr(buf, " = "); } } if (!search) {