unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Conflict with HDF5 libraries
@ 2009-02-04 17:21 Mark Patterson
  2009-02-05  9:50 ` Marijn Schouten (hkBst)
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Patterson @ 2009-02-04 17:21 UTC (permalink / raw)
  To: bug-guile

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.

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.

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Conflict with HDF5 libraries
  2009-02-04 17:21 Conflict with HDF5 libraries Mark Patterson
@ 2009-02-05  9:50 ` Marijn Schouten (hkBst)
  2009-02-05 16:33 ` Ken Raeburn
  2009-03-21 21:14 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Marijn Schouten (hkBst) @ 2009-02-05  9:50 UTC (permalink / raw)
  To: Mark Patterson; +Cc: bug-guile

-----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
<http://www.gentoo.org/proj/en/lisp/>, #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-----




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Conflict with HDF5 libraries
  2009-02-04 17:21 Conflict with HDF5 libraries Mark Patterson
  2009-02-05  9:50 ` Marijn Schouten (hkBst)
@ 2009-02-05 16:33 ` Ken Raeburn
  2009-03-21 21:14 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Ken Raeburn @ 2009-02-05 16:33 UTC (permalink / raw)
  To: Mark Patterson; +Cc: bug-guile

On Feb 4, 2009, at 12:21, 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.

If they're not using package-specific prefixes on symbol names, I'd  
suggest both of them should be fixed...

Ken




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Conflict with HDF5 libraries
  2009-02-04 17:21 Conflict with HDF5 libraries Mark Patterson
  2009-02-05  9:50 ` Marijn Schouten (hkBst)
  2009-02-05 16:33 ` Ken Raeburn
@ 2009-03-21 21:14 ` Ludovic Courtès
  2009-03-22 13:57   ` Andy Wingo
  2 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2009-03-21 21:14 UTC (permalink / raw)
  To: bug-guile

Hello,

Sorry for the late reply.

Mark Patterson <mpatterson@physics.queensu.ca> writes:

> 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.

As you may have noticed, this is enclosed in:

  #if (SCM_ENABLE_DEPRECATED == 1)

I.e., Guile 1.8 configured with `--disable-deprecated' doesn't have this
problem.

I suggest that we leave it in the 1.8 series for compatibility and
remove it altogether in the next stable series.  Opinions?

Thanks,
Ludo'.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Conflict with HDF5 libraries
  2009-03-21 21:14 ` Ludovic Courtès
@ 2009-03-22 13:57   ` Andy Wingo
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Wingo @ 2009-03-22 13:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: bug-guile

On Sat 21 Mar 2009 17:14, ludo@gnu.org (Ludovic Courtès) writes:

> Mark Patterson <mpatterson@physics.queensu.ca> writes:
>
>>   typedef long long long_long;
>
> I suggest that we leave it in the 1.8 series for compatibility and
> remove it altogether in the next stable series.  Opinions?

Sounds good to me.

Andy
-- 
http://wingolog.org/




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-22 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04 17:21 Conflict with HDF5 libraries Mark Patterson
2009-02-05  9:50 ` Marijn Schouten (hkBst)
2009-02-05 16:33 ` Ken Raeburn
2009-03-21 21:14 ` Ludovic Courtès
2009-03-22 13:57   ` Andy Wingo

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).