Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 22:59:15 -0700
From:      John Mertz <jmertz@rocksolid.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Kernel Compile Failure
Message-ID:  <3.0.1.32.19981023225915.007f1100@rocksolid.net>

next in thread | raw e-mail | index | archive | help
--=====================_909233955==_
Content-Type: text/plain; charset="us-ascii"

I have just upgraded from 2.2.1 to 2.2.7 via the Walnut Creek cdrom - which
was an interesting exercise in and of itself.

Now I can not 'make' my kernel.  I first thought I did something wrong in
the install, so I installed all of the sources from the second cd and
performed a 'make world' per the instructions in the tutorial.  Other than
the fact the 'make world' insisted on installing gnu even though I didn't
want it, the process appeared to complete properly.

I modified my old kernel and eliminated an option (SOMAXCONN) that
evidently has been eliminated (see attached SERVER2) and was also causing
the 'make' to fail.  But I am still getting the following errors (even
though I do not have a scanner - which is what aic7xx appears to relate to)

make -f ../../dev/aic7xxx/Makefile MAKESRCPATH=../../dev/aic7xxx
Warning: Object directory not changed from original
/usr/src/sys/compile/SERVER2
yacc -d ../../dev/aic7xxx/aicasm_gram.y
mv y.tab.c aicasm_gram.c
cc -O -pipe -I.   -c aicasm_gram.c
lex -t  ../../dev/aic7xxx/aicasm_scan.l > aicasm_scan.c
cc -O -pipe -I.   -c aicasm_scan.c
../../dev/aic7xxx/aicasm_scan.l: In function `yylex':
../../dev/aic7xxx/aicasm_scan.l:68: `T_DOWNLOAD' undeclared (first use this
func
tion)
../../dev/aic7xxx/aicasm_scan.l:68: (Each undeclared identifier is reported
only
 once
../../dev/aic7xxx/aicasm_scan.l:68: for each function it appears in.)
*** Error code 1

Stop.
*** Error code 1

Stop.
server2#

What am I doing wrong?

John Mertz
--=====================_909233955==_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="Server2"

#
# SERVER2 -- Generic machine with WD/AHx/NCR/BTx family disks
#
# 10/22/98
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in=
 LINT.
#
#	$Id: GENERIC,v 1.77.2.4 1997/02/22 20:31:24 joerg Exp=
 $

machine=
	=
	"i386"
cpu=
		"I686_CPU"
ident		SERVER2
maxusers	128

options		"MAXMEM=3D131072"		#Example used=
 "MAXMEM=3D(128*1024)"

options		MATH_EMULATE		#Support for x87=
 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP=
 THIS!]
options		SCSI_DELAY=3D15		#Be pessimistic about Joe SCSI=
 device
options		BOUNCE_BUFFERS		#include support for DMA bounce=
 buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

#
# These three options provide support for System V Interface
# Definition-style interprocess communication, in the form of shared
# memory, semaphores, and message queues, respectively.
#
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG

# Network options. NBMCLUSTERS defines the number of mbuf clusters and
# defaults to 256.  This machine is a server that handles lots of traffic,
# so we crank that value.

options		NMBCLUSTERS=3D4096	# mbuf clusters at 4096

#
# Misc. options
#
options		CHILD_MAX=3D256		# maximum number of child=
 processes
options		OPEN_MAX=3D256		# maximum fds (higher value will
					#  break RPC services!)

config		kernel	root on=
 wd0

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector=
 fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
tape		ft0	at fdc0 drive 2

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

options		ATAPI		#Enable ATAPI support for IDE=
 bus
options		ATAPI_STATIC	#Don't do it as an LKM
device		wcd0	#IDE CD-ROM

# A single entry for any of these controllers (ncr, ahb, ahc, amd) is
# sufficient for any number of installed=
 devices.
controller	ahc0
#controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector=
 ahaintr
#controller	aic0	at isa? port 0x340 bio irq 11 vector=
 aicintr

controller	scbus0

device		sd0

device		od0	#See LINT for possible `od'=
 options.

device		st0

device		cd0	#Only need one of these, the code dynamically=
 grows

device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector=
 wtintr


device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO=
 console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console=
 driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector=
 pcrint
#options		PCVT_FREEBSD=3D210	# pcvt running on FreeBSD >=3D=
 2.0.5
#options		XSERVER			# include code for XFree86
#options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT=
 lines
#options		PCVT_SCANSET=3D2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector=
 siointr
#device		sio2	at isa? disable port "IO_COM3" tty irq 5 vector=
 siointr
#device		sio3	at isa? disable port "IO_COM4" tty irq 9 vector=
 siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr


# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0   =
 

pseudo-device=
	loop
pseudo-device	ether
pseudo-device	log
#pseudo-device	sl	1
# ijppp uses tun instead of ppp device
pseudo-device	ppp    =
 2	
pseudo-device	tun	2
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
#options		KTRACE		#kernel tracing


--=====================_909233955==_--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19981023225915.007f1100>