Public bug reported:

when having libinsighttoolkit4-dev and libhdf5-dev installed side by side, 
error can occur due to different #define lines:
e.g in /usr/include/ITK-4.5/itkhdf5/cpp/H5Exception.h

the preprocessor defines are:
#ifndef _H5Exception_H
#define _H5Exception_H

while in /usr/include/H5Exception.h

they are:

#ifndef __H5Exception_H
#define __H5Exception_H
(one additional underscore), thus resulting eventually in compilation error in 
the like of
"error: redefinition of ‘class ..."

Dirty fix:
sed -i 's|#ifndef _|#ifndef __|g' /usr/include/ITK-4.5/itkhdf5/cpp/*
sed -i 's|#define _|#define __|g' /usr/include/ITK-4.5/itkhdf5/cpp/*
Best
Stefan

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: libinsighttoolkit4-dev 4.5.2-4 [modified: 
usr/include/ITK-4.5/itkhdf5/cpp/H5Exception.h]
ProcVersionSignature: Ubuntu 3.16.0-18.25-generic 3.16.3
Uname: Linux 3.16.0-18-generic x86_64
ApportVersion: 2.14.7-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Oct  1 20:15:12 2014
InstallationDate: Installed on 2014-03-03 (211 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140303)
SourcePackage: insighttoolkit4
UpgradeStatus: Upgraded to utopic on 2014-09-27 (4 days ago)

** Affects: insighttoolkit4 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1376385

Title:
  hdf5 header #defines deviate from those in libhdf5-dev

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/insighttoolkit4/+bug/1376385/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to