--- diagnostics-0.3.3.orig/diagnostics/extensions/stacktrace/posix_process.cpp
+++ diagnostics-0.3.3/diagnostics/extensions/stacktrace/posix_process.cpp
@@ -30,6 +30,7 @@
 #include <cerrno>
 #include <poll.h>
 #include <sys/wait.h>
+#include <unistd.h>
 
 DIAGNOSTICS_NAMESPACE_BEGIN;
 STACKTRACE_NAMESAPCE_BEGIN;
--- diagnostics-0.3.3.orig/configure.ac
+++ diagnostics-0.3.3/configure.ac
@@ -105,6 +105,10 @@ fi
 # unwinding doesn't work properly on ARM
 if test x$build = xarm-unknown-linux-gnueabi ; then
   enable_stacktrace=no
+elif test x$build = xarm-unknown-linux-gnueabihf ; then
+  enable_stacktrace=no
+elif test x$build = xi486-pc-gnu ; then
+  enable_stacktrace=no
 fi
 AM_CONDITIONAL(STACKTRACE, test x$enable_stacktrace = xyes)
 
--- diagnostics-0.3.3.orig/diagnostics/extensions/stacktrace/posix.cpp
+++ diagnostics-0.3.3/diagnostics/extensions/stacktrace/posix.cpp
@@ -37,6 +37,13 @@
 #include <sys/stat.h>
 #include <sys/fcntl.h>
 
+// Hurd doesn't define PATH_MAX, because there is no such limit
+// (and POSIX doesn't require PATH_MAX in that case)
+// http://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
+#ifndef PATH_MAX
+#  define PATH_MAX 8192
+#endif
+
 //////////////////////////////////////////////////////////////////////
 // enyo::posix functions
 
@@ -159,7 +159,8 @@ std::string
 POSIX::RealPath(const std::string &path)
 {
   char p[PATH_MAX];
-  ::realpath(path.c_str(), p);
+  if(!::realpath(path.c_str(), p))
+    throw Error(errno);
   std::string result(p);
   return result;
 }
