Pääsin wineCVS:sän asennuksessa 4:jänteen vaiheeseen, sitten tuli joku = Make depend
sitten tuli joku ihan kummallinen kasa virheilmoitusta.
Compiling ...
TIP: Useful linux gaming pages:d problem you can check the
http://www.linux-gamers.net/ming.org/
--------- Error log - file /home/kone/.WineCVS/sources/winex330/ErrorLog : ---------
spec16.c:178: warning: pointer targets in assignment differ in signedness
spec16.c:184: warning: pointer targets in assignment differ in signedness
spec16.c:191: warning: pointer targets in assignment differ in signedness
spec16.c:195: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
spec16.c:205: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
spec16.c:206: warning: pointer targets in passing argument 1 of ‘strupper’ differ in signedne ss
spec16.c:215: warning: pointer targets in assignment differ in signedness
spec16.c:252: warning: pointer targets in assignment differ in signedness
spec16.c:275: warning: pointer targets in assignment differ in signedness
spec16.c:276: warning: pointer targets in passing argument 2 of ‘dump_bytes’ differ in signed ness
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o spec32.o spec32.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o utils.o utils.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o winebuild import.o main.o parser.o relay.o res16.o res32.o spec16.o spec32.o utils.o -L../../unic ode -lwine_unicode
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/winebuild "
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/winedump"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o debug.o debug.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o main.o main.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o misc.o misc.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o msmangle.o msmangle.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o output.o output.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o pe.o pe.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o search.o search.c
search.c: In function ‘symbol_from_prototype’:
search.c:189: warning: pointer targets in passing argument 3 of ‘str_match’ differ in signedn ess
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o symbol.o symbol.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o winedump debug.o main.o misc.o msmangle.o output.o pe.o search.o symbol.o
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/winedump"
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/wmc"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o lang.o lang.c
bison -y -d -t ./mcy.y
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o mcl.o mcl.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o utils.o utils.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o wmc.o wmc.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o write.o write.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o y.tab.o y.tab.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o wmc lang. o mcl.o utils.o wmc.o write.o y.tab.o -L../../unicode -lwine_unicode -lfl
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/wmc"
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/wrc"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o dumpres.o dumpres.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o genres.o genres.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o newstruc.o newstruc.c
newstruc.c: In function ‘handle_ani_list’:
newstruc.c:740: error: invalid lvalue in increment
newstruc.c: In function ‘new_ani_curico’:
newstruc.c:851: error: invalid lvalue in increment
make[2]: *** [newstruc.o] Virhe 1
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/wrc"
make[1]: *** [wrc] Virhe 2
make[1]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools"
make: *** [tools] Virhe 2
Error in Make
Try fixing the error based on the output above, and
run the script again, without paramaters (Eg: WineCVS.sh)
Mikä ihme on vialla?
sitten tuli joku ihan kummallinen kasa virheilmoitusta.
Compiling ...
TIP: Useful linux gaming pages:d problem you can check the
http://www.linux-gamers.net/ming.org/
--------- Error log - file /home/kone/.WineCVS/sources/winex330/ErrorLog : ---------
spec16.c:178: warning: pointer targets in assignment differ in signedness
spec16.c:184: warning: pointer targets in assignment differ in signedness
spec16.c:191: warning: pointer targets in assignment differ in signedness
spec16.c:195: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
spec16.c:205: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness
spec16.c:206: warning: pointer targets in passing argument 1 of ‘strupper’ differ in signedne ss
spec16.c:215: warning: pointer targets in assignment differ in signedness
spec16.c:252: warning: pointer targets in assignment differ in signedness
spec16.c:275: warning: pointer targets in assignment differ in signedness
spec16.c:276: warning: pointer targets in passing argument 2 of ‘dump_bytes’ differ in signed ness
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o spec32.o spec32.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o utils.o utils.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o winebuild import.o main.o parser.o relay.o res16.o res32.o spec16.o spec32.o utils.o -L../../unic ode -lwine_unicode
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/winebuild "
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/winedump"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o debug.o debug.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o main.o main.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o misc.o misc.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o msmangle.o msmangle.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o output.o output.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o pe.o pe.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o search.o search.c
search.c: In function ‘symbol_from_prototype’:
search.c:189: warning: pointer targets in passing argument 3 of ‘str_match’ differ in signedn ess
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o symbol.o symbol.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o winedump debug.o main.o misc.o msmangle.o output.o pe.o search.o symbol.o
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/winedump"
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/wmc"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o lang.o lang.c
bison -y -d -t ./mcy.y
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o mcl.o mcl.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o utils.o utils.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o wmc.o wmc.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o write.o write.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o y.tab.o y.tab.c
gcc -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-st rict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -o wmc lang. o mcl.o utils.o wmc.o write.o y.tab.o -L../../unicode -lwine_unicode -lfl
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/wmc"
make[2]: Siirrytään hakemistoon "/home/kone/.WineCVS/sources/winex330/winex/tools/wrc"
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o dumpres.o dumpres.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o genres.o genres.c
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fn o-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__i nt32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o newstruc.o newstruc.c
newstruc.c: In function ‘handle_ani_list’:
newstruc.c:740: error: invalid lvalue in increment
newstruc.c: In function ‘new_ani_curico’:
newstruc.c:851: error: invalid lvalue in increment
make[2]: *** [newstruc.o] Virhe 1
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/wrc"
make[1]: *** [wrc] Virhe 2
make[1]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools"
make: *** [tools] Virhe 2
Error in Make
Try fixing the error based on the output above, and
run the script again, without paramaters (Eg: WineCVS.sh)
Mikä ihme on vialla?
Vastaukset 20
Vanhimmat
Suoritin ohjelman uudestaan ilman mitään parametrejä, nyt tuli lyhyempi huomautuslista.
gcc -c -I. -I. -I../../include -I../../include -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-strict-aliasing -D__int8=char -D__int16=short -D__int32=int "-D__int64=long long" -D__WINE__ -D_REENTRANT -o newstruc.o newstruc.c
newstruc.c: In function ‘handle_ani_list’:
newstruc.c:740: error: invalid lvalue in increment
newstruc.c: In function ‘new_ani_curico’:
newstruc.c:851: error: invalid lvalue in increment
make[2]: *** [newstruc.o] Virhe 1
make[2]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools/wrc"
make[1]: *** [wrc] Virhe 2
make[1]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tools"
make: *** [tools] Virhe 2
tiedoston /home/kone/.WineCVS/sources/winex330/winex/tools/wrc/newstruct.c
sisältö rivien 740 ja 851 ympäriltä rivinumeroineen, niin katsotaan tilanne.
((char *)rtp)++;
}
}
ani_curico_t *new_ani_curico(enum res_e type, raw_data_t *rd, int *memopt)
{
ani_curico_t *ani = (ani_curico_t *)xmalloc(sizeof(ani_curico_t));
riff_tag_t *rtp;
int isswapped = 0;
int doswap;
const char *anistr = type == res_aniico ? "icon" : "cursor";
assert(!memcmp(rd->data, riff, sizeof(riff)));
assert(type == res_anicur || type == res_aniico);
rtp = (riff_tag_t *)rd->data;
if(BYTESWAP_DWORD(rtp->size) + 2*sizeof(DWORD) == rd->size)
isswapped = 1;
else if(rtp->size + 2*sizeof(DWORD) == rd->size)
isswapped = 0;
else
yyerror("Animated %s has an invalid RIFF length", anistr);
switch(byteorder)
{
#ifdef WORDS_BIGENDIAN
case WRC_BO_LITTLE:
#else
case WRC_BO_BIG:
#endif
doswap = !isswapped;
break;
default:
doswap = isswapped;
}
/*
* When to swap what:
* isswapped | doswap |
* ----------+--------+---------------------------------
* 0 | 0 | read native; don't convert
* 1 | 0 | read swapped size; don't convert
* 0 | 1 | read native; convert
* 1 | 1 | read swapped size; convert
* Reading swapped size if necessary to calculate in native
* format. E.g. a little-endian source on a big-endian
* processor.
*/
if(doswap)
{
/* We only go through the RIFF file if we need to swap
* bytes in words/dwords. Else we couldn't care less
* what the file contains. This is consistent with
* MS' rc.exe, which doesn't complain at all, eventhough
* the fileformat might not be entirely correct.
*/
rtp++; /* Skip the "RIFF" tag */
while((char *)rtp < (char *)rd->data + rd->size)
{
if(!memcmp(rtp->tag, acon, sizeof(acon)))
{
rtp = (riff_tag_t *)(((char *)rtp) + 4);
}
else if(!memcmp(rtp->tag, list, sizeof(list)))
{
handle_ani_list(rtp, type, isswapped);
rtp = NEXT_TAG(rtp);
}
else if(!memcmp(rtp->tag, anih, sizeof(anih)))
{
aniheader_t *ahp = (aniheader_t *)((char *)(rtp+1));
ahp->structsize = BYTESWAP_DWORD(ahp->structsize);
ahp->frames = BYTESWAP_DWORD(ahp->frames);
ahp->steps = BYTESWAP_DWORD(ahp->steps);
ahp->cx = BYTESWAP_DWORD(ahp->cx);
ahp->cy = BYTESWAP_DWORD(ahp->cy);
ahp->bitcount = BYTESWAP_DWORD(ahp->bitcount);
ahp->planes = BYTESWAP_DWORD(ahp->planes);
ahp->rate = BYTESWAP_DWORD(ahp->rate);
ahp->flags = BYTESWAP_DWORD(ahp->flags);
rtp = NEXT_TAG(rtp);
}
else if(!memcmp(rtp->tag, rate, sizeof(rate)))
{
int cnt = rtp->size / sizeof(DWORD);
DWORD *dwp = (DWORD *)(rtp+1);
int i;
for(i = 0; i < cnt; i++)
dwp[i] = BYTESWAP_DWORD(dwp[i]);
rtp = NEXT_TAG(rtp);
}
else if(!memcmp(rtp->tag, seq, sizeof(seq)))
{
int cnt = rtp->size / sizeof(DWORD);
DWORD *dwp = (DWORD *)(rtp+1);
int i;
for(i = 0; i < cnt; i++)
dwp[i] = BYTESWAP_DWORD(dwp[i]);
rtp = NEXT_TAG(rtp);
}
else
internal_error(__FILE__, __LINE__, "Unknown tag \"%c%c%c%c\" in RIFF file",
isprint(rtp->tag[0]) ? rtp->tag[0] : '.',
isprint(rtp->tag[1]) ? rtp->tag[1] : '.',
isprint(rtp->tag[2]) ? rtp->tag[2] : '.',
isprint(rtp->tag[3]) ? rtp->tag[3] : '.');
/* FIXME: This relies in sizeof(DWORD) == sizeof(pointer_type) */
if((DWORD)rtp & 1)
((char *)rtp)++;
kokeile vaihtaa rivit
((char *)rtp) ;
seuraavaksi:
rtp ;
Ainakin se kääntyy, mutta toimiiko, se sinun pitää vain kokeilla. Ota ensin varmuuskopiot ;-)
toinen vaihtoehto, joka on lähempänä alkuperäisen koodin tarkoitusta: vaihda kaikki
((char *)rtp) ;
seuraavaksi:
{
char* tmp = (char*)rtp;
tmp ;
rtp = (riff_tag_t*)tmp;
}
Korjasin siis sudo geditillä tota koodia. Toksi jälkimmäisekseksi vaihtoehdoksi tuli tämmöinen...
ts_xlib.c:1169: error: ‘a8’ undeclared (first use in this function)
ts_xlib.c: At top level:
ts_xlib.c:1174: error: syntax error before ‘TSXOpenIM’
ts_xlib.c:1174: error: syntax error before ‘*’ token
ts_xlib.c:1175: warning: return type defaults to ‘int’
ts_xlib.c: In function ‘TSXOpenIM’:
ts_xlib.c:1176: error: ‘XIM’ undeclared (first use in this function)
ts_xlib.c:1176: error: syntax error before ‘r’
ts_xlib.c:1178: error: ‘r’ undeclared (first use in this function)
ts_xlib.c:1178: warning: implicit declaration of function ‘XOpenIM’
ts_xlib.c:1178: error: ‘a0’ undeclared (first use in this function)
ts_xlib.c:1178: error: ‘a1’ undeclared (first use in this function)
ts_xlib.c:1178: error: ‘a2’ undeclared (first use in this function)
ts_xlib.c:1178: error: ‘a3’ undeclared (first use in this function)
ts_xlib.c: At top level:
ts_xlib.c:1183: error: syntax error before ‘TSXCheckIfEvent’
ts_xlib.c:1183: error: syntax error before ‘*’ token
ts_xlib.c:1183: warning: type defaults to ‘int’ in declaration of ‘TSXCheckIfEvent’
ts_xlib.c:1183: error: ‘TSXCheckIfEvent’ declared as function returning a function
ts_xlib.c:1183: warning: type defaults to ‘int’ in declaration of ‘XPointer’
ts_xlib.c:1183: error: syntax error before ‘a3’
ts_xlib.c:1186: warning: type defaults to ‘int’ in declaration of ‘wine_tsx11_lock’
ts_xlib.c:1186: error: ‘wine_tsx11_lock’ redeclared as different kind of symbol
../include/ts_xlib.h:19: error: previous declaration of ‘wine_tsx11_lock’ was here
ts_xlib.c:1186: warning: data definition has no type or storage class
ts_xlib.c:1187: warning: type defaults to ‘int’ in declaration of ‘r’
ts_xlib.c:1187: warning: implicit declaration of function ‘XCheckIfEvent’
ts_xlib.c:1187: error: ‘a0’ undeclared here (not in a function)
ts_xlib.c:1187: error: ‘a1’ undeclared here (not in a function)
ts_xlib.c:1187: error: ‘a2’ undeclared here (not in a function)
ts_xlib.c:1187: error: ‘a3’ undeclared here (not in a function)
ts_xlib.c:1187: error: initializer element is not constant
ts_xlib.c:1187: warning: data definition has no type or storage class
ts_xlib.c:1188: warning: type defaults to ‘int’ in declaration of ‘wine_tsx11_unlock’
ts_xlib.c:1188: error: ‘wine_tsx11_unlock’ redeclared as different kind of symbol
../include/ts_xlib.h:20: error: previous declaration of ‘wine_tsx11_unlock’ was herets_xlib.c:1188: warning: data definition has no type or storage class
ts_xlib.c:1189: error: syntax error before ‘return’
ts_xlib.c:1192: error: syntax error before ‘*’ token
ts_xlib.c:1192: error: syntax error before ‘*’ token
ts_xlib.c: In function ‘TSXSynchronize’:
ts_xlib.c:1194: error: syntax error before ‘*’ token
ts_xlib.c:1196: warning: implicit declaration of function ‘XSynchronize’
ts_xlib.c:1196: warning: assignment makes pointer from integer without a cast
ts_xlib.c: At top level:
ts_xlib.c:1201: error: syntax error before ‘*’ token
ts_xlib.c:1203: error: syntax error before ‘*’ token
make[1]: *** [ts_xlib.o] Virhe 1
make[1]: Poistutaan hakemistosta "/home/kone/.WineCVS/sources/winex330/winex/tsx11"make: *** [tsx11/libwine_tsx11.so] Virhe 2
tuli sama virheilmoitus kuin yleensä.
aika sattumaa toimiiko vai ei...
jos käyttäjä ei osaa kääntää niin sehän on koodin vika, tietty. Hei daa haloo hei!
http://www.tietokone.fi/uutta/uutinen.asp?news_id=24804&tyyppi=1
koodissahan on selvä virhe.
SULJETUSSA KOODISSA EI OLE VIRHEITÄ OLLENKAAN! IHQUWINDOWS RULEZ!!!!
oli avointa tai suljettua koodia.
Jokos kävit iltapesulla ja luit iltarukouksesi (linux-manuaalia)?
Et sitten millään raaski ostaa sitä? Niin ei tarttis käännellä mistään lähdekoodista. Ei ole niin helppo juttu toi sorsista kääntäminen aina, varsinkaan isojen ohjelmien kanssa ja ostamalla Cedegan tuet samalla avoimen koodin kehitystyötä.
nulikka
Jos järkipuhe suututtaa niin silloinhan se on merkki keskenkasvuisuudesta, eikös vain?
"Jos järkipuhe suututtaa niin silloinhan se on merkki keskenkasvuisuudesta, eikös vain?"
Pelaaminen on merkki keskenkasvuisuudesta, mutta hieman pölkeröitä ohjelmoijia täällä on paljon.
nyt tulee jo sellaista juttua että olet ilmeisesti olevinasi muita parempi?
CHMOD täydet oikeudet?
jo on kumma että pitää tulla nimettömänäkin kehumaan olevansa muita parempi! Kasvollisena ei luonnollisestikaan kehtaa....
Kannattaisiko !"#¤%(/)&)==!½! mennä katsomaan lib/security/pam_stress.so - siellä voisi olla sinulle niin stressaavaa pohdittavaa elämästä.
"jo on kumma että pitää tulla nimettömänäkin kehumaan olevansa muita parempi!"
Osaatkos ihmenimi edes kääntää Linuxin kerneliä?