[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-bugs
Subject:    Re: 'FILE' undefined on -DEVEL?
From:       Rumko <rumcic () gmail ! com>
Date:       2008-03-09 19:43:33
Message-ID: 47d43de5$0$854$415eb37d () crater_reader ! dragonflybsd ! org
[Download RAW message or body]

From what I learned, it's intentionally. FILE is defined, but is an incomplete
type, search on pkgsrc-users for "[PATCH] databases/db4" for the patch to fix
this ;)

The POSIX/SUSv3 standards don't say anything about what FILE should be (other
than that it should be defined with typedef) ... so whatever it is, as long as
it's defined, it's standard compliant :P

walt wrote:
> While trying to build a pkgsrc package, the configure step failed because
> this code won't compile on DFly:
> 
>  #include <sys/types.h>
>  #include <inttypes.h>
>  #include <stdint.h>
>  #include <stddef.h>
>  #include <unistd.h>
>  #include <stdio.h>
> 
>  typedef FILE ac__type_new_;
>  int
>  main ()
>  {
>  if ((ac__type_new_ *) 0)
>    return 0;
>  if (sizeof (ac__type_new_))
>    return 0;
>    ;
>    return 0;
>  }
> 
> AFAICT, the reason is that FILE is undefined, or wrongly defined.  The same
> code compiles on the other BSDs and linux, so we are different somehow.
> 
> Is this by intention, and why?
> 
> Thanks.
-- 
Regards,
Rumko
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic