buildkernel failure missing R_FIRST etc
#
# # Jens Schweikhardt wrote:
#> Andrew Bashere <abashere@yahoo.com> wrote
#> in <fd707556.0307080529.3c7b056a@posting.google.com>:
#> # keywords: failed kernel aic7***x aicasm_symbol.c R_FIRST R_LAST db.h
#> #
# # ...snip... #
#> # that wanted some "db". Unfortunately, there is a db2, db3, db4, and
#> # ndb and gdb.
#>
#> Something on your machine appears seriously misinstalled.
#
# As far as 'db's are concerned, that is true. I don't remember the port that wanted 'db'. Using the shotgun approach, I probably loaded all the packaages. Then looked at the ./configure test and fould that configuration allowed the ./configure to work. It was the result of a direct copy of that include file (db.h from db3(?)) into /usr/include.
#>
#> # It is odd that the kernel compile depends upon the existing (old)
#> # system files to be correct to compile correctly.
#>
#> In fact the kernel does not depend on any source outside /usr/src/sys.
#
# I think I have to diagree based upon the recorded scripts... see below
#>
#> # One would think that
#> # it should be looking at what will be installed leter during that
#> # install process.
#> #
#> # I simply copied /usr/src/include/db.h into /usr/include/db.h and the
#> # build completed.
#>
#> Then something else changed, as a kernel compile does not pull in
#> anything from /usr/include.
# See below ....
# cc -O -pipe -nostdinc -I/usr/include -I. -I/usr/src/sys/dev/aic7***/aicasm
You are right, I just looked at the logs of the last current run.
-I/usr/include does appear only in the aic7*** driver. Hmmm.
# #ifdef __linux__
# #include "aicdb.h" # #else
# #include <db.h>
# #endif # ... #
# Which <db.h> do you think got loaded?
#
# It looks like "/usr/include/db.h" to me. One of the files named 'db.h' has the missing R_FIRST (if not replaced by a different db.h from a different package or port).
#
# Andrew Bashere
AFAIK, a buildkernel is supposed to be selfcontained under /usr/src. The
correct db.h to use would be /usr/src/include/db.h so it appears to me
the build process has a bug where -I/usr/include should be
-I/usr/src/include instead. I'll ask the aic maintainer.
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
|