home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / help / 2570 < prev    next >
Encoding:
Text File  |  1992-11-21  |  2.0 KB  |  53 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!mcsun!sunic!dkuug!daimi!eks
  3. From: eks@daimi.aau.dk (Eigil Krogh S|rensen)
  4. Subject: ld error with index and rindex in cccp
  5. Message-ID: <1992Nov21.164609.25735@daimi.aau.dk>
  6. Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
  7. Date: Sat, 21 Nov 92 16:46:09 GMT
  8. Lines: 43
  9.  
  10. I'm trying to compile gcc-2.3.1. Here is what happens:
  11.  
  12. vki68 eks $ configure --target=3300
  13. Linked `config.h' to `./config/xm-mot3300.h'
  14. Linked `tm.h' to `./config/mot3300.h'
  15. Linked `md' to `./config/m68k.md'
  16. Linked `aux-output.c' to `./config/m68k.c'
  17. Linked `tconfig.h' to `./config/xm-mot3300.h'
  18. Linked `hconfig.h' to `./config/xm-mot3300.h'
  19. Created `Makefile'.
  20. Links are now set up for target m68k-motorola-sysv.
  21. vki68 eks $ make CC=gcc LANGUAGES=c
  22.         gcc  -DIN_GCC   -g     -I. -I. -I./config \
  23.           -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/3300/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" \
  24.           -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
  25.           -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
  26.           -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/3300/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" \
  27.           -DTOOLDIR=\"/usr/local/3300/\" \
  28.           -c `echo ./cccp.c | sed 's,^\./,,'`
  29.         gcc  -DIN_GCC   -g     -I. -I. -I./config -c ./cexp.c
  30.         gcc -c  -DIN_GCC   -g     -I. -I. -I./config version.c
  31.         gcc -c  -DIN_GCC   -g     -I. -I. -I./config obstack.c
  32.         gcc  -DIN_GCC   -g   -o cccp cccp.o cexp.o version.o obstack.o ` case "gcc" in "cc") echo  ;; esac `  
  33. undefined                       first referenced
  34.  symbol                             in file
  35. index                               cccp.o
  36. rindex                              cccp.o
  37. ld fatal: Symbol referencing errors. No output written to cccp
  38. *** Error code 1
  39.  
  40. Stop.
  41. vki68 eks $ 
  42.  
  43.  
  44. Where should index and rindex be found or why are they included in cccp.c
  45. when found nowhere ?
  46.  
  47.  
  48. Thank you in advance
  49.  
  50.  
  51. --- Eigil
  52.  
  53.