reopen 434581
thanks

Samuel Thibault, le Wed 25 Jul 2007 01:17:50 +0200, a écrit :
> pike7.6 FTBFS on hurd-i386 because of unprotected usage of MAXPATHLEN ;
> here is a patch.

Oops, there is also a problem with pthread_atfork: configure believes
that it works fine, but actually it does not: it's just a stub that
returns ENOSYS, and then the install part of the build fails. The
attached patch detects this just the same way as the standard
AC_CHECK_FUNCS does: by checking for __stub_ macros.

Samuel
--- configure.in.orig   2008-01-01 05:20:55.000000000 +0100
+++ configure.in        2008-01-01 05:21:20.000000000 +0100
@@ -3338,6 +3338,9 @@
     AC_MSG_CHECKING(for pthread_atfork)
     AC_CACHE_VAL(pike_cv_have_pthread_atfork,[
       AC_TRY_LINK([#include <pthread.h>
+        #if defined(__stub_pthread_atfork) || defined(__stub___pthread_atfork)
+        #error pthread_atfork is just a stub
+        #endif
         void foo(void) { pthread_atfork(0,0,0); }
       ],[],[
         pike_cv_have_pthread_atfork=yes

Reply via email to