stdio.h error: _fake_filebuf not defined

stdio.h error: _fake_filebuf not defined

Post by Mark Kass » Wed, 25 Aug 1993 02:59:20



Hi,

I have SLS 1.03 with 0.99pl12.  I'm trying to compile a file which includes
stdio.h, but gcc complains about the _fake_filebuf struct which is in defined
in stdio.h.  The log shown below.  I have not included the source as some
people have to pay for their news, but I would be glad to mail it to anyone
who can make use of it.  Note that this compiles with no problems on a Sun.

Thanks in advance for your help,
Mark

bison++   -d Parser.y -o Parser.C -h Parser.H
sed 's/typedef union/typedef struct/g' < Parser.H > /tmp/parser.tmp
mv /tmp/parser.tmp Parser.H
sed 's/typedef union/typedef struct/g' < Parser.C > /tmp/parser.tmp
mv /tmp/parser.tmp Parser.C
flex++ -i        -hScanner.H -oScanner.C Scanner.l
g++ -pipe -g  -I. -Ilib  -c Scanner.C
/home/u1/mark//lib/flexskel.cc: In method `void  Scanner::yy_fatal_error (char *)':
/home/u1/mark//lib/flexskel.cc:329: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:329: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc: In method `int  Scanner::yylex (struct yy_Parser_stype*, struct yyltype*)':
/home/u1/mark//lib/flexskel.cc:402: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:405: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:569: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:569: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc: In method `int  Scanner::yy_get_next_buffer ()':
/home/u1/mark//lib/flexskel.cc:599: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:599: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:623: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:623: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:627: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:627: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc: In method `void  Scanner::yyunput (char, char *)':
/home/u1/mark//lib/flexskel.cc:760: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:760: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc: In method `int  Scanner::input ()':
/home/u1/mark//lib/flexskel.cc:839: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:839: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc: In method `struct yy_buffer_state* Scanner::yy_create_buffer (struct __FILE*, int)':
/home/u1/mark//lib/flexskel.cc:940: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:940: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:950: cannot lookup method in incomplete type `_fake_filebuf'
/home/u1/mark//lib/flexskel.cc:950: cannot lookup method in incomplete type `_fake_filebuf'
make: *** [Scanner.o] Error 1

 
 
 

1. HELP:stdin not defined in stdio.h in RedHat 6.0???

I have an application that built correctly under RedHat 5.1 but not
under RedHat 6.0.  The problem is the definition of stdin was left out
of stdio.h.  Under RedHat 5.1, stdio.h has the following definition:
   #define stdin _IO_stdin

that definition is missing in the RedHat 6.0 version of stdio.h, but
does have the following:
   extern FILE *stdin;

which causes undefined references at link time.  Where did the
definition go in 6.0 and how do I resolve it?  Thanks for any help.

--
George Brown               Voice: (315) 363-8000
Tower Concepts               Fax: (315) 363-7488

  The leader in integrated CM and PT solutions!

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Where to find IOSTAT and SAR kernel patch?

3. compilation error: "Error: namespace is not defined."

4. Latest news

5. sendmail compile error: despite confINCLUDEDIRS, stdio.h functions not found?

6. Diamond Viper V330 and XFree86

7. How to get _bufsiz defined in <stdio.h>

8. BASH Frequently-Asked Questions

9. gcc #define #define #define

10. What is this __main not defined error?

11. 2.4.18 compile error : nro_smp not defined

12. glibs-compile-error : local label "0" is not defined

13. Error: Popup 'Games' not defined...