Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 14:18:27 +0100
From:      "ALR_Root@Vejde" <a43astra@hem.passagen.se>
To:        freebsd-questions@FreeBSD.org
Subject:   Problem compiling a custom kernel under FreeBSD 3.4 and options SYSVSEM/SYSVSHM
Message-ID:  <38C8F623.C863899A@hem2.passagen.se>

next in thread | raw e-mail | index | archive | help
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

<HTML>


<P>Hi,
<BR>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),
<BR>make
<BR>always fail when trying to compile any files dealing with SYSV shared
memory support ...
<BR>sysv_sem.c and sysv_shm.c
<BR>with the following outputs:

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

<P>*** Error code 1
<BR>&nbsp;
<BR>&nbsp;

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

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

<P>//Astrid

<P>vejde@geocities.com
<PRE></PRE>
&nbsp;</HTML>

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




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