🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #678

ld error with index and rindex in cccp

#678
From: Eigil Krogh S|rensen
Date: Sat, 21 Nov 1992 16:46
42 lines
2068 bytes
I'm trying to compile gcc-2.3.1. Here is what happens:

vki68 eks $ configure --target=3300
Linked `config.h' to `./config/xm-mot3300.h'
Linked `tm.h' to `./config/mot3300.h'
Linked `md' to `./config/m68k.md'
Linked `aux-output.c' to `./config/m68k.c'
Linked `tconfig.h' to `./config/xm-mot3300.h'
Linked `hconfig.h' to `./config/xm-mot3300.h'
Created `Makefile'.
Links are now set up for target m68k-motorola-sysv.
vki68 eks $ make CC=gcc LANGUAGES=c
        gcc  -DIN_GCC   -g     -I. -I. -I./config \
          -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/3300/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" \
          -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
          -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
          -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/3300/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" \
          -DTOOLDIR=\"/usr/local/3300/\" \
          -c `echo ./cccp.c | sed 's,^\./,,'`
        gcc  -DIN_GCC   -g     -I. -I. -I./config -c ./cexp.c
        gcc -c  -DIN_GCC   -g     -I. -I. -I./config version.c
        gcc -c  -DIN_GCC   -g     -I. -I. -I./config obstack.c
        gcc  -DIN_GCC   -g   -o cccp cccp.o cexp.o version.o obstack.o ` case "gcc" in "cc") echo  ;; esac `  
undefined                       first referenced
 symbol                             in file
index                               cccp.o
rindex                              cccp.o
ld fatal: Symbol referencing errors. No output written to cccp
*** Error code 1

Stop.
vki68 eks $ 


Where should index and rindex be found or why are they included in cccp.c
when found nowhere ?


Thank you in advance


--- Eigil
Technical Details
Message-ID: <1992Nov21.164609.25735@daimi.aau.dk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!daimi!eks

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!daimi!eks
From: eks@daimi.aau.dk (Eigil Krogh S|rensen)
Subject: ld error with index and rindex in cccp
Message-ID: <1992Nov21.164609.25735@daimi.aau.dk>
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
Date: Sat, 21 Nov 92 16:46:09 GMT
Lines: 43