Source: tupi Version: 0.1+git12-7 Severity: important Tags: patch sid User: [email protected] Usertags: powerpcspe
Hi, tupi fails to build on powerpc, ppc64 and powerpcspe[1] like this: [...] g++ -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DHAVE_FFMPEG -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/X11R6/include -I.moc -o .obj/kcpuinfo.o kcpuinfo.cpp kcpuinfo.cpp:56:8: error: 'sigjmp_buf' does not name a type kcpuinfo.cpp:57:8: error: 'sig_atomic_t' does not name a type kcpuinfo.cpp: In function 'void sigill_handler(int)': kcpuinfo.cpp:61:11: error: 'canjump' was not declared in this scope kcpuinfo.cpp:62:22: error: 'SIG_DFL' was not declared in this scope kcpuinfo.cpp:62:30: error: 'signal' was not declared in this scope kcpuinfo.cpp:63:20: error: 'raise' was not declared in this scope kcpuinfo.cpp:65:5: error: 'canjump' was not declared in this scope kcpuinfo.cpp:66:17: error: 'jmpbuf' was not declared in this scope kcpuinfo.cpp:66:27: error: 'siglongjmp' was not declared in this scope kcpuinfo.cpp: At global scope: kcpuinfo.cpp:59:13: warning: 'void sigill_handler(int)' defined but not used [-Wunused-function] make[4]: *** [.obj/kcpuinfo.o] Error 1 [...] The attached patch fixes this by adding the necessary official headers signal.h and setjmp.h for the above missing stuff. Looks like the other builds worked just by accident, including the necessary stuff indirectly or similar. Thanks in advance, Roland [1] http://wiki.debian.org/PowerPCSPEPort -- System Information: Debian Release: 7.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: powerpcspe (ppc) Kernel: Linux 3.8.0 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/dash
--- tupi-0.1+git12.orig/src/framework/tcore/kcpuinfo.cpp +++ tupi-0.1+git12/src/framework/tcore/kcpuinfo.cpp @@ -33,6 +33,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***************************************************************************/ +#include <signal.h> +#include <setjmp.h> + #include "kcpuinfo.h" #if defined(__GNUC__) || defined(__INTEL_COMPILER)

