LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-01-2009, 03:30 AM   #1
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ?


Hi,
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:
Quote:
In file included from H5IdComponent.cpp:21:
H5IdComponent.h:86: error: 'H5G_obj_t' does not name a type
The header file has such entries:
Code:
H5G_obj_t p_get_refobj_type(void *ref, H5R_type_t ref_type) const;
Is this a cause for conflicts between gcc 3 and gcc 4. If so how do i rectify the same? I have compat-ltdc++ installed. Similar errors are sure to follow during the compilation process.
 
Old 03-01-2009, 12:10 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
HDF5 1.6.8 software > > hdf5-1.6.8.tar.gz from
ftp://ftp.hdfgroup.org/HDF5/current16/src/

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

Last edited by knudfl; 03-01-2009 at 12:21 PM.
 
Old 03-01-2009, 01:03 PM   #3
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by knudfl View Post
And there is no compiler connected to 'compat-libstdc++'.
What does this mean?
Quote:
There is no gcc-3 for Suse 11.0, unless you installed an alternative one yourself.
No i haven't installed gcc 3. I learnt that it is too troublesome and will cause dependency kinda problems with gcc 4. I have the gcc that you mentioned for openSUSE 11.0.
Quote:
I do not see, how you can talk about a gcc3, gcc4 conflict, unless you are using some special configure options.
I used the configure option:
Code:
--enable-cxx
I do not have a gcc conflict. I was just wondering if hdf5-1.6.8 is better off being compiled with gcc 3 as i did not have problems compiling hdf5-1.8.2.

Last edited by samrat_rao; 03-01-2009 at 01:04 PM.
 
Old 03-02-2009, 07:57 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.
.....
 
Old 03-03-2009, 10:49 AM   #5
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by knudfl View Post
( --enable-cxx is not a usable option, AFAIK, see './configure --help' .
.... And what was the --enable-cxx meant to do ? ? )......
But typing ./configure --help gives an option --enable-cxx which is: Compile the C++ interface [default=no]

Why is it not usable?

And yes, a simple ./configure, make, make check is a success. But why not with --enable-cxx?

Last edited by samrat_rao; 03-03-2009 at 10:54 AM.
 
Old 03-03-2009, 02:28 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.
http://download.fedora.redhat.com/pu...6/os/Packages/

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

Last edited by knudfl; 03-03-2009 at 02:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error when i type gcc in my terminal satti Linux - General 10 03-22-2008 02:12 PM
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 10:24 PM
incomplete type error using cpp with gcc aatwell Programming 8 11-04-2007 11:12 AM
gcc compile error? wampire Programming 3 05-06-2006 08:05 PM


All times are GMT -5. The time now is 03:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration