DragonFly bugs List (threaded) for 2008-03
DragonFly BSD
DragonFly bugs List (threaded) for 2008-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

'FILE' undefined on -DEVEL?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Sun, 9 Mar 2008 12:25:17 -0700

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.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]