Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 13:26:30 +0200
From:      clemensF <rabat@web.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Build failure (long), was Re: Kernel Build Failure in kern/subr_disk.c
Message-ID:  <20010529132630.B4555@spotteswoode.yi.org>
In-Reply-To: <3B135002.5BB4F5C9@i-clue.de>; from so@server.i-clue.de on Tue, May 29, 2001 at 09:30:10AM %2B0200
References:  <3B1090C8.B4FF2156@pacbell.net> <20010526225855A.jkh@osd.bsdi.com> <20010527150747.B1614@spotteswoode.yi.org> <20010527210248.B51861@xor.obsecurity.org> <20010528234040.D438@spotteswoode.yi.org> <20010528144202.C58165@xor.obsecurity.org> <20010529004908.G438@spotteswoode.yi.org> <3B135002.5BB4F5C9@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> Christoph Sold:

> to learn how to conifgure and compile a kernel.

i've done lots of kernels, to play around, get features i wanted and throw
out those i didn't need.  but i may have patched the sources of the kernel
to death by following every security advisory (eg. the tcp-sequence patch,
the poll(2) bug...).  but i could always build and run kernels, up until i
wanted to upgrade from 4.0 release to (finally) 4.3 stable.  note that i
didn't change anything in /usr/include or /sys/src myself.

> If this still does not get you up to speed, please include some basic
> information (output of uname -a, what did you download, which commands
> did you use, what ws the exact error message).

FreeBSD spotteswoode.yi.org 4.0-RELEASE FreeBSD 4.0-RELEASE #11: Tue May 22 19:29:45 CEST 2001     toor@spotteswoode.yi.org:/usr/src/sys/compile/DSLMFS  i386

i went to "ftp://releng4.freebsd.org/pub/FreeBSD/snapshots/i386/" and took
the snapshot of may 24, 2001 (src/).  then i used "install.sh" contained
therein to install right on top of the sources in there after i made sure
that the "--unlink" flag was given to it's tar() command.

the command used was "make buildworld".

now to the error messages.  hmm...  there were so many.  this is an excerpt
from the protocols i make on a regular bases so i know from where to start:

------------8<------------------
		.
		.
		.

cc  -pipe -pipe -pipe  -I. -I/usr/src/usr.sbin/config -Wall -Wunused
-Wmissing-prototypes -Wredundant-decls
-I/usr/obj/usr/src/i386/usr/include -c lang.c
/usr/src/usr.sbin/config/lang.l:53: `AT' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:53: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:53: (near initialization for
`key_words[0].kt_val')
/usr/src/usr.sbin/config/lang.l:54: `BUS' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:54: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:54: (near initialization for
`key_words[1].kt_val')
/usr/src/usr.sbin/config/lang.l:55: `CONFLICTS' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:55: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:55: (near initialization for
`key_words[2].kt_val')
/usr/src/usr.sbin/config/lang.l:57: `CONTROLLER' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:57: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:57: (near initialization for
`key_words[4].kt_val')
/usr/src/usr.sbin/config/lang.l:60: `DISABLE' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:60: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:60: (near initialization for
`key_words[7].kt_val')
/usr/src/usr.sbin/config/lang.l:61: `DISK' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:61: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:61: (near initialization for
`key_words[8].kt_val')
/usr/src/usr.sbin/config/lang.l:62: `DRIVE' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:62: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:62: (near initialization for
`key_words[9].kt_val')
/usr/src/usr.sbin/config/lang.l:63: `DRQ' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:63: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:63: (near initialization for
`key_words[10].kt_val')
/usr/src/usr.sbin/config/lang.l:64: `FLAGS' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:64: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:64: (near initialization for
`key_words[11].kt_val')
/usr/src/usr.sbin/config/lang.l:66: `IOMEM' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:66: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:66: (near initialization for
`key_words[13].kt_val')
/usr/src/usr.sbin/config/lang.l:67: `IOSIZ' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:67: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:67: (near initialization for
`key_words[14].kt_val')
/usr/src/usr.sbin/config/lang.l:68: `IRQ' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:68: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:68: (near initialization for
`key_words[15].kt_val')
/usr/src/usr.sbin/config/lang.l:72: `NEXUS' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:72: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:72: (near initialization for
`key_words[19].kt_val')
/usr/src/usr.sbin/config/lang.l:75: `PORT' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:75: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:75: (near initialization for
`key_words[22].kt_val')
/usr/src/usr.sbin/config/lang.l:76: `PSEUDO_DEVICE' undeclared here (not in
a function)
/usr/src/usr.sbin/config/lang.l:76: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:76: (near initialization for
`key_words[23].kt_val')
/usr/src/usr.sbin/config/lang.l:77: `TAPE' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:77: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:77: (near initialization for
`key_words[24].kt_val')
/usr/src/usr.sbin/config/lang.l:78: `TARGET' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:78: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:78: (near initialization for
`key_words[25].kt_val')
/usr/src/usr.sbin/config/lang.l:79: `UNIT' undeclared here (not in a
function)
/usr/src/usr.sbin/config/lang.l:79: initializer element is not constant
/usr/src/usr.sbin/config/lang.l:79: (near initialization for
`key_words[26].kt_val')
/usr/src/usr.sbin/config/lang.l: In function `yylex':
/usr/src/usr.sbin/config/lang.l:109: `CONTROLLER' undeclared (first use in
this function)
/usr/src/usr.sbin/config/lang.l:109: (Each undeclared identifier is
reported only once
/usr/src/usr.sbin/config/lang.l:109: for each function it appears in.)
/usr/src/usr.sbin/config/lang.l:109: `DISK' undeclared (first use in this
function)
/usr/src/usr.sbin/config/lang.l:109: `TAPE' undeclared (first use in this
function)
/usr/src/usr.sbin/config/lang.l:110: `PSEUDO_DEVICE' undeclared (first use
in this function)
/usr/src/usr.sbin/config/lang.l:110: `AT' undeclared (first use in this
function)
/usr/src/usr.sbin/config/lang.l:151: `FPNUMBER' undeclared (first use in
this function)
/usr/src/usr.sbin/config/lang.l: At top level:
/usr/src/usr.sbin/config/lang.l:1027: warning: `yy_flex_realloc' defined
but not used
*** Error code 1

Stop in /usr/src/usr.sbin/config.
*** Error code 1

Stop in /usr/src.
*** Error code 1
------------8<------------------

i have to admit that i solved the program "manually" by extending the table
given to the lexer.  this can be done in this case, because these are only
missing constant values used only within config().  i wanted to rush on,
you see, because from previous attempts i knew that there was more in
store.  this was the only time i ever changed a source file "out of band". 
i'll give the rest of the protocols lateron, but first i want to ask my
question as precise as i can:

given a recent snapshot from -stable in /usr/src and lots of errors after
"make buildworld" indicative for a complete hosed make infrastructure,
where or how do i get a complete matching set of include files in
/usr/include and /usr/share/mk for completing "make world" successfully?

------------8<------------------
=== Sat-26.05.01-22:34 buildworld 2 "make buildworld"
cc  -pipe -pipe -pipe
-I/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../../../../contrib/groff/src/pr
eproc/refer
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1
-DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1
-DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSEP=1
-DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1
-I/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../../../../contrib/groff/src/in
clude
-I/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/include
-I/usr/obj/usr/src/i386/usr/include  -static -o refer command.o label.o
ref.o refer.o token.o
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/libs/l
ibbib/libbib.a
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/libs/l
ibgroff/libgroff.a
-lm
command.o: In function `database_command(int, argument *)':
command.o(.text+0xbd8): undefined reference to `search_list::add_file(char
const *, int)'
command.o: In function `search_ignore_command(int, argument *)':
command.o(.text+0xeba): undefined reference to `linear_ignore_fields'
command.o: In function `no_search_ignore_command(int, argument *)':
command.o(.text+0xec5): undefined reference to `linear_ignore_fields'
command.o: In function `search_truncate_command(int, argument *)':
command.o(.text+0xee0): undefined reference to `linear_truncate_len'
command.o(.text+0xeea): undefined reference to `linear_truncate_len'
command.o: In function `no_search_truncate_command(int, argument *)':
command.o(.text+0xef9): undefined reference to `linear_truncate_len'
refer.o: In function `main':
refer.o(.text+0x206): undefined reference to `verify_flag'
refer.o(.text+0x51b): undefined reference to `linear_ignore_fields'
refer.o(.text+0x7d4): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0x8a5): undefined reference to `linear_truncate_len'
refer.o: In function `possibly_load_default_database(void)':
refer.o(.text+0xb12): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0xb2c): undefined reference to `search_list::add_file(char
const *, int)'
refer.o: In function `find_reference(char const *, int)':
refer.o(.text+0x2bc9): undefined reference to
`search_list_iterator::search_list_iterator(search_list *, char const *)'
refer.o(.text+0x2bf0): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2c45): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d00): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d62): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2dba): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o: In function `__static_initialization_and_destruction_0':
refer.o(.text+0x37c1): undefined reference to
`search_list::search_list(void)'
refer.o(.text+0x381f): undefined reference to
command.o: In function `no_search_truncate_command(int, argument *)':
command.o(.text+0xef9): undefined reference to `linear_truncate_len'
refer.o: In function `main':
refer.o(.text+0x206): undefined reference to `verify_flag'
refer.o(.text+0x51b): undefined reference to `linear_ignore_fields'
refer.o(.text+0x7d4): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0x8a5): undefined reference to `linear_truncate_len'
refer.o: In function `possibly_load_default_database(void)':
refer.o(.text+0xb12): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0xb2c): undefined reference to `search_list::add_file(char
const *, int)'
refer.o: In function `find_reference(char const *, int)':
refer.o(.text+0x2bc9): undefined reference to
`search_list_iterator::search_list_iterator(search_list *, char const *)'
refer.o(.text+0x2bf0): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2c45): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d00): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d62): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2dba): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o: In function `__static_initialization_and_destruction_0':
refer.o(.text+0x37c1): undefined reference to
`search_list::search_list(void)'
refer.o(.text+0x381f): undefined reference to
`search_list::~search_list(void)'
eproc/refer
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1
-DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1
-DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1
-DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRSEP=1
-DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1
-I/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../../../../contrib/groff/src/in
clude
-I/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/include
-I/usr/obj/usr/src/i386/usr/include  -static -o refer command.o label.o
ref.o refer.o token.o
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/libs/l
ibbib/libbib.a
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/groff/src/preproc/refer/../../../src/libs/l
ibgroff/libgroff.a
-lm
command.o: In function `database_command(int, argument *)':
command.o(.text+0xbd8): undefined reference to `search_list::add_file(char
const *, int)'
command.o: In function `search_ignore_command(int, argument *)':
command.o(.text+0xeba): undefined reference to `linear_ignore_fields'
command.o: In function `no_search_ignore_command(int, argument *)':
command.o(.text+0xec5): undefined reference to `linear_ignore_fields'
command.o: In function `search_truncate_command(int, argument *)':
command.o(.text+0xee0): undefined reference to `linear_truncate_len'
command.o(.text+0xeea): undefined reference to `linear_truncate_len'
command.o: In function `no_search_truncate_command(int, argument *)':
command.o(.text+0xef9): undefined reference to `linear_truncate_len'
refer.o: In function `main':
refer.o(.text+0x206): undefined reference to `verify_flag'
refer.o(.text+0x51b): undefined reference to `linear_ignore_fields'
refer.o(.text+0x7d4): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0x8a5): undefined reference to `linear_truncate_len'
refer.o: In function `possibly_load_default_database(void)':
refer.o(.text+0xb12): undefined reference to `search_list::add_file(char
const *, int)'
refer.o(.text+0xb2c): undefined reference to `search_list::add_file(char
const *, int)'
refer.o: In function `find_reference(char const *, int)':
refer.o(.text+0x2bc9): undefined reference to
`search_list_iterator::search_list_iterator(search_list *, char const *)'
refer.o(.text+0x2bf0): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2c45): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d00): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o(.text+0x2d62): undefined reference to
`search_list_iterator::next(char const **, int *, reference_id *)'
refer.o(.text+0x2dba): undefined reference to
`search_list_iterator::~search_list_iterator(void)'
refer.o: In function `__static_initialization_and_destruction_0':
refer.o(.text+0x37c1): undefined reference to
`search_list::search_list(void)'
refer.o(.text+0x381f): undefined reference to
`search_list::~search_list(void)'
*** Error code 1

Stop in /usr/src/gnu/usr.bin/groff/src/preproc/refer.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/groff/src/preproc.
*** Error code 1

=== Sat-26.05.01-22:41 buildworld 2; make most
src $ make most
--------------------------------------------------------------
>>> Building programs only
--------------------------------------------------------------
cd /usr/src/bin;          make all
===> cat
Warning: Object directory not changed from original /usr/src/bin/cat
gzip -cn cat.1 > cat.1.gz
===> chio
Warning: Object directory not changed from original /usr/src/bin/chio
===> ls
Warning: Object directory not changed from original /usr/src/bin/ls
cc  -pipe -pipe -pipe  -DCOLORLS -Wall -Wformat    -static -o ls cmp.o ls.o
print.o util.o  -ltermcap
ls.o: In function `display':
ls.o(.text+0xd49): undefined reference to `fflagstostr'
*** Error code 1

Stop in /usr/src/bin/ls.
*** Error code 1
------------8<------------------

anyway, i received many answers to my questions, and i am grateful that you
bore with me although i was showing my despair.

clemens fischer

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010529132630.B4555>