Package: kraptor Version: 0.0.20040403-1 Severity: normal Tags: patch When building 'kraptor' on amd64/unstable with gcc-4.0, I get the following error:
gcc -Iinclude -Wall -O3 -c src/game.c -o obj/linux/game.o src/game.c: In function 'update_display': src/game.c:341: warning: 'set_clip' is deprecated (declared at /usr/include/allegro/alcompat.h:219) src/game.c:377: warning: 'text_mode' is deprecated (declared at /usr/include/allegro/alcompat.h:167) src/game.c:390: warning: 'textprintf' is deprecated (declared at /usr/include/allegro/alcompat.h:189) src/game.c:397: warning: 'set_clip' is deprecated (declared at /usr/include/allegro/alcompat.h:219) src/game.c: In function 'comenzar_juego': src/game.c:416: error: invalid storage class for function 'liberar_listas_interno' src/game.c:432: error: invalid storage class for function 'hacer_cleanup_mapeos' src/game.c:446: error: invalid storage class for function 'pone_timers_juego' src/game.c:460: error: invalid storage class for function 'saca_timers_juego' make[1]: *** [obj/linux/game.o] Error 1 make[1]: Leaving directory `/kraptor-0.0.20040403' make: *** [build-stamp] Error 2 With the attached patch 'kraptor' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/kraptor-0.0.20040403/include/pmask.h ./include/pmask.h --- ../tmp-orig/kraptor-0.0.20040403/include/pmask.h 2003-02-03 00:45:00.000000000 +0100 +++ ./include/pmask.h 2005-06-17 21:46:40.000000000 +0200 @@ -39,7 +39,7 @@ //MASK_WORD_TYPE and MASK_WORD_BITBITS can be changed for your platform //MASK_WORD_TYPE should be the largest fast integer type available -#define MASK_WORD_TYPE unsigned long int +#define MASK_WORD_TYPE unsigned int //MASK_WORD_BITBITS should be the log base 2 //of the number of bits in MASK_WORD_TYPE diff -urN ../tmp-orig/kraptor-0.0.20040403/src/game.c ./src/game.c --- ../tmp-orig/kraptor-0.0.20040403/src/game.c 2003-12-17 00:13:00.000000000 +0100 +++ ./src/game.c 2005-06-17 21:42:13.000000000 +0200 @@ -412,7 +412,7 @@ void comenzar_juego(int load_savegame) { /* funcion interna que libera listas enlazadas */ - static void liberar_listas_interno() + void liberar_listas_interno() { /* LIBERAR LISTAS... */ liberar_lista_enemigos(); @@ -428,7 +428,7 @@ /* funcion interna que limpia los colores y bufferes y coloca la paleta de juego, etc */ - static void hacer_cleanup_mapeos() + void hacer_cleanup_mapeos() { set_palette(pal_game); color_map = &tabla_transparencia; /* la rutina de sombras la precisa! */ @@ -442,7 +442,7 @@ } /* Funcion interna para instalar los timers */ - static void pone_timers_juego() + void pone_timers_juego() { /* Timers */ if (install_int_ex(increment_speed_counter, BPS_TO_TIMER(30))) @@ -456,7 +456,7 @@ } /* Funcion interna para SACAR los timers */ - static void saca_timers_juego() + void saca_timers_juego() { /* remover timers... */ remove_int(fps_proc); diff -urN ../tmp-orig/kraptor-0.0.20040403/src/joymnu.c ./src/joymnu.c --- ../tmp-orig/kraptor-0.0.20040403/src/joymnu.c 2003-07-27 05:26:00.000000000 +0200 +++ ./src/joymnu.c 2005-06-17 21:42:26.000000000 +0200 @@ -21,7 +21,7 @@ y cambia de color cuando presiona el boton 1,2 o 3 usa d2 para propositos internos... */ - static int xbox_joystick_test_proc(int msg, DIALOG *d, int c) + int xbox_joystick_test_proc(int msg, DIALOG *d, int c) { int new_pos = 0; int pos_x = 0 , pos_y = 0; // posicion (-1 = abj,izq, 1 = arr,der ) diff -urN ../tmp-orig/kraptor-0.0.20040403/src/menu.c ./src/menu.c --- ../tmp-orig/kraptor-0.0.20040403/src/menu.c 2003-07-27 04:22:00.000000000 +0200 +++ ./src/menu.c 2005-06-17 21:42:51.000000000 +0200 @@ -146,7 +146,7 @@ static void hacer_el_menu_principal_helper() { // comenzar un nuevo juego - static int nuevo_juego_mnu() + int nuevo_juego_mnu() { DIALOG skill_select_dlg[] = { @@ -173,14 +173,14 @@ } // Carga un juego - static int cargar_mnu() + int cargar_mnu() { menu_seleccionado = MNU_S_LOAD_GAME; return D_CLOSE; } - static int salir_mnu() + int salir_mnu() { menu_seleccionado = MNU_S_QUIT_GAME; @@ -188,7 +188,7 @@ } /* Permite seleccionar un nuevo modo de video */ - static int choose_video_mnu() + int choose_video_mnu() { int card = 0, w = SCREEN_W, h = SCREEN_H; @@ -206,7 +206,7 @@ } /* Acerca de... */ - static int acercade_proggy_mnu() + int acercade_proggy_mnu() { DIALOG acerca_de_dlg[] = { @@ -241,14 +241,14 @@ } /* idioma -> espa¤ol */ - static int cambia_espanol(void) + int cambia_espanol(void) { menu_seleccionado = MNU_S_CFG_SPANISH; return D_CLOSE; } /* idioma -> ingles */ - static int cambia_ingles(void) + int cambia_ingles(void) { menu_seleccionado = MNU_S_CFG_ENGLISH; return D_CLOSE; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]