LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Compiling FreeBSD 4.5 (https://www.linuxquestions.org/questions/%2Absd-17/compiling-freebsd-4-5-a-21867/)

Enforcer 05-26-2002 01:48 PM

Compiling FreeBSD 4.5
 
Hi!

I'm forced to compile my own version of FreeBSD's kernel, cuz I want to view *.avi movies. With the extra option: "options USER_LDT".

I surfed in and looked at freebsd.org and viewed the handbook of how to config and compile the kernel.. didn't seem to be that hard.. and it wasn't..

..but when I had logged in as single user and started the process, it suddenly stopped and gave me this error..

mkdep: compile failed
*** Error code 1

Stop in /usr/obj/usr/src/sys/ENFORCER.
*** Error code 1

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

Stop in /usr/src.
# exit

I thought thats not much to go on, so I restarted the process, but this time I started "script kernel.out" before.

You can view this file at my homepage:

http://bart.sm.luth.se/~mikhar-1/kernel.out

Please give me a hint..

Thanks!

verigoth 05-27-2002 10:40 PM

missing header files in a kernel point to unselected options. apparently you chose something that needs something else, which would be great if the kernel told you that, but the majority of them don't. i haven't used FreeBSD, nor have i tried to compile the kernel, but my guess would be that you didn't enable pci, usb, isa, and a few other bus options. once again, this is just speculation, but it seems that pci_if.c/pci_if.h would be the kernel's pci bus interface, and same with the others (usb_if.*, isa_if.*, etc). just go through it again and make sure you have everything you need

verigoth

Dan Angelescu 07-15-2002 01:33 PM

What have you exactly done?
go to /sys/i386/conf/and edit GENERIC adding what you want
and save the kernel configuration as another file ex MyKernel.
/usr/sbin/config MyKernel
cd /sys/compile/MyKernel
make depend
make
make install
.If it doesn't work maybe the kernel source is bad
Good luck!
use only the default gcc 2.95.3


All times are GMT -5. The time now is 12:28 AM.