From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Kraai Newsgroups: gmane.lisp.guile.bugs Subject: Conflicting types for unlock on QNX 6 Date: Wed, 8 Mar 2006 12:57:10 -0800 Message-ID: <20060308205710.GA3902@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2029186823==" X-Trace: sea.gmane.org 1142017765 16179 80.91.229.2 (10 Mar 2006 19:09:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 19:09:25 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 10 20:09:25 2006 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHmyx-0000ry-Rt for guile-bugs@m.gmane.org; Fri, 10 Mar 2006 20:09:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHmyw-0005dd-Ve for guile-bugs@m.gmane.org; Fri, 10 Mar 2006 14:08:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FHAgP-0001IG-K9 for bug-guile@gnu.org; Wed, 08 Mar 2006 21:15:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FHAgI-0000HI-0s for bug-guile@gnu.org; Wed, 08 Mar 2006 21:15:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHAgH-0000Gf-Rx for bug-guile@gnu.org; Wed, 08 Mar 2006 21:15:09 -0500 Original-Received: from [206.117.18.6] (helo=zoot.lafn.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FHAjF-0006EC-HD for bug-guile@gnu.org; Wed, 08 Mar 2006 21:18:13 -0500 Original-Received: from localhost.localdomain (pool-71-104-166-233.lsanca.dsl-w.verizon.net [71.104.166.233]) (authenticated bits=0) by zoot.lafn.org (8.13.4/8.13.1) with ESMTP id k292F4B0013818 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 8 Mar 2006 18:15:05 -0800 (PST) (envelope-from kraai@lafn.org) Original-Received: from kraai by localhost.localdomain with local (Exim 4.60) (envelope-from ) id 1FH5iY-00011a-JR for bug-guile@gnu.org; Wed, 08 Mar 2006 12:57:10 -0800 Original-To: bug-guile@gnu.org User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: ClamAV 0.88/1319/Wed Mar 8 17:00:26 2006 on zoot.lafn.org X-Virus-Status: Clean X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3149 Archived-At: --===============2029186823== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline --s/l3CgOIzMHHjg/5 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Howdy, When I try to compile guile 1.8.0 on QNX 6.3.0, it fails as follows: > source=3D'threads.c' object=3D'libguile_la-threads.lo' libtool=3Dyes \ > DEPDIR=3D.deps depmode=3Dgcc /bin/sh ../depcomp \ > /bin/sh ../libtool --tag=3DCC --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I= =2E -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.TP= lo -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. --=20 Matt --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: quoted-printable --- 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 @@ } =20 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); } =20 int --2fHTh5uZTiUOsy+g-- --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFED0UmfNdgYxVXvBARAnGzAJ0eAvFxvrN1s6k2aXVU9Kn3KRBWOQCgrQDM KIRuE7Q6pMpiD/+5knO/9oE= =IlJy -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5-- --===============2029186823== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile --===============2029186823==--