From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,a7b264c02b41afc0 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-03-16 22:43:08 PST Newsgroups: comp.unix.osf.misc Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!udel!news.mathworks.com!europa.chnt.gtegsc.com!wlbr!wlv.iipo.gtegsc.com!amc From: amc@wlv.iipo.gtegsc.com (Allen M. Cohen) Subject: Re: emacs dired mode broken under osf1 ver3.0 Message-ID: Sender: news@wlbr.iipo.gtegsc.com (Steven M. Schultz) Organization: GTE Date: Fri, 17 Mar 1995 05:06:46 GMT References: X-Newsreader: TIN [version 1.2 PL2] X-Nntp-Posting-Host: wlv.iipo.gtegsc.com Michael Rietz (rietz@afmp03.mppmu.mpg.de) wrote: : Hi, : I've had running emacs-19.27 and xemacs-19.11 without any problem : under ver2.x after switching to ver3.0 the dired mode is broken. A new : compilation under the system made the problem remaining :-(... : Is there anyone out there who can give help concerning this question... Someone posted a patch for XEmacs 19.11 for OSF1/3.x Here's what I've clipped out over time... > In response to several Email queries, I'm reposting Carl Roth's > original message about this problem (see below) [...] > In file included from /local/xemacs-19.11/lib-src/getopt.c:47: > /usr/local/lib/gcc-lib/alpha-dec-osf3.0/2.6.2/include/string.h:204: > conflicting types for `bzero' > /usr/local/lib/gcc-lib/alpha-dec-osf3.0/2.6.2/include/sys/select.h:163: > previous declaration of `bzero' I've combined your patch with a few other minor fixes (including bzero), and enclose it below. ================================================================================ 11-Feb-95 This patch fixes the XEmacs 19.11 source distribution kit to build/run on DEC OSF/1 V3.0. This patch is applicable ONLY to V3.0, and is specific to using gcc (I used gcc 2.6.3). For some unknown reason, when using the native C compiler or the DEC C compiler, the resulting xemacs image immediately dumps core. To install this patch, copy it to the srcdir (xemacs-19.11) directory as file xemacs-19.11-osf-3.0-patch-1 and type: % cd srcdir % patch -p0 < xemacs-19.11-osf-3.0-patch-1 You should be able to proceed with a normal installation via: % ./configure alpha-dec-osf1.3 --with-gcc --with-motif % make all % make install BACKGROUND This patch supersedes the initial one developed by Phil Evans (pre@alf1.mrc-lmb.cam.ac.uk) on 8-Feb-95 (in comp.emacs.xemacs). Basically, it takes Phil's patch, cleans up the confusion with bzero, and makes things compile for --external-widget. Phil's patch was based on another patch from Carl Roth (roth@cse.ucsc.edu) that *finally* made subprocesses work under OSF V3.0. The confusion with bzero being redefined in lib-src/getopt.c was a result of _NO_PROTO being defined after including config.h (which included sys/select.h without _NO_PROTO defined). Perhaps this was necessary pre-V3.0, but it no longer is, so I removed the _NO_PROTO definition in lib-src/getopt.c. A change in the call to XtSetKeyboardFocus in src/ExternalClient.c has been included to avoid a compilation error (hence, halting the build) if you configure with --external-widget. The compilation error indicates that XtSetKeyboardFocus requires 2 parameters. I'm not positive that supplying NULL as the 2nd required parameter is the right thing, but it does seem reasonable. I have NOT tested this fix because it only affects libextcli_Xt.a and libextcli_Xt.so.1, which I haven't actually used. There is a minor cleanup in src/Makefile.in.in,src/m/alpha.h, and src/s/decosf1-3.h that incorporates the -call_shared and -shared switches for ld (don't assume "-c" for ld). I only fixed the DEC OSF/1 relevant sections, but it should be extended to the other systems. If you have any problems with this patch contact Steve Carney carney@cern.enet.dec.com. If you have questions about the past lossage with subprocesses, try contacting Carl Roth or Phil Evans. *** src/ExternalClient.c.orig Fri Sep 02 23:40:25 1994 --- src/ExternalClient.c Fri Feb 10 19:26:03 1995 *************** *** 484,490 **** #ifdef EXTW_USES_MOTIF XmProcessTraversal(wid, XmTRAVERSE_CURRENT); #else ! XtSetKeyboardFocus(wid); #endif break; --- 484,490 ---- #ifdef EXTW_USES_MOTIF XmProcessTraversal(wid, XmTRAVERSE_CURRENT); #else ! XtSetKeyboardFocus(wid, NULL); #endif break; *** src/Makefile.in.in.orig Tue Sep 13 00:58:56 1994 --- src/Makefile.in.in Wed Feb 08 19:01:28 1995 *************** *** 113,118 **** --- 113,126 ---- #endif /* ! defined(COFF_ENCAPSULATE) || (defined (BSD) && !defined (COFF)) */ #endif /* LD_SWITCH_SYSTEM */ + #ifndef LD_SWITCH_CALL_SHARED + #define LD_SWITCH_CALL_SHARED + #endif /* define a call_shared switch */ + + #ifndef LD_SWITCH_SHARED + #define LD_SWITCH_SHARED -c + #endif /* define a shared switch */ + /* Some m/*.h files define this to request special switches in ld. */ #ifndef LD_SWITCH_MACHINE #define LD_SWITCH_MACHINE *************** *** 837,843 **** ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE \ LWLIB_DEPS prefix-args ! #define TEMACS_LINK_ARGS YMF_PASS_LDFLAGS (${STARTFLAGS} ${LDFLAGS}) -o $@ \ ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM \ OBJECTS_MACHINE ${LIBES} --- 845,852 ---- ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE \ LWLIB_DEPS prefix-args ! #define TEMACS_LINK_ARGS YMF_PASS_LDFLAGS \ ! (${STARTFLAGS} ${LDFLAGS} LD_SWITCH_CALL_SHARED) -o $@ \ ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM \ OBJECTS_MACHINE ${LIBES} *************** *** 896,902 **** # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output # endif /* not USE_GCC */ # else ! # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output # endif /* not USG5 */ libextcli_Xm.so.1: EXTERNAL_CLIENT_MOTIF_OBJS --- 905,915 ---- # define EXTW_LINK(objs, output) $(CC) -G objs -z text -o output # endif /* not USE_GCC */ # else ! # if defined (DEC_ALPHA) && defined(OSF1) ! # define EXTW_LINK(objs, output) $(LD) $(LDFLAGS) LD_SWITCH_SHARED -d objs -o output $(LIBES) ! # else ! # define EXTW_LINK(objs, output) $(LD) -dc objs -assert pure-text -o output ! # endif /* DEC_ALPHA && OSF1 */ # endif /* not USG5 */ libextcli_Xm.so.1: EXTERNAL_CLIENT_MOTIF_OBJS *** src/m/alpha.h.orig Tue Sep 06 20:23:41 1994 --- src/m/alpha.h Wed Feb 08 18:11:39 1995 *************** *** 1,6 **** --- 1,8 ---- /* The following three symbols give information on the size of various data types. */ + #define DEC_ALPHA /* Digital Alpha AXP */ + #define SHORTBITS 16 /* Number of bits in a short */ #define INTBITS 32L /* Number of bits in an int */ *** src/s/decosf1-3.h.orig Wed Apr 27 17:08:29 1994 --- src/s/decosf1-3.h Sat Feb 11 13:05:25 1995 *************** *** 7,12 **** --- 7,17 ---- #define _NO_MALLOC_WARNING_ + /* we have a working alloca */ + # ifndef NOT_C_CODE + # include + # endif + #ifdef THIS_IS_YMAKEFILE /* This to get rid of the -X that Makefile inserts * and force dynamic linking and optimization during link time. *************** *** 13,17 **** * The ifndef is needed to avoid screwups during configure */ #undef LD_SWITCH_SYSTEM ! #define LD_SWITCH_SYSTEM -call_shared ! #endif --- 18,37 ---- * The ifndef is needed to avoid screwups during configure */ #undef LD_SWITCH_SYSTEM ! #define LD_SWITCH_SYSTEM ! ! #endif /* THIS_IS_YMAKEFILE */ ! ! #undef LD_SWITCH_CALL_SHARED ! #define LD_SWITCH_CALL_SHARED -call_shared ! ! #undef LD_SWITCH_SHARED ! #define LD_SWITCH_SHARED -shared ! ! /* It seems that read() and write() are affected, but not open() and */ ! /* close() */ ! ! #define emacs_read sys_read ! #define emacs_write sys_write ! ! #define INTERRUPTIBLE_IO *** lib-src/getopt.c.orig Fri Apr 22 20:58:17 1994 --- lib-src/getopt.c Fri Feb 10 19:01:01 1995 *************** *** 35,45 **** #endif #endif - /* This tells Alpha OSF/1 not to define a getopt prototype in . */ - #ifndef _NO_PROTO - #define _NO_PROTO - #endif - #include #if __STDC__ || defined(STDC_HEADERS) --- 35,40 ---- -- Allen M. Cohen -- GTE Govt Sys 31717 LaTienda Dr Westlake Village, Ca. 91359 Voice: (818) 706-6869; FAX: (818) 706-5050 Ask me a riddle and I reply \ Cottleston, Cottleston, Cottleston Pie. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>