Howdy, When I try to compile guile 1.8.0 on QNX 6.3.0, it fails as follows:
> source='threads.c' object='libguile_la-threads.lo' libtool=yes \ > DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \ > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. > -I.. -I.. -I/usr/local/include -g -O2 -Wall -Wmissing-prototypes -c -o > libguile_la-threads.lo `test -f 'threads.c' || echo './'`threads.c > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/usr/local/include -g -O2 -Wall > -Wmissing-prototypes -c threads.c -Wp,-MD,.deps/libguile_la-threads.TPlo > -fPIC -DPIC -o .libs/libguile_la-threads.o > threads.c:1401: conflicting types for `unlock' > /usr/qnx630/target/qnx6/usr/include/unistd.h:490: previous declaration of > `unlock' The attached patch renames the unlock function in threads.c to static_unlock, which fixes the problem. -- Matt
--- guile-1.8.0.orig/libguile/threads.c 2006-02-12 14:41:42.000000000 -0800
+++ guile-1.8.0/libguile/threads.c 2006-03-08 12:49:53.000000000 -0800
@@ -1397,7 +1397,7 @@
}
static void
-unlock (void *data)
+static_unlock (void *data)
{
scm_i_pthread_mutex_unlock ((scm_i_pthread_mutex_t *)data);
}
@@ -1406,7 +1406,7 @@
scm_dynwind_pthread_mutex_lock (scm_i_pthread_mutex_t *mutex)
{
scm_i_scm_pthread_mutex_lock (mutex);
- scm_dynwind_unwind_handler (unlock, mutex, SCM_F_WIND_EXPLICITLY);
+ scm_dynwind_unwind_handler (static_unlock, mutex, SCM_F_WIND_EXPLICITLY);
}
int
signature.asc
Description: Digital signature
_______________________________________________ Bug-guile mailing list [email protected] http://mail.gnu.org/mailman/listinfo/bug-guile
