Skip to content

Compile error in Ubuntu 18.04 #15

@jesHrz

Description

@jesHrz

When I launch command

sudo make

I get some errors

$ sudo make            
make -C /lib/modules/4.18.0-24-generic/build M=/home/jeshrz/Downloads/rtlwifi-next modules
make[1]: 进入目录“/usr/src/linux-headers-4.18.0-24-generic”
  CC [M]  /home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c: In function ‘odm_initialize_timer’:
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c:192:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  init_timer(timer);
  ^~~~~~~~~~
  init_timers
/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.c:194:7: error: ‘struct timer_list’ has no member named ‘data’
  timer->data = (unsigned long)dm;
       ^~
cc1: some warnings being treated as errors
scripts/Makefile.build:323: recipe for target '/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o' failed
make[3]: *** [/home/jeshrz/Downloads/rtlwifi-next/phydm/phydm_interface.o] Error 1
scripts/Makefile.build:579: recipe for target '/home/jeshrz/Downloads/rtlwifi-next/phydm' failed
make[2]: *** [/home/jeshrz/Downloads/rtlwifi-next/phydm] Error 2
Makefile:1534: recipe for target '_module_/home/jeshrz/Downloads/rtlwifi-next' failed
make[1]: *** [_module_/home/jeshrz/Downloads/rtlwifi-next] Error 2
make[1]: 离开目录“/usr/src/linux-headers-4.18.0-24-generic”
Makefile:100: recipe for target 'all' failed
make: *** [all] 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