From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Marijn Schouten (hkBst)" Newsgroups: gmane.lisp.guile.bugs Subject: Re: Conflict with HDF5 libraries Date: Thu, 05 Feb 2009 10:50:27 +0100 Message-ID: <498AB663.2090906@gentoo.org> References: <698EDC07-174A-4215-8036-5356A57EDF7E@physics.queensu.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233833131 15064 80.91.229.12 (5 Feb 2009 11:25:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 11:25:31 +0000 (UTC) Cc: bug-guile@gnu.org To: Mark Patterson Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 05 12:26:45 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LV2NO-0001el-2L for guile-bugs@m.gmane.org; Thu, 05 Feb 2009 12:26:37 +0100 Original-Received: from localhost ([127.0.0.1]:57591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV2M3-0006tD-Of for guile-bugs@m.gmane.org; Thu, 05 Feb 2009 06:25:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV2Fl-0005Ah-Tq for bug-guile@gnu.org; Thu, 05 Feb 2009 06:18:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV2Fj-00059c-N8 for bug-guile@gnu.org; Thu, 05 Feb 2009 06:18:40 -0500 Original-Received: from [199.232.76.173] (port=47681 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV2Fj-00059U-8O for bug-guile@gnu.org; Thu, 05 Feb 2009 06:18:39 -0500 Original-Received: from pollux.sshunet.nl ([145.97.192.42]:52523) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LV2Fi-00025K-Rp for bug-guile@gnu.org; Thu, 05 Feb 2009 06:18:39 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by pollux.sshunet.nl (Postfix) with ESMTP id 6664958000B; Thu, 5 Feb 2009 12:18:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at pollux.warande.net Original-Received: from pollux.sshunet.nl ([127.0.0.1]) by localhost (pollux.sshunet.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Rx6he0Ooj8d; Thu, 5 Feb 2009 12:18:35 +0100 (CET) Original-Received: from [145.97.223.57] (57pc223.sshunet.nl [145.97.223.57]) by pollux.sshunet.nl (Postfix) with ESMTP; Thu, 5 Feb 2009 12:18:35 +0100 (CET) User-Agent: Thunderbird 2.0.0.19 (X11/20081231) In-Reply-To: <698EDC07-174A-4215-8036-5356A57EDF7E@physics.queensu.ca> X-Enigmail-Version: 0.95.7 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:4170 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Patterson wrote: > Hello, > > I've run into a conflict between guile (1.8.5) and HDF5 (1.8.1) on > Fedora 10. I'll post on both mailing lists as I'm not sure who is in the > best position to fix it. I don't see any other mailing lists. > HDF5 H5public.h near line 127 has: > #if H5_SIZEOF_LONG_LONG>0 > # define long_long long long > ... snip ... > #endif > which is still present in the latest 1.8.2 release. C macros suck. Why not change this to what guile uses? typedef long long long_long; I think that should do it. > GUILE scmconfig-64.h near line 83 has: > typedef long long long_long; > I tracked the origin of this line to gen-scmconfig.c, line 287 and it is > present in the recent 1.8.6 release. > > If HDF5 is loaded before guile, the typedef becomes: > typedef long long long long > which confuses gcc (and me). As a temporary fix, I added: > #undef long_long > just before the typedef in scmconfig-64. It is not clear to me which > approach for dealing with long_long is correct or how they can be made > to play well together. > > I was trying to build MPB (http://ab-initio.mit.edu/wiki/index.php/MPB) > which is a nice piece of software that requires both guile and HDF5. > > Thank you, > Mark Patterson Marijn - -- Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML , #gentoo-{lisp,ml} on FreeNode -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmKtmMACgkQp/VmCx0OL2xgFACgtyUw3d20hGBLoIXx58qX6kPw RtAAnjl1f0zsyc2f/kuxb8yYHWmXXkEg =vH+p -----END PGP SIGNATURE-----