Bug#640432: libqhull: Qhull requires __POWERPC__ to be defined to a value
mycae
mycae at yahoo.com
Sun Sep 4 22:42:50 UTC 2011
Package: libqhull5
Version: 2009.1-1
Severity: normal
File: libqhull
I have been packaging a program that uses wx and qhull simultaneously. My package built under all (nonBSD) arches except powerpc.
https://buildd.debian.org/status/fetch.php?pkg=3depict&arch=powerpc&ver=0.0.7-1&stamp=1313966886
The problem occurs when you include qhull after including wx:
/usr/include/qhull/qhull.h:36:30: error: operator '&&' has no right operand
After a little digging around, I found the following hack works around the problem:
//QHull library
+//Build fix for qhull ; wx defines powerpc without
+//assigning a value, causing build fail on powerpc
+#ifdef __POWERPC__
+ #pragma push_macro("__POWERPC__")
+ #define __POWERPC__ 1
+#endif
extern "C"
{
#include <qhull/qhull_a.h>
}
+#ifdef __POWERPC__
+ #pragma pop_macro("__POWERPC__")
+#endif
The problem comes when you get to line 36 of
/usr/include/qhull/qhull.h :
#if __MWERKS__ && __POWERPC__
which I think should be:
#if defined(__MWEKS__) && defined(__POWERPC__)
I don't think wx is faultless here, but can this be patched?
-- System Information:
Debian Release: 6.0.1
APT prefers testing-proposed-updates
APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages libqhull5 depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
libqhull5 recommends no packages.
libqhull5 suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list