Skip to content

Failed installing in Fedora 42 by plenv and cpanm (perl 5.40) #3

Closed
@xuhaida76

Description

@xuhaida76

I just install this package (OpenGL-GLFW-0.0402) in Fedora by plenv and cpanm , but failed. The logs is showed as followed:

cc -c   -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.0402\" -DXS_VERSION=\"0.0402\" -fPIC "-I/home/xuhaida/.plenv/versions/5.40.0/lib/perl5/5.40.0/x86_64-linux/CORE"   GLFW.c
包含于文件 GLFW.xs:6:
ppport.h:4471:11: 警告:‘WIDEST_UTYPE’ 重定义
 4471 | #  define WIDEST_UTYPE U64TYPE
      |           ^~~~~~~~~~~~
包含于文件 /home/xuhaida/.plenv/versions/5.40.0/lib/perl5/5.40.0/x86_64-linux/CORE/perl.h:3329,
        于 GLFW.xs:3:
/home/xuhaida/.plenv/versions/5.40.0/lib/perl5/5.40.0/x86_64-linux/CORE/handy.h:1422:9: 附注:这是先前定义的位置
 1422 | #define WIDEST_UTYPE PERL_UINTMAX_T
      |         ^~~~~~~~~~~~
ppport.h:6145:11: 警告:‘MUTABLE_PTR’ 重定义
 6145 | #  define MUTABLE_PTR(p) ({ void *_p = (p); _p; })
      |           ^~~~~~~~~~~
/home/xuhaida/.plenv/versions/5.40.0/lib/perl5/5.40.0/x86_64-linux/CORE/handy.h:99:11: 附注:这是先前定义的位置
   99 | #  define MUTABLE_PTR(p) ({ void *p_ = (p); p_; })
      |           ^~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowPosCallback’中:
GLFW.xs:781:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowposfun’ {或称 ‘void (*)(GLFWwindow *, int,  int)’} [-Wincompatible-pointer-types]
  781 |      fpstatus = glfwSetWindowPosCallback(window, windowposfun_callback);
      |               ^
包含于文件 GLFW.xs:8:
/usr/include/GLFW/glfw3.h:1613:17: 附注:‘GLFWwindowposfun’ declared here
 1613 | typedef void (* GLFWwindowposfun)(GLFWwindow* window, int xpos, int ypos);
      |                 ^~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowSizeCallback’中:
GLFW.xs:809:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowsizefun’ {或称 ‘void (*)(GLFWwindow *, int,  int)’} [-Wincompatible-pointer-types]
  809 |      fpstatus = glfwSetWindowSizeCallback(window, windowsizefun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1635:17: 附注:‘GLFWwindowsizefun’ declared here
 1635 | typedef void (* GLFWwindowsizefun)(GLFWwindow* window, int width, int height);
      |                 ^~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowCloseCallback’中:
GLFW.xs:836:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowclosefun’ {或称 ‘void (*)(GLFWwindow *)’} [-Wincompatible-pointer-types]
  836 |      fpstatus = glfwSetWindowCloseCallback(window, windowclosefun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1655:17: 附注:‘GLFWwindowclosefun’ declared here
 1655 | typedef void (* GLFWwindowclosefun)(GLFWwindow* window);
      |                 ^~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowRefreshCallback’中:
GLFW.xs:863:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowrefreshfun’ {或称 ‘void (*)(GLFWwindow *)’} [-Wincompatible-pointer-types]
  863 |      fpstatus = glfwSetWindowRefreshCallback(window, windowrefreshfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1675:17: 附注:‘GLFWwindowrefreshfun’ declared here
 1675 | typedef void (* GLFWwindowrefreshfun)(GLFWwindow* window);
      |                 ^~~~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowFocusCallback’中:
GLFW.xs:890:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowfocusfun’ {或称 ‘void (*)(GLFWwindow *, int)’} [-Wincompatible-pointer-types]
  890 |      fpstatus = glfwSetWindowFocusCallback(window, windowfocusfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1696:17: 附注:‘GLFWwindowfocusfun’ declared here
 1696 | typedef void (* GLFWwindowfocusfun)(GLFWwindow* window, int focused);
      |                 ^~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetWindowIconifyCallback’中:
GLFW.xs:917:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWwindowiconifyfun’ {或称 ‘void (*)(GLFWwindow *, int)’} [-Wincompatible-pointer-types]
  917 |      fpstatus = glfwSetWindowIconifyCallback(window, windowiconifyfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1717:17: 附注:‘GLFWwindowiconifyfun’ declared here
 1717 | typedef void (* GLFWwindowiconifyfun)(GLFWwindow* window, int iconified);
      |                 ^~~~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetFramebufferSizeCallback’中:
GLFW.xs:944:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWframebuffersizefun’ {或称 ‘void (*)(GLFWwindow *, int,  int)’} [-Wincompatible-pointer-types]
  944 |      fpstatus = glfwSetFramebufferSizeCallback(window, framebuffersizefun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1759:17: 附注:‘GLFWframebuffersizefun’ declared here
 1759 | typedef void (* GLFWframebuffersizefun)(GLFWwindow* window, int width, int height);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetKeyCallback’中:
GLFW.xs:971:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWkeyfun’ {或称 ‘void (*)(GLFWwindow *, int,  int,  int,  int)’} [-Wincompatible-pointer-types]
  971 |      fpstatus = glfwSetKeyCallback(window, keyfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1897:17: 附注:‘GLFWkeyfun’ declared here
 1897 | typedef void (* GLFWkeyfun)(GLFWwindow* window, int key, int scancode, int action, int mods);
      |                 ^~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetCharCallback’中:
GLFW.xs:999:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWcharfun’ {或称 ‘void (*)(GLFWwindow *, unsigned int)’} [-Wincompatible-pointer-types]
  999 |      fpstatus = glfwSetCharCallback(window, charfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1918:17: 附注:‘GLFWcharfun’ declared here
 1918 | typedef void (* GLFWcharfun)(GLFWwindow* window, unsigned int codepoint);
      |                 ^~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetCharModsCallback’中:
GLFW.xs:1026:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWcharmodsfun’ {或称 ‘void (*)(GLFWwindow *, unsigned int,  int)’} [-Wincompatible-pointer-types]
 1026 |      fpstatus = glfwSetCharModsCallback(window, charmodsfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1945:17: 附注:‘GLFWcharmodsfun’ declared here
 1945 | typedef void (* GLFWcharmodsfun)(GLFWwindow* window, unsigned int codepoint, int mods);
      |                 ^~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetMouseButtonCallback’中:
GLFW.xs:1053:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWmousebuttonfun’ {或称 ‘void (*)(GLFWwindow *, int,  int,  int)’} [-Wincompatible-pointer-types]
 1053 |      fpstatus = glfwSetMouseButtonCallback(window, mousebuttonfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1806:17: 附注:‘GLFWmousebuttonfun’ declared here
 1806 | typedef void (* GLFWmousebuttonfun)(GLFWwindow* window, int button, int action, int mods);
      |                 ^~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetCursorPosCallback’中:
GLFW.xs:1080:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWcursorposfun’ {或称 ‘void (*)(GLFWwindow *, double,  double)’} [-Wincompatible-pointer-types]
 1080 |      fpstatus = glfwSetCursorPosCallback(window, cursorposfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1829:17: 附注:‘GLFWcursorposfun’ declared here
 1829 | typedef void (* GLFWcursorposfun)(GLFWwindow* window, double xpos, double ypos);
      |                 ^~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetCursorEnterCallback’中:
GLFW.xs:1107:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWcursorenterfun’ {或称 ‘void (*)(GLFWwindow *, int)’} [-Wincompatible-pointer-types]
 1107 |      fpstatus = glfwSetCursorEnterCallback(window, cursorenterfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1850:17: 附注:‘GLFWcursorenterfun’ declared here
 1850 | typedef void (* GLFWcursorenterfun)(GLFWwindow* window, int entered);
      |                 ^~~~~~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetScrollCallback’中:
GLFW.xs:1134:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWscrollfun’ {或称 ‘void (*)(GLFWwindow *, double,  double)’} [-Wincompatible-pointer-types]
 1134 |      fpstatus = glfwSetScrollCallback(window, scrollfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1871:17: 附注:‘GLFWscrollfun’ declared here
 1871 | typedef void (* GLFWscrollfun)(GLFWwindow* window, double xoffset, double yoffset);
      |                 ^~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetDropCallback’中:
GLFW.xs:1161:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWdropfun’ {或称 ‘void (*)(GLFWwindow *, int,  const char **)’} [-Wincompatible-pointer-types]
 1161 |      fpstatus = glfwSetDropCallback(window, dropfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1969:17: 附注:‘GLFWdropfun’ declared here
 1969 | typedef void (* GLFWdropfun)(GLFWwindow* window, int path_count, const char* paths[]);
      |                 ^~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetErrorCallback’中:
GLFW.xs:1186:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWerrorfun’ {或称 ‘void (*)(int,  const char *)’} [-Wincompatible-pointer-types]
 1186 |      fpstatus = glfwSetErrorCallback(errorfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1590:17: 附注:‘GLFWerrorfun’ declared here
 1590 | typedef void (* GLFWerrorfun)(int error_code, const char* description);
      |                 ^~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetMonitorCallback’中:
GLFW.xs:1205:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWmonitorfun’ {或称 ‘void (*)(GLFWmonitor *, int)’} [-Wincompatible-pointer-types]
 1205 |      fpstatus = glfwSetMonitorCallback(monitorfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:1990:17: 附注:‘GLFWmonitorfun’ declared here
 1990 | typedef void (* GLFWmonitorfun)(GLFWmonitor* monitor, int event);
      |                 ^~~~~~~~~~~~~~
GLFW.xs: 在函数‘XS_OpenGL__GLFW_glfwSetJoystickCallback’中:
GLFW.xs:1224:15: 错误:assignment to ‘void (*)(void)’ from incompatible pointer type ‘GLFWjoystickfun’ {或称 ‘void (*)(int,  int)’} [-Wincompatible-pointer-types]
 1224 |      fpstatus = glfwSetJoystickCallback(joystickfun_callback);
      |               ^
/usr/include/GLFW/glfw3.h:2011:17: 附注:‘GLFWjoystickfun’ declared here
 2011 | typedef void (* GLFWjoystickfun)(int jid, int event);
      |                 ^~~~~~~~~~~~~~~
make: *** [Makefile:345:GLFW.o] 错误 1
FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions