agerwick / RT28XX-RT539X-Linux-driver

2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO updated to work with Linux kernel 3.8 and above. Tested with Ubuntu 14.04 and 16.04
GNU General Public License v2.0
23 stars 9 forks source link

Error building the drivers Ubuntu 16.04 #6

Closed cyates559 closed 7 years ago

cyates559 commented 8 years ago

Not exactly sure what all this means but I can't build the driver. Help would be much appriciated.

/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
                                                                                     ^
/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.c:5041:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
                                                                                               ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/carsen/RT28XX-RT539X-Linux-driver/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1396: recipe for target '_module_/home/carsen/RT28XX-RT539X-Linux-driver/os/linux' failed
make[1]: *** [_module_/home/carsen/RT28XX-RT539X-Linux-driver/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:372: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
cyates559 commented 8 years ago

Got it working, I think I just patched it wrong. But I am getting the same depmod error as the other guy.

vikcon commented 7 years ago

Can you share the workaround? I am getting same error Ubuntu 16.04 LTS

cyates559 commented 7 years ago

I don't even remember what I did with this card honestly, I think I gave it to a friend who has Windows. Sorry bud.

azzuron commented 7 years ago

Same issue here. Not been able to pinpoint a fix.

agerwick commented 7 years ago

The fix is to remove the offending code, which is not an important part of the driver. It just adds the date and time after the version number. On line 5041 in sta/sta_cfg.c replace this line: snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, DATE, TIME ); with this: snprintf(extra, size, "Driver version-%s\n", STA_DRIVER_VERSION);

I will upload a fix shortly but I am unable to test it due to not having this card any more.

agerwick commented 7 years ago

Fix committed