On 2013/01/30 12:54, Stuart Henderson wrote: > In gmane.os.openbsd.misc, futzen <[email protected]> wrote: > > I have managed to install OpenBSD 5.2 on my DEC VaxStation 4000 Model 90 but > > to my surprise have not found a binary for Emacs (any version) for the VAX > > architecture. As best as I can tell I do not see it in the ports collection > > either. > > > > Has anybody succeeded in installing any version of Emacs (or for that matter > > Zile) on the VAX architecture? Note that the VAX architecture distribution > > of > > OpenBSD uses a modified version of GCC 2.9.5 as it's compiler. > > > > Thanks. > > > > Sincerely, > > > > Hany. > > > > > > checking whether the C compiler (cc -O2 -pipe -fno-pie -L/usr/local/lib > -nopie) works... no > configure: error: installation or configuration problem: C compiler cannot > create executables. > > Testing the diff below. It may take some time... > Maybe we want "pie" in properties instead but given how long it takes > to even load vi on simh-vax, I am punting on that for now ;) > > If we are going to have to go down the -nopie/-fno-pie route for > generating proper statically linked binaries (which we ought to > get sorted out ASAP otherwise there will be a lot of pain in 5.3 > for people trying to e.g. send mail from PHP) then this mess will > need to also be repeated wherever we do that. > > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/editors/emacs21/Makefile,v > retrieving revision 1.61 > diff -u -p -r1.61 Makefile > --- Makefile 30 Aug 2012 20:54:59 -0000 1.61 > +++ Makefile 30 Jan 2013 12:50:15 -0000 > @@ -40,11 +40,18 @@ MODGNU_EMACS_YOURE_WEIRD = Oh yes > > CONFIGURE_STYLE= gnu dest > CONFIGURE_ARGS= ${GCCARCH} --with-pop --with-system-malloc > +LDFLAGS= ${ELF_TOOLCHAIN:L:S/yes/-Z/:S/no//} \ > + -L${LOCALBASE}/lib > + > +.include <bsd.port.arch.mk> > +.if ! ${PROPERTIES:Mgcc2} > +LDFLAGS += -nopie > +CFLAGS += -fno-pie > +.endif > + > CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \ > -I${LOCALBASE}/include/libpng" \ > - LDFLAGS="${ELF_TOOLCHAIN:L:S/yes/-Z/:S/no//} \ > - -L${LOCALBASE}/lib -nopie" > -CFLAGS += -fno-pie > + LDFLAGS="${LDFLAGS}" > > MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}" > >
Ok so this needs some more, at least for the default flavour. cc -c -I/usr/local/include -I/usr/local/include/libpng -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/usr/ports/pobj/emacs-21.4/emacs-21.4/src -I/usr/X11R6/include -O2 -pipe xterm.c xterm.c: In function `x_term_init': xterm.c:14303: dereferencing pointer to incomplete type
