Subject: pth-syscall function hangs on NetBSD/Amiga 1.5.2
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.jul.zwei@onlinehome.de>
List: tech-pkg
Date: 07/23/2002 05:57:50
--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

following some recent discussions here I tried to build devel/glib-1.2.10
on NetBSD/amiga 1.5.2 with pth-syscall instead of just pth. 

I had to change the hardcoded value of USE_PTHREAD in the Makefile to
'native pth-syscall' but what is more important is the fact that it
didn't work:

  ...
  checking for getpwuid_r... no
  checking whether pthread_getspecific is posix like... yes
  checking whether pthread_mutex_trylock is posix like...

The 'configure' program started a test for the 'pthread_mutex_trylock'
function which didn't finish (test source attached). 

Can anyone repeat this on a different m68k machine with 1.5.2? On i386
I do not see this behaviour.

ciao
     Klaus


--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="confdefs.h"


#define GLIB_MAJOR_VERSION 1
#define GLIB_MINOR_VERSION 2
#define GLIB_MICRO_VERSION 23
#define GLIB_INTERFACE_AGE 10
#define GLIB_BINARY_AGE 10
#define G_COMPILED_WITH_DEBUGGING "minimum"
#define STDC_HEADERS 1
#define HAVE_VPRINTF 1
#define HAVE_ATEXIT 1
#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
#define SIZEOF_LONG 4
#define SIZEOF_INT 4
#define SIZEOF_VOID_P 4
#define SIZEOF_LONG_LONG 8
#define G_HAVE___INLINE 1
#define G_HAVE___INLINE__ 1
#define G_HAVE_INLINE 1
#define WORDS_BIGENDIAN 1
#define HAVE_FLOAT_H 1
#define HAVE_FLOAT_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LIMITS_H 1
#define HAVE_PWD_H 1
#define HAVE_PWD_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_POLL_H 1
#define HAVE_SYS_POLL_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIMES_H 1
#define HAVE_SYS_TIMES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LSTAT 1
#define HAVE_STRERROR 1
#define HAVE_STRSIGNAL 1
#define HAVE_MEMMOVE 1
#define HAVE_VSNPRINTF 1
#define HAVE_STRCASECMP 1
#define HAVE_STRNCASECMP 1
#define HAVE_POLL 1
#define HAVE_WCHAR_H 1
#define HAVE_BROKEN_WCTYPE 1
#define REALLOC_0_WORKS 1
#define G_VA_COPY va_copy
#define HAVE_LOCALTIME_R 1
#define HAVE_RAND_R 1
#define HAVE_PTHREAD_GETSPECIFIC_POSIX 1

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="conftest.c"

#line 5392 "configure"
#include "confdefs.h"
#include <pthread.h>
			pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
			int main () { 
			return !pthread_mutex_trylock (&mutex); }

--OXfL5xGRrasGEqWY--