Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 16:47:59 -0700 (PDT)
From:      Joshua Harris <joharris2112@msn.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/66553: SEBSD kernel compilation errors  
Message-ID:  <200405112347.i4BNlxja017597@www.freebsd.org>
Resent-Message-ID: <200405112350.i4BNoLE5030785@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         66553
>Category:       i386
>Synopsis:       SEBSD kernel compilation errors
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 11 16:50:21 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Joshua Harris
>Release:        5.2.1
>Organization:
>Environment:
catharsiss# uname -a
FreeBSD catharsiss 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
After successfully downloading the sources for SEBSD via CVSup from cvs10.freebsd.org using thier sample supfile
and selecting all branches I encountered a compilation error while preforming  a make buildkernel  after preforming a successfull make buildworld in the following module 

    cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/p4cvs/projects/trustedbsd/sebsd/sys -I/usr/p4cvs/projects/trustedbsd/sebsd/sys/contrib/dev/acpica -I/usr/p4cvs/projects/trustedbsd/sebsd/sys/contrib/ipfilter -I/usr/p4cvs/projects/trustedbsd/sebsd/sys/contrib/dev/ath -I/usr/p4cvs/projects/trustedbsd/sebsd/sys/contrib/dev/ath/freebsd -I/usr/p4cvs/projects/trustedbsd/sebsd/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  /usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c: In function `vfs_nmount':
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:583: warning: passing arg 2 of `vfs_domount' from incompatible pointer type
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:583: warning: passing arg 4 of `vfs_domount' makes pointer from integer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:583: warning: passing arg 5 of `vfs_domount' makes integer from pointer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c: In function `mount':
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:628: warning: passing arg 2 of `vfs_domount' from incompatible pointer type
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:628: warning: passing arg 4 of `vfs_domount' makes pointer from integer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:628: warning: passing arg 5 of `vfs_domount' makes integer from pointer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c: In function `vfs_mount':
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:649: error: declaration for parameter `mntlabel' but no such parameter
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:652: warning: passing arg 2 of `vfs_domount' from incompatible pointer type
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:652: warning: passing arg 4 of `vfs_domount' makes pointer from integer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:652: warning: passing arg 5 of `vfs_domount' makes integer from pointer without a cast
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c: At top level:
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:667: error: conflicting types for `vfs_domount'
/usr/p4cvs/projects/trustedbsd/sebsd/sys/kern/vfs_mount.c:112: error: previous declaration of `vfs_domount'
*** Error code 1

Stop in /usr/obj/usr/p4cvs/projects/trustedbsd/sebsd/sys/CEBSD.
*** Error code 1

Stop in /usr/p4cvs/projects/trustedbsd/sebsd.
*** Error code 1

Stop in /usr/p4cvs/projects/trustedbsd/sebsd.


the  system hardware configuration is as follows  

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.2.1-RELEASE #0: Mon Feb 23 20:45:55 GMT 2004
    root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a35000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a351a4.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (300.01-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping = 4
  Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory  = 268435456 (256 MB)
avail memory = 251105280 (239 MB)
Pentium Pro MTRR support enabled
    ACPI-0159: *** Error: AcpiLoadTables: Could not get RSDP, AE_NO_ACPI_TABLES
    ACPI-0213: *** Error: AcpiLoadTables: Could not load tables: AE_NO_ACPI_TABLES
ACPI: table load failed: AE_NO_ACPI_TABLES
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00fdf50
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci_cfgintr: 0:7 INTD BIOS irq 11
pci_cfgintr: 0:14 INTA BIOS irq 9
pci_cfgintr: 0:15 INTA BIOS irq 10
pci_cfgintr: 0:16 INTA BIOS irq 11
pci_cfgintr: 0:16 INTA BIOS irq 11
agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci_cfgintr: 0:1 INTA routed to irq 9
pcib1: slot 0 INTA is routed to irq 9
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xfcf0-0xfcff at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfcc0-0xfcdf irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 2
uhub1: 3 ports with 2 removable, bus powered
ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/1
kbd1 at ukbd0
piix0: <PIIX Timecounter> port 0x7000-0x700f at device 7.3 on pci0
Timecounter "PIIX" frequency 3579545 Hz quality 0
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xfca0-0xfcbf irq 9 at device 14.0 on pci0
ed0: address 00:00:c5:b0:36:22, type NE2000 (16 bit) 
pci0: <multimedia, audio> at device 15.0 (no driver attached)
pci0: <multimedia, video> at device 16.0 (no driver attached)
pci0: <multimedia> at device 16.1 (no driver attached)
orm0: <Option ROMs> at iomem 0xe4000-0xeffff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
Timecounter "TSC" frequency 300012440 Hz quality 800
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc2db3660
ad0: 8063MB <IBM-DHEA-38451> [16383/16/63] at ata0-master UDMA33
acd0: CDROM <FX4831T> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
Accounting enabled
uhub1: at uhub0 port 2 (addr 2) disconnected
ukbd0: detached
uhub1: detached
 Compiler information

CATHARSIS# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.3.3 [FreeBSD] 20031106

CATHARSIS# cc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.3.3 [FreeBSD] 20031106


i am now attempting to import the sources from 5.2.1 branch to replace the faulty module 

  
>How-To-Repeat:
download the current source for trusted bsd and attempt compilation on a 5.2.1 system with 
>Fix:
correct the vfs_domount function by allocating sperate table space or replace with a current copy of vfs_mount.c 
>Release-Note:
>Audit-Trail:
>Unformatted:



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