kern/141090: patch for COMPAT for /sys/sys/sysproto.h.REL=8.0-RELEASE.diff

Julian Stacey jhs at berklix.com
Wed Dec 2 02:20:02 UTC 2009


>Number:         141090
>Category:       kern
>Synopsis:       patch for COMPAT for /sys/sys/sysproto.h.REL=8.0-RELEASE.diff
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 02 02:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Julian Stacey <jhs at berklix.com>
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
http://berklix.com BSD Linux Unix Consultancy, Munich/Muenchen.
>Environment:
System: FreeBSD laps.js.berklix.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sun Nov 29 00:24:58 UTC 2009 jhs at laps.js.berklix.net:/usr/src/sys/i386/compile/GENERIC i386


	
vanilla 8.9 686

>Description:
	See big comment sescription block below

>How-To-Repeat:
	See config below

>Fix:
Appended a copy of 
http://berklix.com/~jhs//src/bsd/fixes/FreeBSD/src/gen/sys/sys/sysproto.h.REL=8.0-RELEASE.diff

The need for this patch is explained in the comment in the patch.
The precise kernel on 8.0-RELEASE is appended further below.

*** 8.0-RELEASE/src/sys/sys/sysproto.h	Sun Oct 25 02:10:29 2009
--- new-generic/src/sys/sys/sysproto.h	Wed Dec  2 02:44:11 2009
***************
*** 2239,2245 ****
  #endif /* COMPAT_FREEBSD6 */
  
  
! #ifdef COMPAT_FREEBSD7
  
  struct freebsd7___semctl_args {
  	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
--- 2239,2270 ----
  #endif /* COMPAT_FREEBSD6 */
  
  
! // #ifdef COMPAT_FREEBSD7
! /*	I only wanted compat for FreeBSD4, for applixware needing libm.so.2.
!  *	I did not want compat for FreeBSD-[5-7], so in config file I only had
!  *		COMPAT_FREEBSD4
!  *	but I omitted in config file
!  *		options         COMPAT_FREEBSD5
!  *		options         COMPAT_FREEBSD6
!  *		options         COMPAT_FREEBSD7
!  *	but then compiler blew up with:
!  *		cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls
!  *		-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
!  *		-Wpointer-arith -Winline -Wcast-qual  -Wundef
!  *		-Wno-pointer-sign -fformat-extensions -nostdinc
!  *		-I. -I../../.. -I../../../contrib/altq -D_KERNEL
!  *		-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
!  *		-fno-common -f inline-limit=8000 --param
!  *		inline-unit-growth=100 --param large-function-growth=1000
!  *		-mno-align-long-strings -mpreferred-stack-boundary=2
!  *		-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
!  *		-ffreestanding -fstack-protector -Werror
!  *		../../../kern/sysv_msg.c ../../../kern/sysv_msg.c:1263:
!  *		error: invalid application of 'sizeof' to incomplete
!  *		type 'struct freebsd7_msgctl_args'
!  */
! #if	( ( defined COMPAT_FREEBSD4 ) || ( defined COMPAT_FREEBSD5 ) || \
! 	  ( defined COMPAT_FREEBSD6 ) || ( defined COMPAT_FREEBSD7 ) )
  
  struct freebsd7___semctl_args {
  	char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
===============
options INCLUDE_CONFIG_FILE
cpu "I686_CPU"
ident JHS_Laps
makeoptions DEBUG=-g
options SCHED_ULE
options PREEMPTION
options INET
options FFS
options SOFTUPDATES
options UFS_ACL
options UFS_DIRHASH
options UFS_GJOURNAL
options MD_ROOT
options NFSCLIENT
options NFSSERVER
options NFSLOCKD
options NFS_ROOT
options MSDOSFS
options CD9660
options UDF
options PROCFS
options PSEUDOFS
options GEOM_PART_GPT
options GEOM_LABEL
options COMPAT_43TTY
options GEOM_BDE
options GEOM_ELI
options COMPAT_FREEBSD4
options COMPAT_LINUX
options SCSI_DELAY=5000
options KTRACE
options STACK
options SYSVSHM
options SYSVMSG
options SYSVSEM
options P1003_1B_SEMAPHORES
options _KPOSIX_PRIORITY_SCHEDULING
options PRINTF_BUFR_SIZE=128
options KBD_INSTALL_CDEV
options HWPMC_HOOKS
options AUDIT
options MAC
options FLOWTABLE
options DDB
options KDB
options GDB
device crypto
device cpufreq
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_BRIDGE
device tap
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPDIVERT
device acpi
device pci
device ata
device atadisk
device atapicd
device atapicam
options ATA_STATIC_ID
device scbus
device da
device cd
device pass
device ses
device atkbdc
device atkbd
device psm
device kbdmux
device vga
device splash
device pf
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
device sc
device agp
device pmtimer
device cbb
device pccard
device cardbus
device uart
device miibus
options NDISAPI
device ndis
device wlan
options IEEE80211_DEBUG
options IEEE80211_AMPDU_AGE
options IEEE80211_SUPPORT_MESH
device wlan_wep
device wlan_ccmp
device wlan_tkip
device wlan_amrr
device an
device ath
device ath_hal
options AH_SUPPORT_AR5416
device ath_rate_sample
device ral
device wi
device fxp
device sound
device snd_ich
device loop
device random
device ether
device tun
device pty
device md
device firmware
device bpf
device uhci
device ehci
device usb
device uhid
device ukbd
device ulpt
device umass
device ums
device u3g
device firewire
device fwe
device fwip
device dcons
device dcons_crom
device acpi_toshiba
device mmc
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list