* success in building emacs-19.34 on redhat 7.3
@ 2002-06-26 15:11 Lee Campbell
[not found] ` <2f0dfa.rn.ln@salk.fqdn.th-h.de>
0 siblings, 1 reply; 2+ messages in thread
From: Lee Campbell @ 2002-06-26 15:11 UTC (permalink / raw)
I wanted to build emacs-19.34 on my redhat 7.3 system so I can have my
choice between smart data-type-aware emacs-21 and old emacs-19.34 that
loads fast and treats everything as raw ASCII.
I started with a tarball called emacs-19.34b.tar.gz which can be found
at ftp://prep.ai.mit.edu/pub/gnu/emacs/, and the default gcc-2.96-110.
I used the patches described in
http://ww.geocrawler.com/mail/msg.php3?msg_id=4539022&list=337
which allowed it to compile, but it would still core-dump when it
ran. That was fixed by adding "-z nocombreloc" to the LDFLAGS in the
makefile, as described in:
http://sources.redhat.com/ml/binutils/2001-10/msg00574.html
Now it works fine, and loads amazingly faster than emacs21!
- Lee Campbell
P.S.: To be specific, my ./configure line is:
./configure i386-redhat7-linux-gnu --with-x11 \
--prefix=/usr/built/emacs-19.34
(the --prefix puts the binaries near the src tree. I made a softlink
called /usr/local/bin/emacs19 to run it.)
Then I edited the Makefile (probably should have edited Makefile.in)
so that this original section:
${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
cd $@; $(MAKE) all $(MFLAGS) \
CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
now ends like this:
LDFLAGS='${LDFLAGS} -z nocombreloc' MAKE='${MAKE}'
Here are the patches that worked for me (I cut'n'pasted manually)
diff -c emacs-19.34/src/systty.h.orig emacs-19.34/src/systty.h
*** emacs-19.34/src/systty.h.orig Tue Jul 2 12:12:22 1996
--- emacs-19.34/src/systty.h Tue Jun 25 11:41:46 2002
***************
*** 296,302 ****
--- 296,310 ----
#ifdef __GNU_LIBRARY__
/* GNU libc by default defines getpgrp with no args on all systems. */
+ #if __GLIBC__ >= 2
+ /* glibc-2.1 adds the BSD compatibility getpgrp function
+ if you use _BSD_SOURCE, which Emacs does on GNU/Linux systems. */
+ #if __GLIBC_MINOR__ < 1 || ! defined (__FAVOR_BSD)
#define GETPGRP_NO_ARG
+ #endif
+ #else /* __GLIBC__ < 2 */
+ #define GETPGRP_NO_ARG
+ #endif /* __GLIBC__ < 2 */
#else /* not __GNU_LIBRARY__ */
#if defined (USG) && !defined (GETPGRP_NEEDS_ARG)
# if !defined (GETPGRP_NO_ARG)
diff -c emacs-19.34/src/s/gnu-linux.h.orig emacs-19.34/src/s/gnu-linux.h
*** emacs-19.34/src/s/gnu-linux.h.orig Mon Jul 15 22:17:05 1996
--- emacs-19.34/src/s/gnu-linux.h Tue Jun 25 11:43:56 2002
***************
*** 292,295 ****
actually set a process group. */
#define BSD_PGRPS
! #define setpgrp(pid,pgid) setpgid((pid),(pgid))
--- 292,296 ----
actually set a process group. */
#define BSD_PGRPS
! /* this conflicts with the same definition in unistd.h - jrd 092900 */
! /* #define setpgrp(pid,pgid) setpgid((pid),(pgid)) */
And that's all there is to it!
------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: emacs startup times
[not found] ` <v97kkko0wr.fsf@marauder.physik.uni-ulm.de>
@ 2002-06-28 2:24 ` Miles Bader
0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2002-06-28 2:24 UTC (permalink / raw)
Reiner Steib <4uce.02.r.steib@gmx.net> writes:
> Hmm, I cannot reproduce a significant difference now. Both take about
> 4 seconds to start on my P266 MMX / 64MB Notebook.
For a big difference between a _vendor_ emacs and your personally
installed version, I'd suspect the vendor's version doing something
stupid in `default.el' or `site-lisp.el'.
On a 1GHz PIII w/256MB of memory (but generally a rather crap system,
speedwise) I get the following results:
With init file Without init file (-q)
X No X (-nw) X No X (-nw)
emacs 20.7 0.68 0.27 0.40 0.05
emacs 21.3.50 0.73 0.42 0.29 0.07
[I executed the command `time emacs ...options... -f kill-emacs'
and used the `real' time, eyeball averaged over a bunch of runs.]
Note that if you have a very small .emacs file and don't use X, your
startup times should be very small indeed.... :-)
-Miles
--
o The existentialist, not having a pillow, goes everywhere with the book by
Sullivan, _I am going to spit on your graves_.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-28 2:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-26 15:11 success in building emacs-19.34 on redhat 7.3 Lee Campbell
[not found] ` <2f0dfa.rn.ln@salk.fqdn.th-h.de>
[not found] ` <v9ofdxvn94.fsf@marauder.physik.uni-ulm.de>
[not found] ` <vaeffa.tn.ln@salk.fqdn.th-h.de>
[not found] ` <v97kkko0wr.fsf@marauder.physik.uni-ulm.de>
2002-06-28 2:24 ` emacs startup times Miles Bader
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).