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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-01-2009, 03:30 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2008
Location: India
Posts: 29
Rep:
|
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.
|
|
|
|
03-01-2009, 12:10 PM
|
#2
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,587
|
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.
|
|
|
|
03-01-2009, 01:03 PM
|
#3
|
|
LQ Newbie
Registered: Nov 2008
Location: India
Posts: 29
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
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: 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.
|
|
|
|
03-02-2009, 07:57 AM
|
#4
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,587
|
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.
.....
|
|
|
|
03-03-2009, 10:49 AM
|
#5
|
|
LQ Newbie
Registered: Nov 2008
Location: India
Posts: 29
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
( --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.
|
|
|
|
03-03-2009, 02:28 PM
|
#6
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,587
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|