From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Synacek Newsgroups: gmane.lisp.guile.devel Subject: Re: Build failures - compiling TeXmacs under guile 2.0.5 Date: Thu, 24 May 2012 14:57:56 +0200 Message-ID: <20120524125756.GA10861@redhat.com> References: <20120322094601.GA11415@redhat.com> <87sjg3tkwh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1337864294 31208 80.91.229.3 (24 May 2012 12:58:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 May 2012 12:58:14 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 24 14:58:13 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SXXcK-0005KW-Oo for guile-devel@m.gmane.org; Thu, 24 May 2012 14:58:12 +0200 Original-Received: from localhost ([::1]:45629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXXcK-0004r8-CL for guile-devel@m.gmane.org; Thu, 24 May 2012 08:58:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXXcG-0004qh-P0 for guile-devel@gnu.org; Thu, 24 May 2012 08:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXXcB-00008b-Ue for guile-devel@gnu.org; Thu, 24 May 2012 08:58:08 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:53498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXXcB-00008A-MN for guile-devel@gnu.org; Thu, 24 May 2012 08:58:03 -0400 Original-Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4OCw1JM019342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 May 2012 08:58:01 -0400 Original-Received: from redhat.com (dhcp-24-219.brq.redhat.com [10.34.24.219]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4OCvukJ029056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 24 May 2012 08:58:00 -0400 Content-Disposition: inline In-Reply-To: <87sjg3tkwh.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2011-07-01) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id q4OCw1JM019342 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14509 Archived-At: On 04/16/12 at 11:41pm, Ludovic Court=C3=A8s wrote: > Hi Jan, >=20 > Thanks for the report. >=20 > Jan Synacek skribis: >=20 > > I'm trying to build TeXmacs 1.0.7 with guile 2.0.5 and I'm getting to= ns of > > errors like these: > > > > usr/include/guile/2.0/libguile/gsubr.h:64:12: error: initializing= argument 5 > > of =E2=80=98scm_unused_struct* scm_c_define_gsubr(const char*, int,= int, int, > > scm_t_subr)=E2=80=99 [-fpermissive] > > > > Guile/Glue/glue_server.cpp:1173:56: error: invalid conversion from > > =E2=80=98scm_unused_struct* (*)()=E2=80=99 to =E2=80=98scm_t_subr {= aka void*}=E2=80=99 [-fpermissive] >=20 > Can you show the line where this occurs? Presumably the code lacks a > cast to =E2=80=98scm_t_subr=E2=80=99, which is implicit in C but not in= C++. >=20 > Thanks, > Ludo=E2=80=99. >=20 >=20 Sorry for such late response, I gave it up after a while:) But.. One more try on this: $ make Guile/Glue/glue.cpp:233:31: error: cannot convert =E2=80=98SCM {aka scm_unused_struct*}=E2=80=99 to =E2=80=98const char*=E2=80=99 for argum= ent =E2=80=981=E2=80=99 to =E2=80=98scm_unused_struct* scm_str2string(const char*)=E2=80=99 Guile/Glue/glue.cpp:1267:46: error: invalid conversion from =E2=80=98FN= {aka scm_unused_struct* (*)()}=E2=80=99 to =E2=80=98scm_t_subr {aka void*}=E2= =80=99 [-fpermissive] Again, tons of errors like those two above, and I expect there will be mo= re like that. glue.cpp:233 looks like this: char* _r=3D scm_scm2str (s, &len_r); // my comment - s is declared as= SCM glue.cpp:1267: scm_new_procedure ("tree?", (FN) treeP, 1, 0, 0); I'm aware that C++ is pretty strict about casting. Is there any way I cou= ld fix those? I guess that if it is possible to bend g++ to allow me to recast a= ll those, I could use macros somehow. Thanks, --=20 Jan Synacek Software Engineer, BaseOS team Brno, Red Hat