home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!usc!not-for-mail
- From: dkyoon@alnitak.usc.edu (Dae-Kyun Yoon)
- Newsgroups: comp.os.linux
- Subject: Help needed to compile "nemacs" (Kanji version Gnu emacs)...
- Date: 19 Nov 1992 19:08:21 -0800
- Organization: University of Southern California, Los Angeles, CA
- Lines: 83
- Message-ID: <1ehkr5INNch8@alnitak.usc.edu>
- NNTP-Posting-Host: alnitak.usc.edu
-
-
- I am now trying to compile nemacs-3.3.2 which is a version of
- GNU-emacs with Japanese Kanji support. I believe the nemacs version
- is based on emacs-18.55. I had many small problems while compiling
- and all of them could be easily fixed until now. However I am stuck
- with the following compile errors for which I need some help from
- the experts, especially from whom have already compiled emacs under
- Linux.
-
- while compiling "nemacs-3.3.2/src/unexec.c":
-
- ==========================
- cc -traditional -Demacs -c unexec.c -o unexec.o
- unexec.c: In function `make_hdr':
- unexec.c:438: storage size of `f_thdr' isn't known
- unexec.c:439: storage size of `f_dhdr' isn't known
- unexec.c:440: storage size of `f_bhdr' isn't known
- unexec.c:441: storage size of `scntemp' isn't known
- unexec.c:491: sizeof applied to an incomplete type
- unexec.c:491: sizeof applied to an incomplete type
- unexec.c:495: sizeof applied to an incomplete type
- unexec.c:496: invalid use of undefined type `struct filehdr'
- unexec.c:498: sizeof applied to an incomplete type
- ......... and whole bunch of error messages omitted.......
- ===================================
-
- The relevant part of the source is :
-
- ====================================
- /* ****************************************************************
- * make_hdr
- *
- * Make the header in the new a.out from the header in core.
- * Modify the text and data sizes.
- */
- static int
- make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name)
- int new, a_out;
- unsigned data_start, bss_start, entry_address;
- char *a_name;
- char *new_name;
- {
- int tem;
- #ifdef COFF
- auto struct scnhdr f_thdr; /* Text section header */ <== 438
- auto struct scnhdr f_dhdr; /* Data section header */
- auto struct scnhdr f_bhdr; /* Bss section header */
- auto struct scnhdr scntemp; /* Temporary section header */
- register int scns;
- #endif /* COFF */
- unsigned int bss_end;
-
- ................ and many lines omitted .............
-
- #ifdef COFF
- /* Salvage as much info from the existing file as possible */
- if (a_out >= 0)
- {
- 491 ==> if (read (a_out, &f_hdr, sizeof (f_hdr)) != sizeof (f_hdr))
- {
- PERROR (a_name);
- }
- block_copy_start += sizeof (f_hdr);
- if (f_hdr.f_opthdr > 0)
- {
- if (read (a_out, &f_ohdr, sizeof (f_ohdr)) != sizeof (f_ohdr))
- {
- .................... lines omitted .......................
- =================
-
- I know this is related to the COFF definition, so I tried without COFF
- but it also generated lots of error messages from different places.
- BTW, I am using "s-usg5-2-2.h" for my configuration file. Is this the
- right choice or there is any other (more close to Linux) configuration
- file ?
-
- I will appreciate any comments and advice.
-
- Thanks.
- DK,
- --
- Dae-kyun Yoon
- dkyoon@usc.edu, ..!uunet!usc!dkyoon
-