home *** CD-ROM | disk | FTP | other *** search
- In article <9306241745.AA07003@jekyll.al.alcoa.com>
- mlh@ncf.al.alcoa.com (Mike Harper) writes:
-
- > Do you know of anyone who has already done the dirty work of
- > building the necessary files for the HP700?
-
- I built Lucid Emacs 19.6 on a HP9000/755 with HP-UX 9.01 using HP's
- unbundled C compiler.
-
- There was no need to change the s- and m- (!) header files at all. I
- did change config.h in some points:
- - commented out the USE_GCC #define
- - included s/s-hpux8.h and m/m-hp9000s800.h
- - #define'd SYSTEM_MALLOC (no GNU malloc available)
- - added our weird locations for X and Xpm libraries to the linker
- path via LD_SWITCH_SITE
- - same for the includes in C_SWITCH_SITE
-
- The compiler then did not accept the cast of an argument to pstat() in
- fns.c (although I don't understand *why* not), so I changed it:
-
- *** fns.c Tue Mar 30 16:15:10 1993
- --- /usr/local/tmp/lemacs-19.6/src/fns.c Mon Jun 21 12:08:29 1993
- ***************
- *** 1555,1568 ****
- }
- }
- #else /* not VMS */
-
- #ifdef HAVE_HPUX_PSTAT
- ! pstat(PSTAT_DYNAMIC,(union pstun)&pst_dyn,sizeof(pst_dyn),0,0);
- load_ave[0] = pst_dyn.psd_avg_1_min;
- load_ave[1] = pst_dyn.psd_avg_5_min;
- load_ave[2] = pst_dyn.psd_avg_15_min;
- #else /* HAVE_HPUX_PSTAT */
- /*
- * 4.2BSD UNIX-specific code -- read _avenrun from /dev/kmem
- */
-
- --- 1555,1574 ----
- }
- }
- #else /* not VMS */
-
- #ifdef HAVE_HPUX_PSTAT
- ! {
- ! union pstun pstun ;
- !
- ! pstun.pst_dynamic = &pst_dyn ;
- !
- ! pstat(PSTAT_DYNAMIC,pstun,sizeof(pst_dyn),0,0);
- load_ave[0] = pst_dyn.psd_avg_1_min;
- load_ave[1] = pst_dyn.psd_avg_5_min;
- load_ave[2] = pst_dyn.psd_avg_15_min;
- + }
- #else /* HAVE_HPUX_PSTAT */
- /*
- * 4.2BSD UNIX-specific code -- read _avenrun from /dev/kmem
- */
-
-
- The next problem was the linking stage, where the xmakefile wants to
- link temacs with cc. This results in several symbols being multiply
- defined, since cc links crt0.o in the first place, but crt0.o also
- appears in the argument list. So I patched xmakefile to use LD=ld and
- to set up the LDFLAGS appropriately for the ld command:
- "LDFLAGS= -a archive -L/usr/lib/..." [etc.]
-
- Another problem were xpm.h and libXpm.h, which don't seem to be
- installed by default with HP-UX 9.0. (The same seems to be true for
- SunOS 4.1.2, btw.) At last I found these files in our local Tcl/Tk
- installation.
-
- There may have been more difficulties, but this is what I remember.
- Things may different when compiling with gcc, I didn't try that.
-
- Lemacs seems to run fine, except that it sometimes hangs for a while
- and then dumps core due to a segmentation violation. Fortunately this
- is rare enough not to annoy me too much.
-
- This is the backtrace from xdb:
-
- 0 fatal_error_signal + 0x000000a4 (0, 0, 0x10d8f7, 0)
- 1 _sigreturn (0, 0, 0, 0)
- 2 pixel_to_glyph_translation + 0x00000134 (0, 0, 0, 0)
- 3 event_pixel_translation + 0x00000110 (0x4001160d, 0x40076c00, 0x1, 0x40133374)
- 4 Fevent_window + 0x0000002c (0x7b033ab0, 0x37418, 0x40076c00, 0x400b8ba0)
- 5 Fkey_binding + 0x00000070 (0x7b033ab8, 0x401ac730, 0x402e3010, 0x1)
- 6 command_builder_find_leaf + 0x00000128 (0x402ea158, 0, 0x682e3010, 0)
- 7 compose_command + 0x00000054 (0x402e3010, 0x407e72c, 0x40075c00, 0x40079c00)
- 8 dispatch_event_internal + 0x0000006c (0xc08149c, 0x407e754, 0x1, 0x40079c00)
- 9 Fdispatch_event + 0x00000054 (0, 0x7b033990, 0, 0x10)
- 10 command_loop_1 + 0x0000017c (0x7b033830, 0x7b033848, 0x116800, 0x4008b948)
- 11 condition_case_1 + 0x000000dc (0, 0, 0x40011670, 0x40079c00)
- 12 command_loop_2 + 0x0000004c (0x7b033640, 0x7fffffff, 0x27, 0x134)
- 13 internal_catch + 0x00000094 (0, 0xa100000, 0x40080340, 0x40080330)
- 14 command_loop + 0x00000084 (0x4001160d, 0xa100000, 0x40011670, 0x40079c00)
- 15 recursive_edit_1 + 0x00000050 (0x4001160d, 0xa100000, 0x40011670, 0x40079c00)
- 16 Frecursive_edit + 0x000000ac (0, 0, 0, 0)
- 17 main + 0x000005a0 (0, 0, 0, 0)
-
- I haven't explored xdb enough yet to get more out of it, and gdb (4.6)
- won't even accept the file as an executable. Sigh.
-
- --
- Juergen Nickelsen
-
-