[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More kernel compile problems
> cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wno-uninitialized -Wno-format -Wno-main -nostdinc -I.
> -I../../../../arch -I../../../.. -DI386_CPU -DI486_CPU -DI586_CPU
> -DI686_CPU -DCOMPAT_SVR4 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD
> -DCOMPAT_BSDOS -DDIAGNOSTIC -DPCIVERBOSE -D_KERNEL -Di386 -c
Ahhh, there must be something wrong with your config file. I'd expect
to see more options, things like -DTIMEZONE="0" -DDST="0" -DSWAPPAGER,
etc. -DSWAPPAGER is required and comes from this line in your config file:
option SWAPPAGER # paging; REQUIRED
This is what I'd do:
1) cd /sys/arch/i386/conf
2) cp GENERIC XXX
3) edit XXX.
* Replace the line
include "../../../conf/GENERIC"
with the contents of the file /sys/conf/generic
* comment out devices/options you don't think you need. It's
better to comment out too few at this point, not too many.
4) config XXX
5) cd ../compile/XXX
6) make clean && make depend && make
That should leave you with a kernel ready to install and test. Make
sure you save the old kernel in case the new kernel doesn't work.
// marc