Bennu Game Development

English Forums => Helpdesk => Mensaje iniciado por: jose1711 en Diciembre 31, 2010, 09:50:39 pm

Título: error during compilation
Publicado por: jose1711 en Diciembre 31, 2010, 09:50:39 pm
i'm getting the following error while trying to compile bennugd-modules (latest) on arch linux. any help appreciated. thank you, jose

Código: [Seleccionar]
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"bennu\" -DPACKAGE_TARNAME=\"bennu\" -DPACKAGE_VERSION=\"1.0.0\" -DPACKAGE_STRING=\"bennu\ 1.0.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"bennu\" -DVERSION=\"1.0.0\" -DHAVE_LIBM=1 -I.    -Wall -DTARGET_LINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/home/jose/tarballs/pacman/bennugd-modules/src/bennugd/modules/../core/include -I/home/jose/tarballs/pacman/bennugd-modules/src/bennugd/modules/../core/bgdrtm/include -I. -I../librender/ -I../libfont/ -I../libblit/ -I../libvideo/ -I../libgrbase/ -march=i686 -mtune=generic -O2 -pipe -O2 -finline-functions -fno-strict-aliasing -Wall -DTARGET_LINUX -MT mod_map_la-file_png.lo -MD -MP -MF .deps/mod_map_la-file_png.Tpo -c -o mod_map_la-file_png.lo `test -f 'file_png.c' || echo './'`file_png.c
libtool: compile:  gcc -DPACKAGE_NAME=\"bennu\" -DPACKAGE_TARNAME=\"bennu\" -DPACKAGE_VERSION=\"1.0.0\" "-DPACKAGE_STRING=\"bennu 1.0.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"bennu\" -DVERSION=\"1.0.0\" -DHAVE_LIBM=1 -I. -Wall -DTARGET_LINUX -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/home/jose/tarballs/pacman/bennugd-modules/src/bennugd/modules/../core/include -I/home/jose/tarballs/pacman/bennugd-modules/src/bennugd/modules/../core/bgdrtm/include -I. -I../librender/ -I../libfont/ -I../libblit/ -I../libvideo/ -I../libgrbase/ -march=i686 -mtune=generic -O2 -pipe -O2 -finline-functions -fno-strict-aliasing -Wall -DTARGET_LINUX -MT mod_map_la-file_png.lo -MD -MP -MF .deps/mod_map_la-file_png.Tpo -c file_png.c  -fPIC -DPIC -o .libs/mod_map_la-file_png.o
file_png.c: In function ‘gr_read_png’:
file_png.c:92:5: warning: ‘jmpbuf’ is deprecated (declared at /usr/include/png.h:1125)
file_png.c:260:17: warning: ‘pixel_depth’ is deprecated (declared at /usr/include/png.h:674)
file_png.c:260:17: warning: ‘valid’ is deprecated (declared at /usr/include/png.h:649)
file_png.c:264:37: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:265:34: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:266:34: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:304:17: warning: ‘pixel_depth’ is deprecated (declared at /usr/include/png.h:674)
file_png.c:304:17: warning: ‘valid’ is deprecated (declared at /usr/include/png.h:649)
file_png.c:308:37: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:309:34: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:310:34: error: ‘png_info’ has no member named ‘trans_values’
file_png.c:321:5: warning: ‘jmpbuf’ is deprecated (declared at /usr/include/png.h:1125)
file_png.c: In function ‘gr_save_png’:
file_png.c:392:5: warning: ‘jmpbuf’ is deprecated (declared at /usr/include/png.h:1125)
file_png.c:430:4: warning: ‘num_trans’ is deprecated (declared at /usr/include/png.h:657)
file_png.c:431:12: error: ‘png_info’ has no member named ‘trans’
file_png.c:432:4: warning: ‘valid’ is deprecated (declared at /usr/include/png.h:649)
file_png.c:432:4: warning: ‘valid’ is deprecated (declared at /usr/include/png.h:649)
file_png.c:469:9: warning: ‘palette’ is deprecated (declared at /usr/include/png.h:653)
make[1]: *** [mod_map_la-file_png.lo] Error 1
make[1]: Leaving directory `/home/jose/tarballs/pacman/bennugd-modules/src/bennugd/modules/mod_map'
make: *** [all-recursive] Error 1
Título: Re: error during compilation
Publicado por: EugeneP en Mayo 17, 2011, 01:19:02 am
Occasionally I ran into similar problem. I guess I'll be forgiven for replying so outdated post, but it seems no answer was given yet on the forum.
The problem is in changes between libpng12 and libpng14. You'll get this error on system with libpng>=1.4.
To fix this fast you need to replace info_ptr->trans_values with info_ptr->trans_color and info_ptr->trans with info_ptr->trans_alpha in mod_map/file_png.c

see patched file_png.c for revision 244 in attach
Título: Re: error during compilation
Publicado por: jose1711 en Mayo 17, 2011, 07:59:00 pm
thanks to your post i was able to fix pkgbuild for arch linux so thank you for answering seemingly out-dated questions :-)