Bug 225021 - sci-libs/hdf5-1.6.6: fails to compile with support for C++ (cxx) and others
Bug#: 225021 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: slug@aeminium.org
Component: Ebuilds
URL: 
Summary: sci-libs/hdf5-1.6.6: fails to compile with support for C++ (cxx) and others
Keywords:  
Status Whiteboard: 
Opened: 2008-06-05 17:40 0000
Description:   Opened: 2008-06-05 17:40 0000
While trying to compile hdf5 with c++ support (cxx USE flag) I noticed that the
parameters were being incorrectly passed to the configure script giving the
following error:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --prefix=/usr --enable-zlib --enable-fortran
--disable-parallel --with-ssl --enable-linux-lfs --sysconfdir=/etc
--infodir=/usr/share/info --libdir=/usr/lib --mandir=/usr/share/man
--enable-shared --with-pic  --enable-cxx --with-pthread --enable-threadsafe
--enable-production --build=i686-pc-linux-gnu
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  --enable-cxx --with-pthread
--enable-threadsafe --enable-production


I changed sci-libs/hdf5-1.6.6.ebuild:144 from
        "${myconf}" || die "configure failed"
to
        ${myconf} || die "configure failed"

and now it compiles successfully.



Reproducible: Always

Steps to Reproduce:
1. emerge sci-libs/hdf5
2.
3.

Actual Results:  
c++ support not compiled/installed.

Expected Results:  
It should have compiled support for c++ and installed the headers, examples,
etc.

------- Comment #1 From Markus Dittrich 2008-06-06 15:05:24 0000 -------
Thanks much for the note. I just fixed this in portage cvs.

Best,
Markus