home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22207 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.9 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!drycas.club.cc.cmu.edu!ghod
  2. From: ghod@drycas.club.cc.cmu.edu
  3. Newsgroups: comp.os.linux
  4. Subject: Re: compiling kernel...found problem??
  5. Message-ID: <1992Dec30.183138.2813@drycas.club.cc.cmu.edu>
  6. Date: 30 Dec 92 13:31:38 GMT
  7. Article-I.D.: drycas.1992Dec30.183138.2813
  8. References: <marcf.725751581@yorku.ca>
  9. Organization: Carnegie Mellon Computer Club
  10. Lines: 55
  11.  
  12. In article <marcf.725751581@yorku.ca>, marcf@nexus.yorku.ca (Marc G Fournier) writes:
  13. > Hi...
  14. >     I'm still playing around trying to find the source of
  15. > the problem with compiling the kernel.  I'm doing everything as
  16. > per instructions.
  17. >     make config
  18. >     make dep <--- source of first problem
  19. >     The problem is, or error is:
  20. > inode.c:22: #error The iso9660 filesystem can only be used with CDROM.
  21. > make[2]: *** [dep] Error 1
  22. > make[1]: *** [dep] Error 1
  23. > make: *** [dep] Error 1
  24. >     Now, in the make config stage, I say no to the iso9660 filesystem
  25. > as well as SCSI support...why is it trying to use the iso9660 filesystem
  26. > anyway?  How can I fix this?
  27. > Thanks...
  28. > Marc
  29.  
  30. I and a friend spent sime time mulling over this the other day and we think
  31. we've narrowed the problem down to /usr/src/linux/fs/Makefile. If you look
  32. in this particular Makefile, you'll find two targets defined: dep and clean
  33. (I think... I cleared the sources off my disk to make room after I compiled
  34. my kernel). They each have a line in them that looks like:
  35.  
  36. for i in ($SUBDIRS) do ....(rest of make procedure)
  37.  
  38. We think this should be ($FS_SUBDIRS), not ($SUBDIRS). From what we can
  39. tell, the 'fs' Makefile adds directories to $FS_SUBDIRS based on your
  40. 'make config' selections. If you choose minix, is adds minix. If you choose
  41. isofs, it adds isofs, and so forth. (So it seems, at least). By the time the
  42. targets are reached, $FS_SUBDIRS will contain only the directories needed by
  43. the selected filesystems and nothing else. Then the targets
  44. go and use $SUBDIRS instead, which contains *all* the filesystem
  45. subdirectories, which defeats the whole purposei if the script.
  46.  
  47. I successfully compiled my kernel without the scsi stuff by making $SUBDIR
  48. into $FS_SUBDIRS in the lines for the dep and clean targets in
  49. /usr/src/linux/fs/Makefile. Since these makefiles come with the kernel sources
  50. distributed by Linus himself, I suppose he has the final say as to whether
  51. this is the correct solution or not. If you have the latest sources (99 pl1),
  52. you may also find a typo in /usr/src/linux/config.in. The constant defined
  53. in the line for the new auto-irq mode in the serial driver should be
  54. NEW_AUTO_IRQ, not NEW_AUTOIRQ. This little buglet won't prevent the kernel
  55. from compiling, but unles you fix it, you won't be able to enable the auto-irq
  56. mode even if you answered 'y' while doing make config. :) Caveat utilitor.
  57.  
  58. -Bill
  59. ghod@drycas.club.cc.cmu.edu   or   ghod@drycas.bitnet 
  60.