Skip to content

Failed to build on Rocky linux #61

@benyaminpy

Description

@benyaminpy

Failed to build on Rocky linux 9.1
the following output is returned after execution of the make all command.

make[1]: Entering directory '/usr/src/kernels/5.14.0-162.18.1.el9_1.x86_64'
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_cmd.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_security.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_debug.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_io.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_ioctl_query.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_ioctl_set.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_ieee80211.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_mlme.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_mlme_ext.o
/home/benyamin/Downloads/rtl8188eus/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/benyamin/Downloads/rtl8188eus/core/rtw_mlme_ext.c:1441:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1441 |                 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |                    ^
/home/benyamin/Downloads/rtl8188eus/core/rtw_mlme_ext.c:1446:9: note: here
 1446 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_mi.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_wlan_util.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_vht.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_pwrctrl.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_rf.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_recv.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_sta_mgt.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_ap.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_xmit.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_p2p.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_tdls.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_br_ext.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_iol.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_sreset.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_btcoex_wifionly.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_btcoex.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_beamforming.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/rtw_odm.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/core/efuse/rtw_efuse.o
  CC [M]  /home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.o
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2047:25: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
 2047 |                 oldfs = get_fs();
      |                         ^~~~~~
      |                         get_sa
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2047:25: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2048:17: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
 2048 |                 set_fs(KERNEL_DS);
      |                 ^~~~~~
      |                 sget_fc
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2048:24: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2048 |                 set_fs(KERNEL_DS);
      |                        ^~~~~~~~~
      |                        KERNFS_NS
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2048:24: note: each undeclared identifier is reported only once for each function it appears in
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2085:33: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2085 |                         oldfs = get_fs();
      |                                 ^~~~~~
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2086:32: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2086 |                         set_fs(KERNEL_DS);
      |                                ^~~~~~~~~
      |                                KERNFS_NS
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2120:33: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
 2120 |                         oldfs = get_fs();
      |                                 ^~~~~~
/home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.c:2121:32: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
 2121 |                         set_fs(KERNEL_DS);
      |                                ^~~~~~~~~
      |                                KERNFS_NS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:295: /home/benyamin/Downloads/rtl8188eus/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1915: /home/benyamin/Downloads/rtl8188eus] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-162.18.1.el9_1.x86_64'
make: *** [Makefile:1911: modules] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions