home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / help / 2832 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.0 KB  |  55 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!onripx.neuro.emory.edu!sb
  3. From: sb@onripx.neuro.emory.edu (Steve Berger)
  4. Subject: Re: How do I compile C++ on a Sun?
  5. Message-ID: <9212292109.AA01709@onripx.neuro.emory.edu.noname>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: <1992Dec29.191058.28719@cc.umontreal.ca>
  9. Distribution: gnu
  10. Date: Tue, 29 Dec 1992 11:09:25 GMT
  11. Lines: 42
  12.  
  13. > Hi there,
  14. > I was wondering, how can one compile C++ source code on a Sun when none of the
  15. > include files contains the parameters in their function prototypes?  I thought
  16. > fixincludes was supposed to take care of that but it didn't.  Worse than that,
  17. > There a few function declarations that are missing in the Suns (printf comes
  18. > to mind) which aren't automatically generated by fixincludes.  So, can anyone
  19. > fill me in on this one?  I'm trying to use gcc as an ANSI-compliant compiler
  20. > on a non-ANSI machine and it's really something of a mild headache..
  21. > Thank you for any and all information.
  22. > -- 
  23. > Laurent Duperval          | The opinions expressed herein are my own and
  24. >                           | do not represent those of this establishment
  25. > duperval@ere.umontreal.ca | That's because they don't have enough $$$
  26. > duperval@jsp.umontreal.ca | to afford them.  Noone does.
  27.  
  28.   Hi,
  29.  
  30.     I've noticed that fixincludes sets the permissions on the include directory
  31.   to the wrong permissions for general read/execute access by all users.  If
  32.   you installed gcc while root and then try and use it as a non priveleged
  33.   user, you will not have read permission for the files that gcc has "fixed".
  34.  
  35.     The solution is to change the permissions on the files in the directory
  36.   /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include. For example,
  37.  
  38.   chmod -R 755  /usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.3.3/include
  39.  
  40.  
  41.   This will recursively set permissions on all the fixed files so that 
  42.   everyone can read them.
  43.  
  44.  
  45.   
  46.   Hope this helps,
  47.  
  48.  
  49.   Steve Berger (sb@onripx.neuro.emory.edu)
  50.  
  51.