home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10213 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.0 KB

  1. Xref: sparky comp.sys.hp:10213 gnu.emacs.help:4056
  2. Path: sparky!uunet!sun-barr!olivea!sgigate!odin!fido!shankar
  3. From: shankar@wpd.sgi.com (Shankar Unni)
  4. Newsgroups: comp.sys.hp,gnu.emacs.help
  5. Subject: Re: unexec anomally when compiling GNU
  6. Message-ID: <pl9efrc@fido.asd.sgi.com>
  7. Date: 9 Sep 92 23:13:35 GMT
  8. References: <2799@nlsun1.oracle.nl>
  9. Sender: news@fido.asd.sgi.com (Usenet News Admin)
  10. Organization: Silicon Graphics, Inc.
  11. Lines: 14
  12. X-Newsreader: Tin 1.1 PL5
  13.  
  14. The Wizard of Ozje - Garf (rlyle@nl.oracle.com) wrote:
  15.  
  16. >     2)  In src/unexhp9k800.c it gives me:
  17. > cc: "unexhp9k800.c", line 88: error 1539: Cannot do arithmetic with
  18. > pointers to objects of unknown size.
  19. > Now, I can make it compile via judicious (unsigned int) casting, but the
  20. > executable core dumps with the slightest hint of you asking it to run.
  21.  
  22. No wonder. What was happening was probably arithmetic with (void *).
  23. You want to convert to (char *), *NOT* (int *).
  24. --
  25. Shankar Unni                E-Mail:    shankar@sgi.com
  26. Silicon Graphics Inc.            Phone:    +1-415-390-2072
  27.