Register a domain and help support LQ
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 05-26-2002, 02:48 PM   #1
LQ Newbie
Registered: Apr 2002
Location: Sweden
Distribution: FBSD 4.10, FBSD 5.2.1 , OBSD 3.4
Posts: 27

Rep: Reputation: 15
Compiling FreeBSD 4.5


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 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:

Please give me a hint..

Old 05-27-2002, 11:40 PM   #2
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
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

Old 07-15-2002, 02:33 PM   #3
Dan Angelescu
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
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 install
.If it doesn't work maybe the kernel source is bad
Good luck!
use only the default gcc 2.95.3


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Compiling pftpfxp-mew on FreeBSD (AMD64) SupaDupa *BSD 1 12-17-2005 06:11 PM
As a FreeBSD user, what is the best things you like about FreeBSD? t3gah *BSD 6 06-10-2005 03:38 PM
Mplayer compiling error FreeBSD 4.10 agarfors *BSD 8 09-28-2004 06:30 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 08:56 PM
compiling linux kernel on FreeBSD sakeeb *BSD 1 08-28-2002 06:39 AM

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration