Source: phonetisaurus
Version: 0.7.8-1
Severity: improtant
Tags: patch
User: [email protected]
Usertags: hurd
phonetisaurus FTBFS on hurd-i386:
| g++ -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -Wall -I3rdparty/utfcpp -g -O2 -fPIE -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-c LatticePruner.cpp -o LatticePruner.o
| In file included from LatticePruner.hpp:34:0,
| from LatticePruner.cpp:32:
| util.hpp:36:24: fatal error: mach/clock.h: No such file or directory
| compilation terminated.
| make[1]: *** [LatticePruner.o] Error 1
Full build log:
https://buildd.debian.org/status/fetch.php?pkg=phonetisaurus&arch=hurd-i386&ver=0.7.8-1&stamp=1360791236
This happens because upstream uses the __MACH__ macro to determine if
it's a Darwin system. However, __MACH__ is defined on Hurd, too. Using
the __APPLE__ macro instead should do the trick.
--
Jakub Wilk
Description: fix FTBFS on Hurd
Author: Jakub Wilk <[email protected]>
Forwared: no
Last-Update: 2013-02-26
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -32,7 +32,7 @@
#include <fst/fstlib.h>
#include <utf8.h>
#include <google/dense_hash_map>
-#ifdef __MACH__
+#ifdef __APPLE__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -104,7 +104,7 @@
return entry;
}
-#ifdef __MACH__
+#ifdef __APPLE__
timespec get_time( ){
clock_serv_t cclock;
mach_timespec_t mts;