[AD] Building Allegro 4.2.1 for DJGPP

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I had some issues when compiling Allegro 4.2.1 for
DJGPP with the WARNMODE=1 switch.

The problem is related to the deprecated  "file_size" 
function

I've managed to build the library by modifying the
files src/dos/gripjoy.c, src/misc/vbeaf.c and
tests/afinfo.c.

I'm attaching here the compile warnings generated when
building the library.

Notes:
 error01.txt was generated in the second attempt to
build the library, before any source file was
modified.
 error02.txt was generated after gripjoy.c was
modified.
 error03.txt was generated after vbeaf.c was modified.
 after modifying vbeaf.c the build was successful.
 gcc version: 3.3.4

Best Regards,
Marcio.

__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 
Compiling Allegro for djgpp, optimised. Please wait...
gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -W -Wstrict-prototypes -Wno-unused -Werror -mcpu=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/gripjoy.o -c src/dos/gripjoy.c
src/dos/gripjoy.c: In function `grip_link':
src/dos/gripjoy.c:639: warning: `file_size' is deprecated (declared at include/allegro/alcompat.h:150)
make.exe: *** [obj/djgpp/alleg/gripjoy.o] Error 1
Compiling Allegro for djgpp, optimised. Please wait...
gcc -DALLEGRO_SRC -DALLEGRO_LIB_BUILD -Wall -W -Wstrict-prototypes -Wno-unused -Werror -mcpu=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/vbeaf.o -c src/misc/vbeaf.c
src/misc/vbeaf.c: In function `load_vbeaf_driver':
src/misc/vbeaf.c:721: warning: `file_size' is deprecated (declared at include/allegro/alcompat.h:150)
make.exe: *** [obj/djgpp/alleg/vbeaf.o] Error 1
Compiling Allegro for djgpp, optimised. Please wait...
gcc -DALLEGRO_LIB_BUILD -Wall -W -Wstrict-prototypes -Wno-unused -Werror -mcpu=i586 -O2 -funroll-loops -ffast-math -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/afinfo.o -c tests/afinfo.c
tests/afinfo.c: In function `load_vbeaf_driver':
tests/afinfo.c:302: warning: `file_size' is deprecated (declared at include/allegro/alcompat.h:150)
make.exe: *** [obj/djgpp/alleg/afinfo.o] Error 1


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/