Portál AbcLinuxu, 9. listopadu 2025 02:39
[root@noticka quake2-0.2.1]# make
make all-recursive
make[1]: Entering directory `/home/fifinka/quake2-0.2.1'
Making all in src
make[2]: Entering directory `/home/fifinka/quake2-0.2.1/src'
Making all in .
make[3]: Entering directory `/home/fifinka/quake2-0.2.1/src'
source='r_image.c' object='ref_softx_la-r_image.lo' libtool=yes \
depfile='.deps/ref_softx_la-r_image.Plo' tmpdepfile='.deps/ref_softx_la-r_image.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -Werror -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fPIC -g -O2 -c -o ref_softx_la-r_image.lo `test -f 'r_image.c' || echo './'`r_image.c
rm -f .libs/ref_softx_la-r_image.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -Werror -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fPIC -g -O2 -c r_image.c -MT ref_softx_la-r_image.lo -MD -MP -MF .deps/ref_softx_la-r_image.TPlo -fPIC -DPIC -o .libs/ref_softx_la-r_image.lo
cc1: warnings being treated as errors
r_image.c: In function 'LoadPCX':
r_image.c:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
r_image.c: In function 'LoadTGA':
r_image.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
r_image.c: In function 'R_LoadWal':
r_image.c:459: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [ref_softx_la-r_image.lo] Error 1
make[3]: Leaving directory `/home/fifinka/quake2-0.2.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fifinka/quake2-0.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fifinka/quake2-0.2.1'
make: *** [all] Error 2
[root@noticka quake2-0.2.1]#
cc1: warnings being treated as errorsza což AFAIK může přepínač
-Werror, kterýžto zřejmě bude potřeba ručně odstranit z Makefile, třeba takto by to mělo stačit:
sed -i 's/-Werror//g' Makefile
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.