|
From: | Lisa Vitolo |
Subject: | Re: [bug-myserver] Undeclared variable `gets' throws make error. |
Date: | Wed, 1 Jun 2016 13:52:38 +0100 |
Hello MyServer developers!
I know nothing about servers, but I wanted to install GNU MyServer so
that I can host a new website using your server software; however, I
encountered the following error during `make':
make[4]: Entering directory `/home/pagan/Desktop/progs/myserver-0.11/lib'
CC argp-ba.lo
CC argp-eexst.lo
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
from ./stdio.h:60,
from argp.h:22,
from argp-eexst.c:25:
./stdio.h:1012:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[4]: *** [argp-eexst.lo] Error 1
...
After reading the source code, I learned that `gets' is obsolete, and
that `fgets' is preferred. I was able to bypass the error by commenting
out lines 690-700 in file `./lib/stdio.in.h', which removes all
programmatic mentions of `gets'. Once the lines were commented out, I
ran `./configure; sudo make; sudo make install', and the compilation and
installation went just fine. I'm not sure if this is the preferred
solution, but if it is: I've attached a patch for you to see what I
changed.
Yes, now I can say that I use an official GNU package as my server
software! Thanks for all your hard work, and good documentation. If I
run into any problems during my setup, I shall report back here.
I welcome your feedback,
Michael Pagan
[Prev in Thread] | Current Thread | [Next in Thread] |