1

So, I'm really new to Linux systems and have just downloaded Ubuntu on my other desktop. The problem I'm having is getting it to recognize the USB wifi, TP-Link AC600 Archer T2UH. I went to the companies website and they have a download for driver and pdf instructions.

enter image description here

I'm able to follow the first step, the second step, I have no idea what it means so I just skipped it. And then the third step gives me a lot of errors.

Here's my command line output: http://imgur.com/bUWOkFD

0

(This answer doesn't contain a working solution, but see the end of the post for details we found out while investigating.)

The instruction mentions "Linux 2.6", which is ages old—the current version is 4.5.2. I wouldn't expect this driver to work.

The second point is: drivers that aren't part of Linux are usually of inferior quality and lack support. So again, don't expect much.

The error you're seeing is actually quite benign: "__DATE__ macro" is just a marker in the code that gets substituted with compilation date. It breaks reproducibility, i.e. two separate compilations of the same source won't necessary result in the same binary (because compilation dates might differ.) This is a problem if you care about security, but at the moment, you have bigger things to tackle as driver doesn't compile at all.


Note: gcc-4.9 enabled date-time warning by default, so any software that uses -Werror flag and contains __DATE__ and/or __TIME__ macro(s) now fails to build.

Things we tried that didn't work:

  • setting CFLAGS and CXXFLAGS to -Wno-error=date-time: commands like CFLAGS="-Wno-error=date-time" sudo -E make didn't affect the error at all;
  • running find -type f -print0 | xargs -0 sed -i 's/-Werror//g' to remove the offending flag from all Makefiles didn't affect the error either (yes, we ran make clean before rebuilding).
  • Should I type the following: CXXFLAGS="-Wno-error=date-time" sudo make and then try going through the steps again? – boy Apr 30 '16 at 17:56
  • No, this is a variation of step three. So you go into the driver's directory and you run this command; that's it. – Alexander Batischev Apr 30 '16 at 18:01
  • Didn't seem to like that either. imgur.com/xzjECAB – boy Apr 30 '16 at 18:17
  • You mistyped; it's "Wno", not "Who". (Here's how that should be read and understood: -W is for "warning"; no- is negation; error turns warnings into errors; date-time is the kind of the warning.) – Alexander Batischev Apr 30 '16 at 18:39
  • Sorry that was stupid of me. This is where I'm at now: imgur.com/RD2IxeD – boy Apr 30 '16 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.