public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* bits/fpos.h missing?
@ 2004-06-30 10:47 phongphop Mongkolpiyathana
  2004-06-30 11:27 ` Claudio Bley
  0 siblings, 1 reply; 3+ messages in thread
From: phongphop Mongkolpiyathana @ 2004-06-30 10:47 UTC (permalink / raw)
  To: gcc-help

Hi all,

I installed esnacc version 1.7 and I could not 'make'
it through examples that keep telling me that file
'bits/fpos.h'(which seems to be an ordinary .h file)
is missing as below :

g++-3.4.0 -I../../c++-lib/inc -I../.. -I./ -I../src
-O2 -Wall -DSTDC_HEADERS -fPIC -Wswitch -DLinux -c -o
rfc1155-smi.o rfc1155-smi.cpp

In file included from ../../c++-lib/inc/asn-incl.h:21,

from rfc1155-smi.h:12,

from rfc1155-smi.cpp:9:

../../c++-lib/inc/asn-chartraits.h:5:42: bits/fpos.h:
No such file or directory

 

I tried to find where this file should be and I got
nothing. Am i misssing something? Could anyone please
help me out?

I use gcc3.4.0 and (Red Hat Linux 7.1 2.96-98)

Thanks in advance

Pongpob Mongkolpiyathana



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bits/fpos.h missing?
  2004-06-30 10:47 bits/fpos.h missing? phongphop Mongkolpiyathana
@ 2004-06-30 11:27 ` Claudio Bley
  2004-06-30 11:58   ` Claudio Bley
  0 siblings, 1 reply; 3+ messages in thread
From: Claudio Bley @ 2004-06-30 11:27 UTC (permalink / raw)
  To: gcc-help

On Wed, Jun 30, 2004 at 03:47:04AM -0700, phongphop Mongkolpiyathana wrote:
> Hi all,

Hello phongphop,

> g++-3.4.0 -I../../c++-lib/inc -I../.. -I./ -I../src
> -O2 -Wall -DSTDC_HEADERS -fPIC -Wswitch -DLinux -c -o
> rfc1155-smi.o rfc1155-smi.cpp
> 
> In file included from ../../c++-lib/inc/asn-incl.h:21,
> 
> from rfc1155-smi.h:12,
> 
> from rfc1155-smi.cpp:9:
> 
> ../../c++-lib/inc/asn-chartraits.h:5:42: bits/fpos.h:
> No such file or directory

bits/fpos.h is (or better was) an internal header file and one shouldn't
attempt to use it directly (as it may as well disappear one day ;).

I'd say you should just edit ../../c++-lib/inc/asn-chartraits.h and change
line 5 from

#include <bits/fpos.h>

to 

#include <ios>

That should take care of it. If you can report this issue to the author(s)
of the program. But, as I just realized esnacc does require a specific
version of GCC (3.1). ./configure (with gcc-3.4) prints:

checking "Checking GNU compiler version"... 
configure: WARNING: ***** WARNING ***** Incorrect version of GNU - Should be version 3.1

Hm. (yada, yada, yada...)

OK. I just confirmed it (downloaded esnacc, tried to compile, edited the
source line): inclusion of "ios" does fix the issue but there are a lot more.

-fpermissive might help a little. But you're probably better off just
installing / using GCC 3.1.

Cheers.
-- 
Claudio

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bits/fpos.h missing?
  2004-06-30 11:27 ` Claudio Bley
@ 2004-06-30 11:58   ` Claudio Bley
  0 siblings, 0 replies; 3+ messages in thread
From: Claudio Bley @ 2004-06-30 11:58 UTC (permalink / raw)
  To: gcc-help

[ Okay, replying to myself. ]

On Wed, Jun 30, 2004 at 01:26:00PM +0200, Claudio Bley wrote:
> 
> -fpermissive might help a little. But you're probably better off just
> installing / using GCC 3.1.

Nope, this is obviously wrong as I now tried with the suggested change and
giving the -fpermissive switch esnacc compiled (with a whole bunch of
warning messages, though) with GCC 3.4. YMMV ;-)

Regards.
-- 
Claudio

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-30 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 10:47 bits/fpos.h missing? phongphop Mongkolpiyathana
2004-06-30 11:27 ` Claudio Bley
2004-06-30 11:58   ` Claudio Bley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).