include files bug?

Joerg Sonnenberger joerg at
Tue Aug 9 11:16:02 PDT 2005

On Tue, Aug 09, 2005 at 04:49:24PM +0100, Stefan Krüger wrote:
> hi folks,
> I tried to compile ruby18 today and well... it failed...

Yes, I know.

> here's some code which did not compile:
> #include <openssl/md5.h>
> int main() { return 0; }
> -------
> #include <stdio.h>
> int main() { sizeof(FILE); return 0; }
> anyone else seeing this?

You are not supposed to access FILE directly, it's opaque simply to
avoid any stupid uses. E.g. you can't copy a FILE object to a different
location and expect it work, you can't just access it (because the
layout is opaque), the only valid way to create a FILE is via stdio --
so what should sizeof(FILE) be allowed for?

The reason why I haven't fixed ruby is that I don't have any idea what
they use it for.


More information about the Bugs mailing list