From chu@h33.erkki.ton.tut.fi  Sat Nov 10 07:35:44 2001
Return-Path: <chu@h33.erkki.ton.tut.fi>
Received: from h33.erkki.ton.tut.fi (h33.erkki.ton.tut.fi [193.166.84.86])
	by hub.freebsd.org (Postfix) with ESMTP id B0FD437B41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 10 Nov 2001 07:35:42 -0800 (PST)
Received: (from chu@localhost)
	by h33.erkki.ton.tut.fi (8.11.6/8.11.3) id fAAFZeD78094;
	Sat, 10 Nov 2001 17:35:40 +0200 (EET)
	(envelope-from chu)
Message-Id: <200111101535.fAAFZeD78094@h33.erkki.ton.tut.fi>
Date: Sat, 10 Nov 2001 17:35:40 +0200 (EET)
From: Vladimir Tchoukharev <chu@h33.erkki.ton.tut.fi>
Reply-To: Vladimir Tchoukharev <chu@gpi.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: make buildkernel stops in linux module
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31901
>Category:       kern
>Synopsis:       make buildkernel stops in linux module
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 10 07:40:01 PST 2001
>Closed-Date:    Sun Nov 11 02:36:31 PST 2001
>Last-Modified:  Sun Nov 11 02:37:44 PST 2001
>Originator:     Vladimir Tchoukharev
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
FreeBSD svak.h33.erkki.ton.tut.fi 4.4-STABLE FreeBSD 4.4-STABLE #1: Sat Nov 10 15:06:34 EET 2001     root@svak.h33.erkki.ton.tut.fi:/usr/src/sys/compile/SVAK  i386
>Description:

# cvsup /etc/stable-supfile
# make buildkernel KERNCONF=SVAK
...
cc -nostdinc -O -pipe    -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MO
DULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -Wall -Wredundant-decl
s -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu
al  -fformat-extensions -ansi -c linux_sysent.c
In file included from linux_sysent.c:14:
linux_proto.h:57: syntax error before `linux_time_t'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
linux_proto.h:57: syntax error before `)'
linux_proto.h:156: syntax error before `linux_handler_t'
...
linux_proto.h:517: syntax error before `linux_stack_t'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
linux_proto.h:517: syntax error before `)'
*** Error code 1

Stop in /usr/src/sys/modules/linux.
*** Error code 1

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

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

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

Stop in /usr/src.

I beleave it worked for me on 2001.10.29, and it did not work three days ago also.
Now I can make a kernel with
  cd /usr/src/sys/i386/conf  && \
  config SVAK && \
  cd ../../compile/SVAK && \
  make depend && \
  make all install
So it is not a big deal for me...

>How-To-Repeat:

Try to make buildkernel with my KERNCONF below on current -STABLE sources.

Best regards,
V.Tchoukharev
-----------------
grep -v "^#" /usr/src/sys/i386/conf/SVAK

machine		i386
cpu		I686_CPU
ident		SVAK
maxusers	128


options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev


device		isa
device		pci

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering

options		SYM_SETUP_LP_PROBE_MAP=0x40
				# Allow ncr to attach legacy NCR devices when 
				# both sym and ncr are configured



device		scbus		# SCSI bus (required)
device		pass		# Passthrough device (direct SCSI access)



device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

pseudo-device	splash

device		sc0	at isa? flags 0x100


device		npx0	at nexus? port IO_NPX irq 13

device		apm0    at nexus? disable flags 0x20 # Advanced Power Management


device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device



device		miibus		# MII bus support
device		rl		# RealTek 8129/8139


pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif		# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

pseudo-device	bpf		#Berkeley packet filter

device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ugen		# Generic
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
device		uscanner	# Scanners
device		aue		# ADMtek USB ethernet
device		cue		# CATC USB ethernet
device		kue		# Kawasaki LSI USB ethernet



options		NETSMB		#SMB/CIFS requester
options		NETSMBCRYPTO	#encrypted password support for SMB
options		SMBFS		#SMB/CIFS filesystem
options         UFS_DIRHASH

options		LIBMCHAIN	#mbuf management library

options		LIBICONV

pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	gzip		#Exec gzipped a.out's

options		VESA

device		pcm

device		pca0 at isa? port IO_TIMER1

options USER_LDT

device	smbus
device	iicbus
device	iicsmb
device	iicbb
device	intpm
device	smb
device	bktr
device	iic
device	ic

>Fix:
>Release-Note:
>Audit-Trail:

From: "Crist J. Clark" <cristjc@earthlink.net>
To: Vladimir Tchoukharev <chu@gpi.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/31901: make buildkernel stops in linux module
Date: Sat, 10 Nov 2001 23:46:28 -0800

 On Sat, Nov 10, 2001 at 05:35:40PM +0200, Vladimir Tchoukharev wrote:
 [snip]
 
 > # cvsup /etc/stable-supfile
 > # make buildkernel KERNCONF=SVAK
 > ...
 > cc -nostdinc -O -pipe    -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 >   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -DKLD_MO
 > DULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack-boundary=2 -Wall -Wredundant-decl
 > s -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu
 > al  -fformat-extensions -ansi -c linux_sysent.c
 > In file included from linux_sysent.c:14:
 > linux_proto.h:57: syntax error before `linux_time_t'
 > linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
 > linux_proto.h:57: syntax error before `)'
 > linux_proto.h:57: `linux_time_t' undeclared here (not in a function)
 > linux_proto.h:57: syntax error before `)'
 > linux_proto.h:156: syntax error before `linux_handler_t'
 > ...
 > linux_proto.h:517: syntax error before `linux_stack_t'
 > linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
 > linux_proto.h:517: syntax error before `)'
 > linux_proto.h:517: `linux_stack_t' undeclared here (not in a function)
 > linux_proto.h:517: syntax error before `)'
 > *** Error code 1
 > 
 > Stop in /usr/src/sys/modules/linux.
 > *** Error code 1
 
 Do a,
 
   # rm -rf /usr/obj/usr/src/sys/SVAK
 
 And try again.
 
 > I beleave it worked for me on 2001.10.29, and it did not work three days ago also.
 > Now I can make a kernel with
 >   cd /usr/src/sys/i386/conf  && \
 >   config SVAK && \
 >   cd ../../compile/SVAK && \
 >   make depend && \
 >   make all install
 > So it is not a big deal for me...
 
 This works because you do not have a stale object tree in
 /usr/src/sys/compile/SVAK like you do over in /usr/obj.
 
 > >How-To-Repeat:
 > 
 > Try to make buildkernel with my KERNCONF below on current -STABLE sources.
 
 It built for me without a problem,
 
   # cd /usr/src
   # make buildkernel KERNCONF=SVAK
   ...
   --------------------------------------------------------------
   >>> Kernel build for SVAK completed on Sat Nov 10 23:45:37 PST 2001
   --------------------------------------------------------------
 
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Sun Nov 11 02:36:31 PST 2001 
State-Changed-Why:  
Nuking the old, stale object tree fixed the user's problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31901 
>Unformatted:
