* How I build emacs-cvs on OpenBSD
@ 2003-07-07 10:32 Han Boetes
2003-07-07 19:36 ` Jason Rumney
0 siblings, 1 reply; 2+ messages in thread
From: Han Boetes @ 2003-07-07 10:32 UTC (permalink / raw
Hi,
I recently became Maintainer for the OpenBSD port for emacs. I also
like testing emacs from cvs as lot. I made a little script for this. I
will add some comments to it and I hope you can add the missing bits to
emacs to make things easier for other people.
Here it is:
opties='--with-gtk'
export LOCALBASE='/usr/local'
export CFLAGS='-pipe -O2 -g'
export CC=egcc
# only libpng is strictly necesarry. All OpenBSD ports are installed in
# /usr/local so lots of libraries can be found there.
export CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng"
# -Z is necessary because OpenBSD current on i386 has recently moved to
# elf.
# All OpenBSD platforms now use elf accept for vax and m68k
# A not so nice comment from one of the developers in the ports-cvs-tree
#
# Work around the fact that emacs undump knows too much about the layout
# of elf files (or thinks it does). These assumptions were just broken
# by binutils/ld changes to put GOT and PLT into their own PT_LOAD
# sections. Thus BSS is no longer part of the DATA PT_LOAD section. This
# is a workaround using the '-Z' compatibility flag which disables the
# GOT/PLT padding.
export LDFLAGS="-Z -L${LOCALBASE}/lib"
#if cvsup; then
if [ "$1" = bootstrap ] ;then
./configure $opties && \
make bootstrap && \
sudo make install
else
./configure $opties && \
make && \
cd lisp && \
make recompile EMACS=../src/emacs && \
cd .. && \
sudo make install
fi
#fi
And I also have this patch:
Index: openbsd.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/s/openbsd.h,v
retrieving revision 1.2
diff -u -r1.2 openbsd.h
--- openbsd.h 22 Mar 2000 12:08:40 -0000 1.2
+++ openbsd.h 7 Jul 2003 10:20:14 -0000
@@ -9,3 +9,7 @@
/* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
is necessary. Otherwise Emacs dumps core when run -nw. */
#undef LIBS_TERMCAP
+
+/* Got this from the FreeBSD ports-list
+
+#define LIBS_TERMCAP -lncurses */
Now as you may notice, this patch does nothing at the moment. With the
emacs-21.3 port enabling the #define solves all problems with running
emacs -nw in a plain console, no problems in screen. but with current
cvs it breaks X and emacs -nw in screen again so I accept the breakage
in the normal console. It's a rather erratic bug :)
# Han
--
homepage : http://www.xs4all.nl/~hanb
pgpkey : http://www.xs4all.nl/~hanb/keys/Han_pubkey.gpg )
email : h a n @ m i j n c o m p u t e r . n l (
irc : irc.freenode.net#UnixNL c[ ]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How I build emacs-cvs on OpenBSD
2003-07-07 10:32 How I build emacs-cvs on OpenBSD Han Boetes
@ 2003-07-07 19:36 ` Jason Rumney
0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2003-07-07 19:36 UTC (permalink / raw
Cc: emacs-devel
Han Boetes <han@mijncomputer.nl> writes:
> # A not so nice comment from one of the developers in the ports-cvs-tree
> #
> # Work around the fact that emacs undump knows too much about the layout
> # of elf files (or thinks it does). These assumptions were just broken
> # by binutils/ld changes to put GOT and PLT into their own PT_LOAD
> # sections. Thus BSS is no longer part of the DATA PT_LOAD section. This
> # is a workaround using the '-Z' compatibility flag which disables the
> # GOT/PLT padding.
>
> export LDFLAGS="-Z -L${LOCALBASE}/lib"
Could this be the cause of the bug-reports of late saying that Emacs
crashes during bootstrapping when compiled with recent versions of
gcc on various platforms? (I presume people might update binutils at
the same time as they update compiler).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-07 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-07 10:32 How I build emacs-cvs on OpenBSD Han Boetes
2003-07-07 19:36 ` Jason Rumney
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).