LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-07-2005, 03:19 PM   #1
ghorab
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
compilation error in standard header fpos.h in gcc 3.2.2


I am facing some problems with the gcc version 3.2.2. When installing a package on linux, it tries to compile some files but outputs the following error:

/usr/include/c++/3.2.2/bits/fpos.h:60: 'streamoff' is used as a type, but is not defined as a type.


This error is followed by many other errors (but I found the same combination of errors a lot when trying to search for a solution on google). I was wondering what the problem was and if there was a known solution to it? Any help would be greatly appreciated. I actually am in desperate need for help!

Thanks again!
 
Old 12-07-2005, 05:06 PM   #2
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
What distribution are you using? And what program(s) are you trying to install?
 
Old 12-08-2005, 05:48 AM   #3
ghorab
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Here is the content of /proc/version:

Linux version 2.4.25master (root@master) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5))

I'm trying to install a package for statistical natural language processing training. Its called GenPar. Hope that information helps. Has anyone heard of this error before?

Thanks again
 
Old 12-09-2005, 06:46 AM   #4
Maestro485
Member
 
Registered: Apr 2004
Location: Pittsburgh
Distribution: Slackware
Posts: 136

Rep: Reputation: 16
If it is at all possible, I'd recommend upgrading to Fedora Core rather than continuing to use RedHat. The official RedHat distribution is no longer in production, and no longer supported by RedHat. Fedora Core is essentially RedHat, just not officially maintained by the RedHat company itself.

If this isn't possible, you could always try editing line 60 in fpos.h to correct whatever it is that GCC is complaining about.

Honestly though, upgrading the entire distribution is probably your best bet. RedHat has been "deprecated" for some time now, and that is not going to change.
 
Old 12-09-2005, 09:01 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
if it's saying
bits/c++config.h: No such file or directory
this was a temporary problem in a particular build of libstdc++
 
Old 12-09-2005, 10:35 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
Originally posted by Maestro485
Honestly though, upgrading the entire distribution is probably your best bet. RedHat has been "deprecated" for some time now, and that is not going to change.
Whoa... hold on a sec. RedHat personal may have moved along to FedoraCore, but RedHat Enterprise is very much alive and well. Assuming he's using Enterprise and not a horribly outdated version of RedHat personal then it's probably modern. Otherwise, I would agree: update

I'm not knowledgeable about the bug foo_bar_foo references, but my first question would be: how are you installing it? Are there step-by-step instructions (configure, make, make install) or is this a custom job? I haven't searched for the package to look over it yet. If it's a custom sequence of commands, it'd be helpful to see what commands you're issuing to compile.
 
Old 12-10-2005, 03:26 AM   #7
ghorab
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I cannot upgrade to Fedora (I just have and account on that machine).. As for the instructions, Im simply following instructions on the documentation of the package (after setting all the variables and stuff, its a simple "make all"!)..
Is it something to do with the gcc? I will send an email to gcc-help@gnu.org, just in case... But please do reply if you have any solutions though... Thanks a lot!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in gcc / g++ standard file maheshbmane Programming 6 09-02-2005 08:30 PM
Use gcc and standard libraries with SUSE 9.1 Personal warrenpatrick Linux - Newbie 3 10-10-2004 07:26 PM
GCC doesn't find the Standard-Library the_styler Linux - Software 11 01-15-2004 08:09 PM
Where are the standard header files located? CodeWarrior Programming 3 12-25-2003 10:33 PM
gcc compilation error Proger Programming 1 03-22-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration