home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / g / help / 1430 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  3.1 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!constellation!iapa!ctrbdo
  2. From: ctrbdo@iapa.uucp%mailhost.ecn.uoknor.edu (bryan d oakley)
  3. Newsgroups: gnu.g++.help
  4. Subject: duh, help
  5. Message-ID: <BxMpnD.Kpw@iapa.uucp%mailhost.ecn.uoknor.edu>
  6. Date: 13 Nov 92 00:35:34 GMT
  7. Organization: FAA / Mike Monroney Aeronautical Center
  8. Lines: 55
  9.  
  10. Ok, I got gcc and g++ to compile on my machine no problemo.
  11. Configuration: sun 386i, sunos 4.0.2.  I have an (IMHO) impressive
  12. string of successes with emacs, ghostscript, and other GNU stuff.  I
  13. just tried to build libg++ and it won't build.  Similar problem with
  14. GDB.  Fresh out of the box the configure script can't seem to find my
  15. gcc, not that it really matters.  I manually edit the makefile but the
  16. darn thing still won't compile.  Any suggestions?
  17.  
  18. It appears that the auto configure script assumes everything is in the
  19. same tree (that ${rootme}/../gcc/gcc stuff looks somewhat suspect to
  20. me...).  My gcc is in /opt/bin/sun386, with libraries in /opt/lib.
  21. I'm installing from /opt/src/libg++-2.2 from which gcc is NOT
  22. subordinate.  What am I doing wrong?
  23.  
  24. For the record, here is what I get when I did the make:
  25.  
  26. <everything's ok for a while... then>
  27. ranlib libiberty.a
  28. rootme=`pwd` ; export rootme; CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ;  then echo -I${rootme}/../gcc/include ;  else echo ; fi`"; export CC; \
  29. ./utils/gen-params  >tmp-params.h
  30. In file included from dummy.c:4:
  31. /usr/include/stdio.h:25: warning: `NULL' redefined
  32. /opt/lib/gcc-lib/sun386/2.2.2/include/stddef.h:137: warning: this is the location of the previous definition
  33. mv tmp-params.h _G_config.h
  34. gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include  -c AllocRing.cc
  35. In file included from ./std.h:26, from AllocRing.cc:22:
  36. ./../g++-include/string.h:28: declaration of `int  strlen (const char *)'
  37. <built-in>:0: conflicts with built-in declaration `long unsigned int  strlen (const char *)'
  38. *** Error code 1
  39. make: Fatal error: Command failed for target `AllocRing.o'
  40. Current working directory /opt/src/libg++-2.2/libg++/src
  41. *** Error code 1
  42. make: Fatal error: Command failed for target `in-src'
  43. Current working directory /opt/src/libg++-2.2/libg++
  44. *** Error code 1
  45. make: Fatal error: Command failed for target `all-libg++'
  46.  
  47.  
  48. Am I wrong in the assumption that if gcc and g++ compiled ok that it
  49. should compile libg++ properly, or do I need to do something here?
  50. For a long time I was really impressed by how 'easy' it was to port
  51. the GNU software, until I got gdb and libg++ (the only two things I've
  52. tried to compile with the automatic configure script).
  53.  
  54. Oh, when I did the configure I just entered './config sun386
  55. -path=/opt'.  I tried the -lang=gcc but got an illegal option error.
  56. *SIGH*  I would appreciate any help anyone can give.  I'm havin' too
  57. much fun to quit now...:-)
  58.  
  59. Thanks.
  60. -- 
  61. ----------------------------------------------------------------------
  62. Instrument Approach Procedures Automation              DOT/FAA/AMI-230
  63. ----------------------------------------------------------------------
  64. Bryan D. Oakley                    ctrbdo%iapa@mailhost.ecn.uoknor.edu
  65.