dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
667 stars 38 forks source link

Compile error on Fedora 40 #385

Closed MastaG closed 1 month ago

MastaG commented 2 months ago
[ 14%] Building C object lib/BRender-v1.3.2/core/fw/CMakeFiles/fw.dir/devsetup.c.o
In file included from /home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/ddi/brddi.h:60,
                 from /home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/fw.h:16,
                 from /home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:13:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In functie ‘BrRendererFacilityFind’:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:398:42: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  398 |                 ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                          ^~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          br_renderer_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:398:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’
  398 |                 ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                          ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:402:46: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  402 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
      |                                              |
      |                                              br_output_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:402:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’
  402 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:405:41: fout: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  405 |                         ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         br_renderer_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:405:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’
  405 |                         ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                         ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In functie ‘BrRendererFacilityListFind’:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:494:42: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  494 |                 ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_OL);
      |                                          ^~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          br_renderer_facility ***
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:494:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility ***’
  494 |                 ObjectQuery(destination, &renderer_facility, BRT_RENDERER_FACILITY_OL);
      |                                          ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:498:46: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  498 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
      |                                              |
      |                                              br_output_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:498:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’
  498 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:501:41: fout: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  501 |                         ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_OL);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         br_renderer_facility ***
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:501:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility ***’
  501 |                         ObjectQuery(ot, &renderer_facility, BRT_RENDERER_FACILITY_OL);
      |                                         ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In functie ‘BrPrimitiveLibraryFind’:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:669:42: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  669 |                 ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_O);
      |                                          ^~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          br_primitive_library **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:669:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library **’
  669 |                 ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_O);
      |                                          ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:673:46: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  673 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
      |                                              |
      |                                              br_output_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:673:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’
  673 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:676:41: fout: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  676 |                         ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_O);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         br_primitive_library **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:676:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library **’
  676 |                         ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_O);
      |                                         ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In functie ‘BrPrimitiveLibraryListFind’:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:765:42: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  765 |                 ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL);
      |                                          ^~~~~~~~~~~~~~~~~~
      |                                          |
      |                                          br_primitive_library ***
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:765:42: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library ***’
  765 |                 ObjectQuery(destination, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL);
      |                                          ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:769:46: fout: passing argument 2 of ‘((br_object *)destination)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  769 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
      |                                              |
      |                                              br_output_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:769:46: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_output_facility **’
  769 |                 r = ObjectQuery(destination, &ot, BRT_OUTPUT_FACILITY_O);
      |                                              ^~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:772:41: fout: passing argument 2 of ‘((br_object *)ot)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  772 |                         ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         br_primitive_library ***
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:772:41: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_primitive_library ***’
  772 |                         ObjectQuery(ot, &primitive_library, BRT_PRIMITIVE_LIBRARY_OL);
      |                                         ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c: In functie ‘BrGeometryFormatFind’:
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:937:39: fout: passing argument 2 of ‘((br_object *)renderer)->dispatch->_query’ from incompatible pointer type [-Wincompatible-pointer-types]
  937 |                 ObjectQuery(renderer, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                       ^~~~~~~~~~~~~~~~~~
      |                                       |
      |                                       br_renderer_facility **
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/devsetup.c:937:39: note: expected ‘br_uint_32 *’ {aka ‘unsigned int *’} but argument is of type ‘br_renderer_facility **’
  937 |                 ObjectQuery(renderer, &renderer_facility, BRT_RENDERER_FACILITY_O);
      |                                       ^~~~~~~~~~~~~~~~~~
/home/mastag/src/dethrace/lib/BRender-v1.3.2/core/fw/dev_objs.cgh:2223:92: note: in definition of macro ‘ObjectQuery’
 2223 | #define ObjectQuery(self, a1, a2) BR_CMETHOD_CALL(br_object,query,self)((br_object *)self, a1, a2)
      |                                                                                            ^~
make[2]: *** [lib/BRender-v1.3.2/core/fw/CMakeFiles/fw.dir/build.make:250: lib/BRender-v1.3.2/core/fw/CMakeFiles/fw.dir/devsetup.c.o] Fout 1
make[1]: *** [CMakeFiles/Makefile2:606: lib/BRender-v1.3.2/core/fw/CMakeFiles/fw.dir/all] Fout 2
madebr commented 2 months ago

https://github.com/dethrace-labs/BRender-v1.3.2/pull/4 addresses this.

madebr commented 1 month ago

This is fixed in our BRender fork at https://github.com/dethrace-labs/BRender-v1.3.2/commit/372f17a69e6ea2f043b24cd16bec847264d0d5cb

MastaG commented 1 month ago

Thx

madebr commented 1 month ago

This is not fixed yet in DethRace, but will be when we update the BRender submodule.