From owner-freebsd-questions Fri Mar 10 5:19:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.utfors.se (mail.utfors.se [195.58.103.125]) by hub.freebsd.org (Postfix) with ESMTP id E54DA37BA35 for ; Fri, 10 Mar 2000 05:19:36 -0800 (PST) (envelope-from a43astra@hem.passagen.se) Received: from hem2.passagen.se (md4690acb.utfors.se [212.105.10.203]) by mail.utfors.se (8.8.8/8.8.8) with ESMTP id OAA10853 for ; Fri, 10 Mar 2000 14:19:31 +0100 (MET) Message-ID: <38C8F623.C863899A@hem2.passagen.se> Date: Fri, 10 Mar 2000 14:18:27 +0100 From: "ALR_Root@Vejde" Reply-To: vejde@geocities.com X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.4-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: Problem compiling a custom kernel under FreeBSD 3.4 and options SYSVSEM/SYSVSHM Content-Type: multipart/mixed; boundary="------------0095DEA982FE2CE3FE17DA2E" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------0095DEA982FE2CE3FE17DA2E Content-Type: multipart/alternative; boundary="------------8777C84ABF913C7A1574FF51" --------------8777C84ABF913C7A1574FF51 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, tried to upgrade my system from FreeBSD2.2.2 to 3.4 today ... The upgrade (done via install disks and later stand/sysinstall since I don't have too much diskspace to install all sources, have only (UPDATED versions of) etc, sys, usr.bin and usr.sbin - and this subset worked fine all years I had 2.2.2) worked fine, but when I tried to compile my custom kernel (to get sound support and quicker boot-time), make always fail when trying to compile any files dealing with SYSV shared memory support ... sysv_sem.c and sysv_shm.c with the following outputs: ../../kern/sysv_sem.c: In function `semundo_adjust': ../../kern/sysv_sem.c:261: structure has no member named `un_id' ../../kern/sysv_sem.c:283: structure has no member named `un_id' ../../kern/sysv_sem.c: In function `semundo_clear': ../../kern/sysv_sem.c:300: structure has no member named `un_id' ../../kern/sysv_sem.c: In function `__semctl': ../../kern/sysv_sem.c:416: structure has no member named `sempid' ../../kern/sysv_sem.c: In function `semop': ../../kern/sysv_sem.c:845: structure has no member named `sempid' ../../kern/sysv_sem.c: In function `semexit': ../../kern/sysv_sem.c:920: structure has no member named `un_id' *** Error code 1 cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I/usr/include -DKERNEL -DVM_STACK -include opt_global.h -elf ../../kern/sysv_shm.c ../../kern/sysv_shm.c: In function `shmat': ../../kern/sysv_shm.c:283: structure has no member named `shm_lpid' ../../kern/sysv_shm.c: In function `oshmctl': ../../kern/sysv_shm.c:329: structure has no member named `shm_cpid' ../../kern/sysv_shm.c:330: structure has no member named `shm_lpid' ../../kern/sysv_shm.c: In function `shmget_allocate_segment': ../../kern/sysv_shm.c:514: structure has no member named `shm_cpid' ../../kern/sysv_shm.c:515: structure has no member named `shm_lpid' *** Error code 1 Unfortunately, some of my cgi-scripts make use of those features AND I use X Windows too ... Have disabled them for now, hope someone can help me ... //Astrid vejde@geocities.com --------------8777C84ABF913C7A1574FF51 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Hi,
tried to upgrade my system from FreeBSD2.2.2 to 3.4 today ... The upgrade (done via install disks and later stand/sysinstall since I don't have too much diskspace to install all sources, have only (UPDATED versions of) etc, sys, usr.bin and usr.sbin - and this subset worked fine all years I had 2.2.2) worked fine, but when I tried to compile my custom kernel (to get sound support and quicker boot-time),
make
always fail when trying to compile any files dealing with SYSV shared memory support ...
sysv_sem.c and sysv_shm.c
with the following outputs:

../../kern/sysv_sem.c: In function `semundo_adjust':
../../kern/sysv_sem.c:261: structure has no member named `un_id'
../../kern/sysv_sem.c:283: structure has no member named `un_id'
../../kern/sysv_sem.c: In function `semundo_clear':
../../kern/sysv_sem.c:300: structure has no member named `un_id'
../../kern/sysv_sem.c: In function `__semctl':
../../kern/sysv_sem.c:416: structure has no member named `sempid'
../../kern/sysv_sem.c: In function `semop':
../../kern/sysv_sem.c:845: structure has no member named `sempid'
../../kern/sysv_sem.c: In function `semexit':
../../kern/sysv_sem.c:920: structure has no member named `un_id'

*** Error code 1
 
 

cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -Wnested-externs
-Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -DKERNEL -DVM_STACK -include
opt_global.h -elf  ../../kern/sysv_shm.c
../../kern/sysv_shm.c: In function `shmat':
../../kern/sysv_shm.c:283: structure has no member named `shm_lpid'
../../kern/sysv_shm.c: In function `oshmctl':
../../kern/sysv_shm.c:329: structure has no member named `shm_cpid'
../../kern/sysv_shm.c:330: structure has no member named `shm_lpid'
../../kern/sysv_shm.c: In function `shmget_allocate_segment':
../../kern/sysv_shm.c:514: structure has no member named `shm_cpid'
../../kern/sysv_shm.c:515: structure has no member named `shm_lpid'
*** Error code 1
 

Unfortunately, some of my cgi-scripts make use of those features AND I use X Windows too ...  Have disabled them for now, hope someone can help me ...

//Astrid

vejde@geocities.com


 

--------------8777C84ABF913C7A1574FF51--

--------------0095DEA982FE2CE3FE17DA2E
Content-Type: text/plain; charset=us-ascii; name="VEJDE"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="VEJDE"

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.freebsd.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.ORG/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.143.2.24 1999/12/05 01:56:42 luoqi Exp $

machine		"i386"
cpu		"I586_CPU"
ident		VEJDE
maxusers	10

#options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
#options 	MFS			#Memory Filesystem
#options 	MFS_ROOT		#MFS usable as root device, "MFS" req'ed
options 	NFS			#Network Filesystem
options 	NFS_ROOT		#NFS usable as root device, "NFS" req'ed
options 	MSDOSFS			#MSDOS Filesystem
options 	"CD9660"		#ISO 9660 Filesystem
options 	"CD9660_ROOT"		#CD-ROM usable as root. "CD9660" req'ed
options 	PROCFS			#Process filesystem
options 	"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=5000		#Be pessimistic about Joe SCSI device
options 	UCONSOLE		#Allow users to grab the console
options 	FAILSAFE		#Be conservative
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) syscall trace support
#options 	SYSVSHM			#SYSV-style shared memory
#options 	SYSVMSG			#SYSV-style message queues
#options 	SYSVSEM			#SYSV-style semaphores

config		kernel	root on wd2

controller	isa0
controller	pnp0			# PnP support for ISA
controller	eisa0
controller	pci0

# Floppy drives
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
disk		fd0	at fdc0 drive 0
#disk		fd1	at fdc0 drive 1

# IDE controller and disks
options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa? port "IO_WD1" bio irq 14
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

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

# ATAPI devices
options		ATAPI		#Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device		acd0		#IDE CD-ROM
device		wfd0		#IDE Floppy (e.g. LS-120)

# SCSI Controllers
# A single entry for any of these controllers (ncr, ahb, ahc) is
# sufficient for any number of installed devices.
controller	aic0	at isa? port ? cam irq ?

# SCSI peripherals
# Only one of each of these is needed, they are dynamically allocated.
controller	scbus0		# SCSI bus (required)
device		da0		# Direct Access (disks)
device		sa0		# Sequential Access (tape etc)
device		cd0		# CD
device		pass0		# Passthrough device (direct SCSI)

# Proprietary or custom CD-ROM Interfaces
device		wt0	at isa? port 0x300 bio irq 5 drq 1

# atkbdc0 controls both the keyboard and the PS/2 mouse
controller	atkbdc0	at isa? port IO_KBD tty
device		atkbd0	at isa? tty irq 1

device		psm0	at isa? tty irq 12

device		vga0	at isa? port ? conflicts

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? tty

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
device		vt0	at isa? tty
options 	XSERVER			# support for X server
#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=2		# IBM keyboards are non-std
options		"PCVT_FREEBSD=210"

# Floating point support - do not disable.
device		npx0	at isa? port IO_NPX irq 13

# Power management support (see LINT for more options)
# device		apm0    at isa?	disable	flags 0x31 # Advanced Power Management

# PCCARD (PCMCIA) support
#controller	card0
#device		pcic0	at card?
#device		pcic1	at card?

# Serial (COM) ports
device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4
device		sio1	at isa? port "IO_COM2" tty irq 3
device		sio2	at isa? disable port "IO_COM3" tty irq 5
device		sio3	at isa? disable port "IO_COM4" tty irq 9

# Parallel port
device		ppc0	at isa? port? flags 0x40 net irq 7
controller	ppbus0			# Parallel port bus (required)
device		lpt0	at ppbus?	# Printer
device		plip0	at ppbus?	# TCP/IP over parallel
device		ppi0	at ppbus?	# Parallel port interface device
#controller	vpo0	at ppbus?	# Requires scbus and da0

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
#pseudo-device	log		# logging ...
#pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	2	# Kernel PPP
pseudo-device	tun	1	# Packet tunnel
pseudo-device	pty	24	# Pseudo-ttys (telnet etc)
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	vn		#Vnode driver (turns a file into a device)

#added 2000-03-10 for sound support
controller	snd0
device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330

device pca0 at isa? port "IO_TIMER1" tty

--------------0095DEA982FE2CE3FE17DA2E--



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