From: Matt Kraai <kraai@ftbfs.org>
Subject: Conflicting types for unlock on QNX 6
Date: Wed, 8 Mar 2006 12:57:10 -0800 [thread overview]
Message-ID: <20060308205710.GA3902@localhost.localdomain> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 872 bytes --]
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
[-- Attachment #1.1.2: patch --]
[-- Type: text/plain, Size: 611 bytes --]
--- 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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 136 bytes --]
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
next reply other threads:[~2006-03-08 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-08 20:57 Matt Kraai [this message]
2006-03-10 22:23 ` Conflicting types for unlock on QNX 6 Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060308205710.GA3902@localhost.localdomain \
--to=kraai@ftbfs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).