home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17246 < prev    next >
Encoding:
Text File  |  1992-11-19  |  3.2 KB  |  94 lines

  1. Path: sparky!uunet!cs.utexas.edu!usc!usc!not-for-mail
  2. From: dkyoon@alnitak.usc.edu (Dae-Kyun Yoon)
  3. Newsgroups: comp.os.linux
  4. Subject: Help needed to compile "nemacs" (Kanji version Gnu emacs)...
  5. Date: 19 Nov 1992 19:08:21 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 83
  8. Message-ID: <1ehkr5INNch8@alnitak.usc.edu>
  9. NNTP-Posting-Host: alnitak.usc.edu
  10.  
  11.  
  12. I am now trying to compile nemacs-3.3.2 which is a version of
  13. GNU-emacs with Japanese Kanji support.  I believe the nemacs version
  14. is based on emacs-18.55.  I had many small problems while compiling
  15. and all of them could be easily fixed until now.  However I am stuck
  16. with the following compile errors for which I need some help from
  17. the experts, especially from whom have already compiled emacs under 
  18. Linux.
  19.  
  20. while compiling "nemacs-3.3.2/src/unexec.c":
  21.  
  22. ==========================
  23. cc -traditional -Demacs        -c unexec.c -o unexec.o
  24. unexec.c: In function `make_hdr':
  25. unexec.c:438: storage size of `f_thdr' isn't known
  26. unexec.c:439: storage size of `f_dhdr' isn't known
  27. unexec.c:440: storage size of `f_bhdr' isn't known
  28. unexec.c:441: storage size of `scntemp' isn't known
  29. unexec.c:491: sizeof applied to an incomplete type
  30. unexec.c:491: sizeof applied to an incomplete type
  31. unexec.c:495: sizeof applied to an incomplete type
  32. unexec.c:496: invalid use of undefined type `struct filehdr'
  33. unexec.c:498: sizeof applied to an incomplete type
  34. ......... and whole bunch of error messages omitted.......
  35. ===================================
  36.  
  37. The relevant part of the source is :
  38.  
  39. ====================================
  40. /* ****************************************************************
  41.  * make_hdr
  42.  *
  43.  * Make the header in the new a.out from the header in core.
  44.  * Modify the text and data sizes.
  45.  */
  46. static int
  47. make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name)
  48.      int new, a_out;
  49.      unsigned data_start, bss_start, entry_address;
  50.      char *a_name;
  51.      char *new_name;
  52. {
  53.   int tem;
  54. #ifdef COFF
  55.   auto struct scnhdr f_thdr;        /* Text section header */ <== 438
  56.   auto struct scnhdr f_dhdr;        /* Data section header */
  57.   auto struct scnhdr f_bhdr;        /* Bss section header */
  58.   auto struct scnhdr scntemp;        /* Temporary section header */
  59.   register int scns;
  60. #endif /* COFF */
  61.   unsigned int bss_end;
  62.  
  63. ................ and many lines omitted .............
  64.  
  65.         #ifdef COFF
  66.           /* Salvage as much info from the existing file as possible */
  67.           if (a_out >= 0)
  68.           {
  69. 491 ==>    if (read (a_out, &f_hdr, sizeof (f_hdr)) != sizeof (f_hdr))
  70.           {
  71.               PERROR (a_name);
  72.           }
  73.            block_copy_start += sizeof (f_hdr);
  74.            if (f_hdr.f_opthdr > 0)
  75.          {
  76.            if (read (a_out, &f_ohdr, sizeof (f_ohdr)) != sizeof (f_ohdr))
  77.              {
  78. ....................  lines omitted .......................
  79. =================
  80.  
  81. I know this is related to the COFF definition, so I tried without COFF
  82. but it also generated lots of error messages from different places.
  83. BTW, I am using "s-usg5-2-2.h" for my configuration file. Is this the
  84. right choice or there is any other (more close to Linux) configuration
  85. file ?
  86.  
  87. I will appreciate any comments and advice.
  88.  
  89. Thanks.
  90. DK,
  91. -- 
  92. Dae-kyun Yoon
  93. dkyoon@usc.edu, ..!uunet!usc!dkyoon
  94.