From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 2 02:20:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58F241065676 for ; Wed, 2 Dec 2009 02:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 13A7B8FC0A for ; Wed, 2 Dec 2009 02:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB22K1uk015524 for ; Wed, 2 Dec 2009 02:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB22K1o2015523; Wed, 2 Dec 2009 02:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 2 Dec 2009 02:20:01 GMT Resent-Message-Id: <200912020220.nB22K1o2015523@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Julian Stacey Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88081106566C for ; Wed, 2 Dec 2009 02:15:32 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 006648FC17 for ; Wed, 2 Dec 2009 02:15:31 +0000 (UTC) Received: from park.js.berklix.net (p549A4EEE.dip.t-dialin.net [84.154.78.238]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id nB22Amfl081384; Wed, 2 Dec 2009 02:10:49 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id nB22ATTj009318; Wed, 2 Dec 2009 03:10:29 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id nB22AIPO065551; Wed, 2 Dec 2009 03:10:23 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Received: (from jhs@localhost) by fire.js.berklix.net (8.14.3/8.14.3/Submit) id nB229u91065540; Wed, 2 Dec 2009 03:09:56 +0100 (CET) (envelope-from jhs) Message-Id: <200912020209.nB229u91065540@fire.js.berklix.net> Date: Wed, 2 Dec 2009 03:09:56 +0100 (CET) From: Julian Stacey To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Julian Stacey Subject: kern/141090: patch for COMPAT for /sys/sys/sysproto.h.REL=8.0-RELEASE.diff X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Julian Stacey List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 02:20:02 -0000 >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 >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@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: