Subject: Continuing make src problems
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Tom Crockett <tmc@netcom.com>
List: current-users
Date: 12/30/1993 01:19:36
Does anyone have a clue regarding this happy stuff occurring during
source make? I first saw this with the tar files from dec 17(16)
but am still receiving the errors on attempting to make any binary with
the sources from today (12/29). I can't make a new make or sed, ld,
tsort, cc and so on.
cc -static -o make arch.o buf.o compat.o ... *more entries deleted*
arch.o: Undefined symbol _rindex referenced from text segment
arch.o: Undefined symbol _rindex referenced from text segment
dir.o: Undefined symbol _rindex referenced from text segment
dir.o: Undefined symbol _rindex referenced from text segment
job.o: Undefined symbol _rindex referenced from text segment
parse.o: Undefined symbol _rindex referenced from text segment
suff.o: Undefined symbol _rindex referenced from text segment
var.o: Undefined symbol _rindex referenced from text segment
var.o: Undefined symbol _rindex referenced from text segment
var.o: More undefined symbol _rindex refs follow
__main.o: Undefined symbol ___DTOR_LIST__ referenced from text segment
__main.o: Undefined symbol ___DTOR_LIST__ referenced from text segment
__main.o: Undefined symbol ___DTOR_LIST__ referenced from text segment
__main.o: Undefined symbol ___DTOR_LIST__ referenced from text segment
__main.o: Undefined symbol ___CTOR_LIST__ referenced from text segment
__main.o: Undefined symbol ___CTOR_LIST__ referenced from text segment
*** Error code 1
libarch complains with the following:
===> libarch
cc -O -c /usr/src/lib/libarch/i386/i386_get_ldt.c
cc -O -c /usr/src/lib/libarch/i386/i386_set_ldt.c
building standard i386 library
ar: no archive members specified.
usage: ar -d [-Tv] archive file ...
ar -m [-Tv] archive file ...
ar -m [-abiTv] position archive file ...
ar -p [-Tv] archive [file ...]
ar -q [-cTv] archive file ...
ar -r [-cuTv] archive file ...
ar -r [-abciuTv] position archive file ...
ar -t [-Tv] archive [file ...]
ar -x [-ouTv] archive [file ...]
*** Error code 1
Stop.
And man core dumps.
I think I must have something mis-configured, possibly to do with
the MACHINE_ARCH variable.
I've included the script I'm using to make everything... I also
added the line MACHINE-ARCH= i386 to sys.mk and removed the 'T'
from the ${AR} lines in bsd.lib.mk so that the longer object files
names don't get whacked.
#!/bin/csh -f
# file: make.current
cd /usr/src; make cleandir
echo '=====>MAKING COMPILE PROGRAMS'
setenv MACHINE_ARCH i386
setenv MACHINE i386
cd /usr/src/share/mk; make && make install
cd /usr/src/include; make && make install
setenv LDSTATIC -static
setenv NOPIC
cd /usr/src/lib/libc; make && make install
cd /usr/src/gnu/lib/libmalloc; make && make install
cd /usr/src/usr.bin/make; make && make install
cd /usr/src/gnu/usr.bin/ld; make && make install
cd /usr/src/lib/csu/i386; make && make install
cd /usr/src/usr.bin/sed; make && make install
cd /usr/src/usr.bin/join; make && make install
cd /usr/src/usr.bin/ar; make && make install
cd /usr/src/usr.bin/ranlib; make && make install
cd /usr/src/usr.bin/lorder; make && make install
cd /usr/src/usr.bin/nm; make && make install
cd /usr/src/usr.bin/tsort; make && make install
echo '=====>MAKING GCC2, GAS PROGRAMS'
cd /usr/src/gnu/usr.bin/gas; make && make install
cd /usr/src/gnu/usr.bin/gcc2; make && make install
unsetenv NOPIC LDSTATIC
echo '=====>MAKING SRC/LIB'
cd /usr/src/lib; make && make install
echo '=====>MAKING SRC/GNU/LIB'
cd /usr/src/gnu/lib; make && make install
echo '=====>MAKING SRC/GNU/LIBEXEC'
cd /usr/src/gnu/libexec; make && make install
echo '=====>MAKING SRC'
cd /usr/src/gnu/usr.bin/ld; make && make install
cd /usr/src; make && make install
Thanks for any and all help,
Tom
------------------------------------------------------------------------------