Re: Custom Kernel 'make depend' Failure

2005-01-19 Thread Christian Hiris
On Wednesday 19 January 2005 05:14, Scott C. MacCallum wrote:
> Greetings,
>
> I am running FreeBSD 5.3 Stable.
>
> I had been following the steps found in the handbook to make a custom
> kernel:
>
> /usr/sbin/config MYKERNEL
> cd ../compile/MYKERNEL
> make depend

You run the old, traditional way to build a kernel. Did you rebuild world 
after you have cvsuped your sources? I would recommend that you do some 
cleanup and then build world and kernel the new way. 

Clean up /usr/obj (if exists):
# cd /usr/obj 
# chflags -R noschg *
# rm -rf *

Clean up sources:
# cd /usr/src
# make cleandir ; make cleandir  

Read /usr/src/UPDATING.

Build world and kernel:
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

Reboot into single user mode and install world.

# adjkerntz -i
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# mergemaster -p
# cd /usr/src
# make installworld
# mergemaster
# reboot

For the details please read  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html

Good luck!

-- 
Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Custom Kernel 'make depend' Failure

2005-01-18 Thread Scott C. MacCallum
Greetings,

I am running FreeBSD 5.3 Stable.

I had been following the steps found in the handbook to make a custom kernel:

/usr/sbin/config MYKERNEL
cd ../compile/MYKERNEL
make depend

when I came upon the following make depend error:

In file included from ../../../i386/i386/genassym.c:43:
../../../sys/systm.h:38:1: unterminated #ifndef
*** Error code 1

The following is my modified GENERIC kernel file:

--

# ACMA -- ACMA kernel configuration file for FreeBSD/i386

machine i386
#cpuI486_CPU
cpu I586_CPU
#cpuI686_CPU
ident   GENERIC

# To statically compile in device wiring instead of /boot/device.hints
#hints  "GENERIC.hints" # Default places to look for devices.

options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=0# Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE

device  apic# I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
#device eisa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters

#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt  # Buslogic/Mylex MultiMaster SCSI adapters

#device ncv # NCR 53C500
#device nsp # Workbit Ninja SCSI-3
#device stg # TMC 18C30/18C50

# SCSI peripherals
#device scbus   # SCSI bus (required for SCSI)
#device ch  # SCSI media changers
#device da  # Direct Access (disks)
#device sa  # Sequential Access (tape etc)
#device cd  # CD
#device