all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compiling emacs 24.5
       [not found] <800413511.4243172.1461850609933.JavaMail.yahoo.ref@mail.yahoo.com>
@ 2016-04-28 13:36 ` Rich S
  2016-04-28 16:45   ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Rich S @ 2016-04-28 13:36 UTC (permalink / raw
  To: help-gnu-emacs@gnu.org

I am having trouble compiling emacs 24.5 on Redhat release 6.6
Configure appears to work fine:
./configure LIBS=-lncurses LIBS=-ltinfo --with-gif=no

When I run make, I get a compile error:

alloc.c:971:1: error: static declaration of ‘aligned_alloc’ follows non-static declaration
 aligned_alloc (size_t alignment, size_t size)
 ^
In file included from ../lib/stdlib.h:37:0,
                 from ./conf_post.h:196,
                 from ./config.h:1840,
                 from alloc.c:21:
/usr/local/include/stdlib.h:509:14: note: previous declaration of ‘aligned_alloc’ was here
 extern void *aligned_alloc (size_t __alignment, size_t __size)
              ^
Makefile:337: recipe for target 'alloc.o' failed
make[1]: *** [alloc.o] Error 1
make[1]: Leaving directory '/home/rick/software/emacs-24.5/src'
Makefile:387: recipe for target 'src' failed
make: *** [src] Error 2

gcc (GCC) 5.3.0
GNU Make 4.1


Any ideas what I can do?  I'm trying to upgrade from a very old version (23.1.1) and this machine has no internet access.
Thanks in advance.



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

* Re: Compiling emacs 24.5
  2016-04-28 13:36 ` Compiling emacs 24.5 Rich S
@ 2016-04-28 16:45   ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2016-04-28 16:45 UTC (permalink / raw
  To: Rich S; +Cc: help-gnu-emacs@gnu.org

Rich S wrote:

> I am having trouble compiling emacs 24.5 on Redhat release 6.6

FWIW, works fine for me.

> In file included from ../lib/stdlib.h:37:0,
[...]
> /usr/local/include/stdlib.h:509:14: note: previous declaration of
[...]
> gcc (GCC) 5.3.0
> GNU Make 4.1

Various red flags:

That's not the default gcc for RHEL 6.6. Try using the default one.
Why do you have stdlib.h in /usr/local?
Looks like Emacs is using its own lib/stdlib.h, which it should not need
to do.

My guess is that your system has an extra gcc/glibc installation in
/usr/local, which is causing confusion/inconsistencies. Try excluding
it (somehow).



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

end of thread, other threads:[~2016-04-28 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <800413511.4243172.1461850609933.JavaMail.yahoo.ref@mail.yahoo.com>
2016-04-28 13:36 ` Compiling emacs 24.5 Rich S
2016-04-28 16:45   ` Glenn Morris

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.