Re: [AD] Current svn broken? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I noticed it too. Following patch fixes but don't know if it has
impact elsewhere.
Pete
Index: include/allegro5/base.h
===================================================================
--- include/allegro5/base.h (revision 12099)
+++ include/allegro5/base.h (working copy)
@@ -36,6 +36,7 @@
#include <stdlib.h>
#include <time.h>
#include <string.h>
+ #include <sys/types.h>
#endif
#if (defined DEBUGMODE) && (defined FORTIFY)
On Sun, Apr 19, 2009 at 7:51 PM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> I don't have time to look into this in detail at the moment, but after
> current svn things appear to be broken for me. If I run "make" I get:
>
> eglebbk@xxxxxxxxxx>make
> Building C object CMakeFiles/allegro.dir/src/bitmap_new.c.o
> In file included from /Users/eglebbk/Program/Allegro5/4.9/include/
> allegro5/allegro.h:52,
> from /Users/eglebbk/Program/Allegro5/4.9/include/
> allegro5/allegro5.h:4,
> from /Users/eglebbk/Program/Allegro5/4.9/src/
> bitmap_new.c:23:
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:30: error:
> syntax error before ‘off_t’
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:30:
> warning: no semicolon at end of struct or union
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:31:
> warning: type defaults to ‘int’ in declaration of
> ‘ALLEGRO_FILE_INTERFACE’
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:31:
> warning: data definition has no type or storage class
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:36:
> warning: type defaults to ‘int’ in declaration of
> ‘ALLEGRO_FILE_INTERFACE’
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:36:
> warning: no semicolon at end of struct or union
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:36: error:
> syntax error before ‘*’ token
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:91: error:
> syntax error before ‘*’ token
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:91:
> warning: type defaults to ‘int’ in declaration of
> ‘al_get_new_file_interface’
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:91:
> warning: data definition has no type or storage class
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:92:
> warning: type defaults to ‘int’ in declaration of
> ‘ALLEGRO_FILE_INTERFACE’
> /Users/eglebbk/Program/Allegro5/4.9/include/allegro5/file.h:92: error:
> syntax error before ‘*’ token
> make[2]: *** [CMakeFiles/allegro.dir/src/bitmap_new.c.o] Error 1
> make[1]: *** [CMakeFiles/allegro.dir/all] Error 2
> make: *** [all] Error 2
> eglebbk@xxxxxxxxxx>
>
> This seems to have something to do with recent changes to the file API
> and it may be worthwhile to have a look at the SVN history, since I
> think I had a similar problem before (which either Thomas or I fixed
> at the time).
>
> I also noticed that a bug that I thought had been fixed is still
> present: if I run "make clean", the example data directory (and I
> think a few other files) are also removed. I need to restore them from
> SVN. This is using an out-of-source build, if that's any help.
>
> Evert
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>