all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs 24.1 won't compile
@ 2015-10-02  8:39 Marcin Borkowski
  2015-10-02 20:32 ` Paul Eggert
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Borkowski @ 2015-10-02  8:39 UTC (permalink / raw)
  To: Emacs developers

Hi all,

I tried to compile Emacs 24.1.  I cloned the Git repository, checked out
the emacs-24.1 branch, did ./autogen.sh and ./configure (both
succeeded), but make threw an error.  Here's the output (not from the
first time I ran it):

--8<---------------cut here---------------start------------->8---
[ -r "/home/[redacted]/emacs/src/config.in" ] || ( cd /home/[redacted]/emacs && autoheader )
cd lib; /usr/bin/make all                            \
  CC='gcc -std=gnu99' CFLAGS='-g -O2' CPPFLAGS='' \
  LDFLAGS='-Wl,-znocombreloc ' MAKE='/usr/bin/make'
make[1]: Entering directory '/home/[redacted]/emacs/lib'
/usr/bin/make  all-am
make[2]: Entering directory '/home/[redacted]/emacs/lib'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../src -I/home/[redacted]/emacs/src     -g -O2 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
In file included from ../src/config.h:1427:0,
                 from md5.c:23:
./stdio.h:1030:1: error: ‘gets’ undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
Makefile:1007: recipe for target 'md5.o' failed
make[2]: *** [md5.o] Error 1
make[2]: Leaving directory '/home/[redacted]/emacs/lib'
Makefile:927: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/[redacted]/emacs/lib'
Makefile:368: recipe for target 'lib' failed
make: *** [lib] Error 2
--8<---------------cut here---------------end--------------->8---

What do I do?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs 24.1 won't compile
  2015-10-02  8:39 Emacs 24.1 won't compile Marcin Borkowski
@ 2015-10-02 20:32 ` Paul Eggert
  2015-10-02 21:54   ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2015-10-02 20:32 UTC (permalink / raw)
  To: Marcin Borkowski, Emacs developers

On 10/02/2015 01:39 AM, Marcin Borkowski wrote:
> I tried to compile Emacs 24.1....
> ./stdio.h:1030:1: error: ‘gets’ undeclared here (not in a function)
>   _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
>   ^
> ...
> What do I do?

I suggest commenting that line out in lib/stdio.h.

Just FYI Emacs 24.1 isn't being maintained any more, not on this list 
anyway.  And the emacs-24 branch of the Git repository is pretty much 
dead too.  Development has moved on.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs 24.1 won't compile
  2015-10-02 20:32 ` Paul Eggert
@ 2015-10-02 21:54   ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2015-10-02 21:54 UTC (permalink / raw)
  To: Emacs developers


On 2015-10-02, at 22:32, Paul Eggert <eggert@cs.ucla.edu> wrote:

> On 10/02/2015 01:39 AM, Marcin Borkowski wrote:
>> I tried to compile Emacs 24.1....
>> ./stdio.h:1030:1: error: ‘gets’ undeclared here (not in a function)
>>   _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
>>   ^
>> ...
>> What do I do?
>
> I suggest commenting that line out in lib/stdio.h.

Thanks!

> Just FYI Emacs 24.1 isn't being maintained any more, not on this list 
> anyway.  And the emacs-24 branch of the Git repository is pretty much 
> dead too.  Development has moved on.

That's obvious, I understand.

The reason I want Emacs 24.1 (or Emacs 24.whatever) is that a user of my
package complained about not having alist-get (and earlier about
time-add not supporting Unix times as inputs, which seems to work on
Emacs 25 - albeit not documented), and I want to be able to support that
version, too.  And it's more convenient if I can test locally and not
ask him every time I fix a small problem.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-02 21:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02  8:39 Emacs 24.1 won't compile Marcin Borkowski
2015-10-02 20:32 ` Paul Eggert
2015-10-02 21:54   ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.