Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ?
I am trying to compile a package hdf-1.6.8 for openSUSE 11.0. But i think there is a problem when gcc 4.3 is used. The make fails giving errors like:
HDF5 1.6.8 software > > hdf5-1.6.8.tar.gz from
'cd hg5-1.6.8', './configure', 'make' runs with no errors
on a clean install of Suse 11.0,
using gcc43-4.3.1_20080507-6.1 .
There is a 'compat-libstdc++' for Suse 11.0, but it isn't
used, as all code in HG5 is c-code, no c++.
And there is no compiler connected to 'compat-libstdc++'.
There is no gcc-3 for Suse 11.0, unless you installed an
alternative one yourself.
I do not see, how you can talk about a gcc3, gcc4 conflict,
unless you are using some special configure options.
The only possible reason for an error I can think of, is if
you have another version of gcc-4.3 .? ?
Please try this : 'cd hg5-1.6.8' .. 'make distclean'
( or unpack hg5-1.6.8/ to a new location in /home/<username>/ )
And next rerun './configure' with no options.
( --enable-cxx is not a usable option, AFAIK, see './configure --help' .
.... And what was the --enable-cxx meant to do ? ? )
As already said, running make should work on Suse 11 with no errors.
Why is it not usable?
And yes, a simple ./configure, make, make check is a success. But why not with --enable-cxx?
I am very sorry, must have been sleepy ?
Now I found both the c++ code and the option --enable-cxx .
( And the --enable-fortran = 'Compile the fortran interface' too ! )
'./configure --enable-cxx' :
Works OK with 'g++-4.3' here, make sure, that 'gcc-c++' is installed,
and that 'g++' is present in /usr/bin/ .
This also works : './configure --enable-cxx CXX=g++34' :
I used the 'compat-gcc-34-c++-3.4.6-9.i386.rpm'
and 'compat-gcc-34-.4.6-9.i386.rpm' from Fedora 10.
( Fedora 10 has an equal 'glibc' and almost the same 'binutils'
as Suse 11, so the compiler works with no errors.)
The result in the hidden c++/.libs/ folder is 'libhdf5_cpp.a'
|All times are GMT -5. The time now is 08:00 PM.|