Page MenuHomePhabricator

EAPI incorrectly defined on Windows for loaders
Closed, ResolvedPublic

Description

[1/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_avif_evas_image_save_avif.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/avif/evas_image_save_avif.c:10:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[2/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_wbmp_evas_image_load_wbmp.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/wbmp/evas_image_load_wbmp.c:8:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[3/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_tiff_evas_image_load_tiff.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c:11:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[4/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_tiff_evas_image_save_tiff.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c:2:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[5/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_webp_evas_image_load_webp.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/webp/evas_image_load_webp.c:11:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[6/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_tgv_evas_image_save_tgv.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/tgv/evas_image_save_tgv.c:2:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[7/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_xpm_evas_image_load_xpm.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/xpm/evas_image_load_xpm.c:6:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[8/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_gif_evas_image_load_gif.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/gif/evas_image_load_gif.c:2:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[9/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_jp2k_evas_image_load_jp2k.c.obj
[10/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_avif_evas_image_load_avif.c.obj
[11/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_webp_evas_image_save_webp.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/webp/evas_image_save_webp.c:9:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[12/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_tga_evas_image_load_tga.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/tga/evas_image_load_tga.c:10:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[13/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_pmaps_evas_image_load_pmaps.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/pmaps/evas_image_load_pmaps.c:6:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[14/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_ico_evas_image_load_ico.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/ico/evas_image_load_ico.c:8:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[15/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_tgv_evas_image_load_tgv.c.obj
[16/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_jpeg_evas_image_load_jpeg.c.obj
[17/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_bmp_evas_image_load_bmp.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c:10:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[18/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_psd_evas_image_load_psd.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/psd/evas_image_load_psd.c:23:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
[19/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_eet_evas_image_load_eet.c.obj
[20/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_eet_evas_image_save_eet.c.obj
[21/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_savers_jpeg_evas_image_save_jpeg.c.obj
In file included from C:/Documents/msys2/opt/ewpi_64/include/jpeglib.h:29,
                 from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c:5:
C:/Documents/msys2/opt/ewpi_64/include/jconfig.h:13: warning: "HAVE_STDLIB_H" redefined
   13 | #define HAVE_STDLIB_H
      |
In file included from ../src/lib/evas/include/evas_common_private.h:5,
                 from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_savers/jpeg/evas_image_save_jpeg.c:1:
./config.h:218: note: this is the location of the previous definition
  218 | #define HAVE_STDLIB_H 1
      |
[22/155] Compiling C object C:_Documents_msys2_home_vincent.torri_gitroot_64_efl_src_modules_evas_image_loaders_generic_evas_image_load_generic.c.obj
In file included from C:/Documents/msys2/home/vincent.torri/gitroot_64/efl/src/modules/evas/image_loaders/generic/evas_image_load_generic.c:6:
../src/lib/evas/include/evas_private.h:1385:11: warning: 'evas_map_coords_get' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 1385 | Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
      |           ^~~~~~~~~~~~~~~~~~~
vtorri created this task.Mon, Dec 28, 7:05 AM

I have a patch for this. I'll create a diff

Can you test this patch?

diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h
index 87cbfdbc50..dde7d7f52a 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -1380,7 +1380,7 @@ void evas_render_object_recalc(Evas_Object_Protected_Data *obj);
 void evas_render_proxy_subrender(Evas *eo_e, void *output, Evas_Object *eo_source, Evas_Object *eo_proxy, Evas_Object_Protected_Data *proxy_obj, Eina_Bool source_clip, Eina_Bool do_async);
 
 Eina_Bool evas_map_inside_get(const Evas_Map *m, Evas_Coord x, Evas_Coord y);
-Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
+EVAS_API Eina_Bool evas_map_coords_get(const Evas_Map *m, double x, double y, double *mx, double *my, int grab);
 Eina_Bool evas_object_map_update(Evas_Object *obj, int x, int y, int imagew, int imageh, int uvw, int uvh);
 void evas_map_object_move_diff_set(Evas_Map *m, Evas_Coord diff_x, Evas_Coord diff_y);

it's good for me