[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conflict with HDF5 libraries

From: Marijn Schouten (hkBst)
Subject: Re: Conflict with HDF5 libraries
Date: Thu, 05 Feb 2009 10:50:27 +0100
User-agent: Thunderbird (X11/20081231)

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:
>   #   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 Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]