Error compilando bennu en cygwin

Started by DCelso, January 25, 2009, 03:33:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DCelso

Hola splinter, me da un error raro el compilador de que strncasecmp tiene tipos conflictivos. ¿sabes que puede ser?

$ make
Making all in bgdrtm
make[1]: Entering directory `/cygdrive/c/Documents and Settings/Xel/Mis document
os/eclipse/workspace/bennugd/core/bgdrtm'
Making all in src
make[2]: Entering directory `/cygdrive/c/Documents and Settings/Xel/Mis document
os/eclipse/workspace/bennugd/core/bgdrtm/src'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"bennu\" -DP
ACKAGE_TARNAME=\"bennu\" -DPACKAGE_VERSION=\"0.93\" -DPACKAGE_STRING=\"bennu\ 0.
93\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_S
TAT_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 -DPACK
AGE=\"bennu\" -DVERSION=\"0.93\" -I.    -O2 -finline-functions -fno-strict-alias
ing   -I../../include -I../include -D__BGDRTM__ -DDEBUG -O2 -finline-functions -
fno-strict-aliasing  -MT libbgdrtm_la-dcbr.lo -MD -MP -MF .deps/libbgdrtm_la-dcb
r.Tpo -c -o libbgdrtm_la-dcbr.lo `test -f 'dcbr.c' || echo './'`dcbr.c
gcc -DPACKAGE_NAME=\"bennu\" -DPACKAGE_TARNAME=\"bennu\" -DPACKAGE_VERSION=\"0.
93\" "-DPACKAGE_STRING=\"bennu 0.93\"" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -D
HAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_
UNISTD_H=1 -DHAVE_DLFCN_H=1 -DPACKAGE=\"bennu\" -DVERSION=\"0.93\" -I. -O2 -finl
ine-functions -fno-strict-aliasing -I../../include -I../include -D__BGDRTM__ -DD
EBUG -O2 -finline-functions -fno-strict-aliasing -MT libbgdrtm_la-dcbr.lo -MD -M
P -MF .deps/libbgdrtm_la-dcbr.Tpo -c dcbr.c  -DPIC -o .libs/libbgdrtm_la-dcbr.o
In file included from dcbr.c:32:
../include/bgdrtm.h:68: error: conflicting types for 'strncasecmp'
/usr/include/string.h:71: error: previous declaration of 'strncasecmp' was here
../include/bgdrtm.h:68: error: conflicting types for 'strncasecmp'
/usr/include/string.h:71: error: previous declaration of 'strncasecmp' was here
dcbr.c: In function `dcb_load_from':
dcbr.c:309: warning: passing arg 2 of `file_readUint32A' from incompatible point
er type
dcbr.c:441: warning: assignment from incompatible pointer type
dcbr.c:489: warning: passing arg 2 of `file_readUint32A' from incompatible point
er type
dcbr.c:506: warning: passing arg 2 of `file_readUint32A' from incompatible point
er type
dcbr.c:513: warning: passing arg 2 of `file_readUint32A' from incompatible point
er type
make[2]: *** [libbgdrtm_la-dcbr.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Xel/Mis documento
s/eclipse/workspace/bennugd/core/bgdrtm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Xel/Mis documento
s/eclipse/workspace/bennugd/core/bgdrtm'
make: *** [all-recursive] Error 1
Monstruos Diabólicos

"A PAck of classic GAMEs For BennuGD" en desarrollo
http://code.google.com/p/apagame4be/

SplinterGU

tenes que usar mingw+msys y una serie de paquetes adicionales...
en los fuentes hay un readme o un leeme, que si bien no estan con las ultimas versiones, sirve de guia para saber todo lo que se necesita...
luego hare un tutorial.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

josebita

Lo de usar cygwin complica mucho el proceso, aunque en un principio parezca que ayuda a tener todo instalado, acaba dando errores de dependencias difíciles de arreglar.