Use of gets() in PLK plugin
When the current master at the time of report on a machine with debian stretch, the installation fails at the "make plugins" step with the message
plk_plug.C:2522:15: error: 'gets' was not declared in this scope
The reason is that debian stretch ships with g++ version 6.3.0. This compiler ist new enough to obey the removal of gets from the 2011 language standard. The attached patch replaces the gets() calls with appropriate fgets() calls.
Comments (5)
-
-
Thanks for bringing this up. I didn't see any attachment, but I will investigate soon.
-
- changed status to open
-
I guess I not only managed to open the issue without being logged in, I also forgot the attachment. You can grab it from http://www.petschge.de/gets.patch if you want.
-
- changed status to resolved
Sorry that I forgot about this report!
Fixed as of 398e752b2ccc93a129756c4c5cdcb95dd6066b95
- Log in to comment
I have encountered this issue as well. I got around it by adding the following line to my ~/.bashrc :
export CXX="g++ -std=c++11"