From - Sat Oct 21 12:23:07 2000 Path: reader4.news.rcn.net!feed1.news.rcn.net!rcn!news.maxwell.syr.edu!uninett.no!ntnu.no!not-for-mail From: Roar =?iso-8859-1?Q?Thron=E6s?= Newsgroups: comp.os.vms Subject: Re: Xemacs on OpenVMS ? Date: 21 Oct 2000 12:28:24 GMT Organization: Norwegian university of science and technology Lines: 90 Message-ID: <972127875.837562@tornado.itea.ntnu.no> References: <8spao6$t5n$1@nnrp1.deja.com> <009F1E1A.42961D59@SendSpamHere.ORG> NNTP-Posting-Host: tornado.itea.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: kopp.stud.ntnu.no 972131304 7045 129.241.190.18 (21 Oct 2000 12:28:24 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: 21 Oct 2000 12:28:24 GMT User-Agent: tin/1.4.3-20000502 ("Marian") (UNIX) (SunOS/5.5.1 (sun4c)) Cache-Post-Path: tornado.itea.ntnu.no!roart@phoenix.nvg.ntnu.no X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Xref: reader4.news.rcn.net comp.os.vms:288016 Brian Schenkenberger, VAXman- wrote: : In article , Charles Sebold writes: :>spolato@my-deja.com writes: :> :>> Does anyone know whether Xemacs has been ported on OpenVMS ? :> :>I have seen no signs of it, although there may have been patches for v19 :>to run under VMS. I suspect you'll have more luck with GNU Emacs 19, :>but I haven't found binaries for that, and I can't get it to compile :>under VMS 6.2 or later. (If anyone has working binaries, VAX or Alpha, :>for Emacs 19, I would dearly love to snag them, by the way.) : You'll also not get it to compile with DEC C V5.6 and up due to a pre- : processor bug. I've just received a Compaq C6.3 beta that supposedly : has this fixed. What other evils may be lurking are still unbeknownst : at this time but I'm certain I'll encounter more C demons. : -- : VAXman- OpenVMS APE certification number: AAA-0001 VAXman(at)TMESIS(dot)COM : : city, n., 1. a place where trees are cut down and streets are named after them. Funny. I compiled emacs-19_28-19970601 on: DEC C V5.6-003 on OpenVMS VAX V7.1 Compaq C V6.2-007 on OpenVMS Alpha V7.2-1 But I had to do som renaming in [.src]sysdep.c (bcmp to bcmp2 etc, and fork to vfork) On VAX, I had to add something in: configure.com*: +$ LDFLAGS := /nodebug $ if f$type(OPTS) .eqs. "" then OPTS = "" +$ if f$type(CPP_NOOPSPACE) .eqs. "" then CPP_NOOPSPACE = "" $ sys_includes = "" $ CFLAGS := 'CFLAGS' /NESTED=INCLUDE +$ CPP_NOOPSPACE := /STANDARD=VAXC $ else $ if f$type(CC) .nes. "" then __compiler := 'CC' -$ '__compiler' '__tmp'/preprocess='tempcname'-i 'tempcname' +$! '__compiler' '__tmp'/preprocess='tempcname'-i 'tempcname' +$ '__compiler' '__tmp' 'CPP_NOOPSPACE' /preprocess='tempcname'-i 'tempcname' $ search/nohead/output='tempcname'-stripped 'tempcname'-i "configure___" $ write config_status_file "$ CFLAGS=""''CFLAGS'""" ! Experimental +$ write config_status_file "$ CPP_NOOPSPACE=""''CPP_NOOPSPACE'""" ! Experimenta l $ write config_status_file "$ LN_S=""''LN_S'""" ! Experimental A lot of such CPP_NOOPSPACE, and maybe some manual removeal of spaces in makefiles/mmsfiles. descrip.mms*: @ lib_src_dir = f$environment("DEFAULT") + @ etc_dir := $(srcdir_dev)[$(srcdir_dir).etc] @ set default [-.etc] - @ etc_dir = f$environment("DEFAULT") + @ doc_dir = f$environment("DEFAULT") @ set default 'a' @ write foo "$ define/user EMACSDATA ""''etc_dir'""" - @ write foo "$ define/user EMACSDOC ""''etc_dir'""" + @ write foo "$ define/user EMACSDOC ""''doc_dir'""" @ write foo "$ define/user TERMCAP ""''termcap_dir'TERMCAP.DAT""" [.src]vmsgmalloc.c: return NULL; +#if 0 if (result >= vms_fake_heap_end && result < vms_real_heap_start) result = tmpadr[1][0]; +#else + result = tmpadr[1][0]; +#endif vms_brk_current = result + increment; On Alpha, I had to add something in: [.src]vmsproc.h: +#define UCX$C_DSC_ALL 2 I am not saying my changes are correct (especially with fork) but it compiles. So far, only gnus crashes emacs. (I am not sure all the changes are mine, I may have seen them here before) -- -Roar Thronęs