Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/mdsprite.o error 1 and jfbuild/libengine.a error 2 #38

Closed
casey-ac opened this issue Jun 23, 2023 · 1 comment
Closed

src/mdsprite.o error 1 and jfbuild/libengine.a error 2 #38

casey-ac opened this issue Jun 23, 2023 · 1 comment

Comments

@casey-ac
Copy link

Dear Developer,
The below errors are output when attempting to build ("RELEASE=1 make"). The build system is a PowerPC 970 x4 running a derivative of Debian Bookworm 32-bit userland on 64-bit kernel 6.0.

src/mdsprite.c:590:64: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  590 |      if (kread(fil,(char *)m->uvs,m->numuv*sizeof(md2uv_t)) != m->numuv*sizeof(md2uv_t))
      |                                                             ^~

src/mdsprite.c:596:68: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  596 |  if (kread(fil,(char *)m->tris,m->numtris*sizeof(md2tri_t)) != m->numtris*sizeof(md2tri_t))
      |                                                             ^~

src/mdsprite.c:613:43: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
  613 |                 for (i = m->numframes-1; i>=0; i--) {
      |                                           ^~
src/mdsprite.c:625:14: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
  625 |         if (i<0) i=0;
      |              ^
src/mdsprite.c: In function 'md3load':
src/mdsprite.c:936:30: error: 'i' undeclared (first use in this function)
  936 |                         for (i=s->numtris-1;i>=0;i--) {
      |                              ^
src/mdsprite.c:936:30: note: each undeclared identifier is reported only once for each function it appears in
src/mdsprite.c:937:38: error: 'j' undeclared (first use in this function)
  937 |                                 for (j=2;j>=0;j--) s->tris[i].i[j] = B_LITTLE32(s->tris[i].i[j]);
      |                                      ^
make[1]: *** [Makefile:224: src/mdsprite.o] Error 1
make[1]: Leaving directory '/media/fienix/MediaDrive/fienix/evo_6.0/Packages-TODO/8-NewBuilds/jfsw/jfbuild'
make: *** [Makefile:226: jfbuild/libengine.a] Error 2
@jonof
Copy link
Owner

jonof commented Jun 28, 2023

Ohh, I see what I did wrong. Thanks.
Edit: Until I update the submodule here in jfsw, the repair is in jonof/jfbuild@4eb7853635

@jonof jonof closed this as completed Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants