Re: Error building kernel in current

2023-06-03 Thread Gary Jennejohn
On Fri, 02 Jun 2023 19:57:40 +0100
"Alexander Chernikov"  wrote:

> On Fri, 2 Jun 2023, at 4:30 PM, Gary Jennejohn wrote:
> > On Fri, 2 Jun 2023 09:59:40 +
> > Gary Jennejohn  wrote:
> >
> > > On Fri, 2 Jun 2023 09:56:44 +
> > > Gary Jennejohn  wrote:
> > >
> > > > Error building kernel in current:
> > > >
> > > > --
> > > > >>> stage 3.1: building everything
> > > > --
> > > > /usr/src/sys/netlink/route/iface.c:1315:22: error: use of undeclared
> > > > identifier 'if_flags'
> > > > if (error == 0 && !(if_flags & IFF_UP) && (if_getflags(ifp) & 
> > > > IFF_UP))
> > > > ^
> > > > 1 error generated.
> > > > --- iface.o ---
> > > > *** [iface.o] Error code 1
> Sorry for the breakage, I?ll fix it in a couple of hours.
> > > >
> > > > My source tree was updated just a few minutes ago and I didn't see any
> > > > recent changes to iface.c.
> > > >
> > > > I have WITHOUT_NETLINK_SUPPORT= in my src.conf.
> > > >
> > >
> > > Ah, my error.  The failure occurs while building the kernel, so I fixed
> > > Subject accordingly.
> > >
> >
> > OK, this is another INET6 error.  I don't have INET6 enabled.
> >
> > At line 1280 we have:
> > #ifdef INET6
> > int if_flags = if_getflags(ifp);
> > #endif
> >
> > and if_flags is used at line 1315 without checking whether INET6 is
> > defined.
> >
> > if_flags seems to be totally redundant, since the code at line 1315 will
> > invoke if_getflags(ifp) if !(if_flags & IFF_UP) is true.
> >
> I wish it was true.  The case here is that interface flags can change
> after adding the address, as many interface drivers silently bring the
> interface up upon the first address addition.  Please see
> https://cgit.freebsd.org/src/commit/sys/netinet6?id=a77facd27368f618520d25391cfce11149879a41
> description for a more detailed explanation.


I suspected that may have been the reason, but I wasn't sure.  Thanks for
the link.

--
Gary Jennejohn



Re: Error building kernel in current

2023-06-02 Thread Alexander Chernikov

On Fri, 2 Jun 2023, at 4:30 PM, Gary Jennejohn wrote:
> On Fri, 2 Jun 2023 09:59:40 +
> Gary Jennejohn  wrote:
> 
> > On Fri, 2 Jun 2023 09:56:44 +
> > Gary Jennejohn  wrote:
> >
> > > Error building kernel in current:
> > >
> > > --
> > > >>> stage 3.1: building everything
> > > --
> > > /usr/src/sys/netlink/route/iface.c:1315:22: error: use of undeclared
> > > identifier 'if_flags'
> > > if (error == 0 && !(if_flags & IFF_UP) && (if_getflags(ifp) & 
> > > IFF_UP))
> > > ^
> > > 1 error generated.
> > > --- iface.o ---
> > > *** [iface.o] Error code 1
Sorry for the breakage, I’ll fix it in a couple of hours.
> > >
> > > My source tree was updated just a few minutes ago and I didn't see any
> > > recent changes to iface.c.
> > >
> > > I have WITHOUT_NETLINK_SUPPORT= in my src.conf.
> > >
> >
> > Ah, my error.  The failure occurs while building the kernel, so I fixed
> > Subject accordingly.
> >
> 
> OK, this is another INET6 error.  I don't have INET6 enabled.
> 
> At line 1280 we have:
> #ifdef INET6
> int if_flags = if_getflags(ifp);
> #endif
> 
> and if_flags is used at line 1315 without checking whether INET6 is
> defined.
> 
> if_flags seems to be totally redundant, since the code at line 1315 will
> invoke if_getflags(ifp) if !(if_flags & IFF_UP) is true.
I wish it was true. The case here is that interface flags can change after 
adding the address, as many interface drivers silently bring the interface up 
upon the first address addition. Please see 
https://cgit.freebsd.org/src/commit/sys/netinet6?id=a77facd27368f618520d25391cfce11149879a41
 description for a more detailed explanation.
> 
> --
> Gary Jennejohn
> 
> 

/Alexander


Re: Error building kernel in current

2023-06-02 Thread Gary Jennejohn
On Fri, 2 Jun 2023 09:59:40 +
Gary Jennejohn  wrote:

> On Fri, 2 Jun 2023 09:56:44 +
> Gary Jennejohn  wrote:
>
> > Error building kernel in current:
> >
> > --
> > >>> stage 3.1: building everything
> > --
> > /usr/src/sys/netlink/route/iface.c:1315:22: error: use of undeclared
> > identifier 'if_flags'
> > if (error == 0 && !(if_flags & IFF_UP) && (if_getflags(ifp) & 
> > IFF_UP))
> > ^
> > 1 error generated.
> > --- iface.o ---
> > *** [iface.o] Error code 1
> >
> > My source tree was updated just a few minutes ago and I didn't see any
> > recent changes to iface.c.
> >
> > I have WITHOUT_NETLINK_SUPPORT= in my src.conf.
> >
>
> Ah, my error.  The failure occurs while building the kernel, so I fixed
> Subject accordingly.
>

OK, this is another INET6 error.  I don't have INET6 enabled.

At line 1280 we have:
#ifdef INET6
int if_flags = if_getflags(ifp);
#endif

and if_flags is used at line 1315 without checking whether INET6 is
defined.

if_flags seems to be totally redundant, since the code at line 1315 will
invoke if_getflags(ifp) if !(if_flags & IFF_UP) is true.

--
Gary Jennejohn



Re: Error building kernel in current

2023-06-02 Thread Gary Jennejohn
On Fri, 2 Jun 2023 09:56:44 +
Gary Jennejohn  wrote:

> Error building kernel in current:
>
> --
> >>> stage 3.1: building everything
> --
> /usr/src/sys/netlink/route/iface.c:1315:22: error: use of undeclared
> identifier 'if_flags'
> if (error == 0 && !(if_flags & IFF_UP) && (if_getflags(ifp) & IFF_UP))
> ^
> 1 error generated.
> --- iface.o ---
> *** [iface.o] Error code 1
>
> My source tree was updated just a few minutes ago and I didn't see any
> recent changes to iface.c.
>
> I have WITHOUT_NETLINK_SUPPORT= in my src.conf.
>

Ah, my error.  The failure occurs while building the kernel, so I fixed
Subject accordingly.

--
Gary Jennejohn



Re: Error building kernel WITH_META_MODE=yes

2016-06-17 Thread Renato Botelho
> On Jun 17, 2016, at 15:38, Renato Botelho  wrote:
> 
>> On Jun 17, 2016, at 15:36, Bryan Drewery  wrote:
>> 
>> On 6/17/2016 10:28 AM, Renato Botelho wrote:
>>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/ia32_genassym.o
>>> In file included from :312:
>>> :4:10: fatal error: 'opt_global.h' file not found
>>> #include "opt_global.h"
>>>^
>>> 1 error generated.
>>> *** [ia32_genassym.o] Error code 1
>>> 
>>> bmake[2]: stopped in /usr/obj/usr/src/sys/GENERIC-NODEBUG
>> 
>> There's a handful of genassym files that are lacking opt_global.h as a
>> dependency.  This is more of a FAST_DEPEND failure.  It's interesting it
>> is only now coming up.
> 
> I moved /usr/obj to other place and did a buildkernel without meta mode and 
> without any option in src.conf and it worked.
> 
> Now after I got the system updated (it was a fresh install of ALPHA2), I’m 
> starting to build it again with meta mode and all desired options. Lets see 
> what happens this time.

After that I managed to build everything using the same src*.conf, no more 
problems so far.

--
Renato Botelho



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Error building kernel WITH_META_MODE=yes

2016-06-17 Thread Renato Botelho
> On Jun 17, 2016, at 15:36, Bryan Drewery  wrote:
> 
> On 6/17/2016 10:28 AM, Renato Botelho wrote:
>> Building /usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/ia32_genassym.o
>> In file included from :312:
>> :4:10: fatal error: 'opt_global.h' file not found
>> #include "opt_global.h"
>> ^
>> 1 error generated.
>> *** [ia32_genassym.o] Error code 1
>> 
>> bmake[2]: stopped in /usr/obj/usr/src/sys/GENERIC-NODEBUG
> 
> There's a handful of genassym files that are lacking opt_global.h as a
> dependency.  This is more of a FAST_DEPEND failure.  It's interesting it
> is only now coming up.

I moved /usr/obj to other place and did a buildkernel without meta mode and 
without any option in src.conf and it worked.

Now after I got the system updated (it was a fresh install of ALPHA2), I’m 
starting to build it again with meta mode and all desired options. Lets see 
what happens this time.

--
Renato Botelho



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Error building kernel WITH_META_MODE=yes

2016-06-17 Thread Bryan Drewery
On 6/17/2016 10:28 AM, Renato Botelho wrote:
> Building /usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/ia32_genassym.o
> In file included from :312:
> :4:10: fatal error: 'opt_global.h' file not found
> #include "opt_global.h"
>  ^
> 1 error generated.
> *** [ia32_genassym.o] Error code 1
> 
> bmake[2]: stopped in /usr/obj/usr/src/sys/GENERIC-NODEBUG

There's a handful of genassym files that are lacking opt_global.h as a
dependency.  This is more of a FAST_DEPEND failure.  It's interesting it
is only now coming up.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Error building kernel WITH_META_MODE=yes

2016-06-17 Thread Renato Botelho
Here is relevant data from my system, in case anyone has idea about what could 
be wrong:

/etc/src.conf:
WITH_CCACHE_BUILD=yes
WITH_SYSTEM_COMPILER=yes

WITHOUT_EE=yes
WITHOUT_FLOPPY=yes
WITHOUT_HAST=yes
WITHOUT_IPFILTER=yes
WITHOUT_IPFW=yes
WITHOUT_ISCSI=yes
WITHOUT_KERBEROS=yes
WITHOUT_LPR=yes
WITHOUT_MAIL=yes
WITHOUT_PC_SYSINSTALL=yes
WITHOUT_PPP=yes
WITHOUT_QUOTAS=yes
WITHOUT_SVNLITE=yes
WITHOUT_TESTS=yes
WITHOUT_UNBOUND=yes

/etc/src-env.conf:
WITH_META_MODE=yes

/etc/make.conf:
KERNCONF=GENERIC-NODEBUG

And here is the error I got trying to build kernel:

===> vxge (all)
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxgehal-blockpool.o
ERROR: vxgehal-blockpool.c: sou vxge_hal_mrpcim_reg_t has too many members: 
1911 > 1023
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxgehal-ring.o
ERROR: vxgehal-ring.c: sou vxge_hal_mrpcim_reg_t has too many members: 1911 > 
1023
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxgehal-virtualpath.o
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7313:38: 
warning: equality comparison with extraneous parentheses 
[-Wparentheses-equality]
(hldev->header.config.intr_mode ==
 ~~~^~
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7313:38: 
note: remove extraneous parentheses around the comparison to silence this 
warning
(hldev->header.config.intr_mode ==
~   ^
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7313:38: 
note: use '=' to turn this equality comparison into an assignment
(hldev->header.config.intr_mode ==
^~
=
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7386:38: 
warning: equality comparison with extraneous parentheses 
[-Wparentheses-equality]
(hldev->header.config.intr_mode ==
 ~~~^~
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7386:38: 
note: remove extraneous parentheses around the comparison to silence this 
warning
(hldev->header.config.intr_mode ==
~   ^
/usr/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-virtualpath.c:7386:38: 
note: use '=' to turn this equality comparison into an assignment
(hldev->header.config.intr_mode ==
^~
=
2 warnings generated.
ERROR: vxgehal-virtualpath.c: sou vxge_hal_mrpcim_reg_t has too many members: 
1911 > 1023
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxge.ko.full
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxge.ko.debug
Building 
/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/modules/usr/src/sys/modules/vxge/vxge.ko
===> wb (all)
===> wbwd (all)
===> wi (all)
===> wlan (all)
===> wlan_acl (all)
===> wlan_amrr (all)
===> wlan_ccmp (all)
===> wlan_rssadapt (all)
===> wlan_tkip (all)
===> wlan_wep (all)
===> wlan_xauth (all)
===> wpi (all)
===> wpifw (all)
===> x86bios (all)
===> xe (all)
===> xl (all)
===> zfs (all)
===> zlib (all)
Building /usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/ia32_genassym.o
In file included from :312:
:4:10: fatal error: 'opt_global.h' file not found
#include "opt_global.h"
 ^
1 error generated.
*** [ia32_genassym.o] Error code 1

bmake[2]: stopped in /usr/obj/usr/src/sys/GENERIC-NODEBUG
.ERROR_TARGET='ia32_genassym.o'
.ERROR_META_FILE='/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG/ia32_genassym.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose 
curdirOk=yes'
.CURDIR='/usr/obj/usr/src/sys/GENERIC-NODEBUG'
.MAKE='/usr/obj/usr/src/make.amd64/bmake'
.OBJDIR='/usr/obj/usr/obj/usr/src/sys/GENERIC-NODEBUG'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='amd64'
MACHINE_ARCH='amd64'
MAKEOBJDIRPREFIX='/usr/obj'
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20160606'
PATH='/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src'
OBJTOP='/usr/obj/usr/src'
.MAKE.MAKEFILES='/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env.mk 
/usr/src/share/mk/src.sys.env.mk /etc/src-env.conf 
/usr/src/share/mk/bsd.mkopt.mk /etc/make.conf /usr/src/share/mk/local.sys.mk 
/usr/src/share/mk/src.sys.mk /etc/src.conf 
/usr/obj/usr/src/sys/GENERIC-NODEBUG/Makefile /usr/src/sys/conf/kern.pre.mk 
/usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.opts.mk 
/usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/bsd.compiler.mk 
/usr/src/share/mk/bsd.compiler.mk 

Error building kernel in 9.0-BETA3: use of uninitialized variable in ipfw

2011-10-17 Thread Brett Glass
Just tried to build a new kernel in 9.0-BETA3 with the IPFIREWALL 
option, and found that the build halts with a compiler error. The 
error occurs at netinet/ipfw/ip_fw_pfil.c, line 185, where the 
compiler complains that the variable len is used before 
intialization. Problem occurs on both i386 and amd64 platforms. 
Sample kernel config follows:


cpu HAMMER
ident   BETA

#makeoptionsDEBUG=-g# Build kernel with gdb(1) 
debug symbols


options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
#optionsINET6   # IPv6 communications protocols
#optionsSCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
#optionsUFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on 
big directories

#optionsUFS_GJOURNAL# Enable gjournal-based UFS journaling
#optionsMD_ROOT # MD is a potential root device
#optionsNFSCL   # New Network Filesystem Client
#optionsNFSD# New Network Filesystem Server
#optionsNFSLOCKD# Network Lock Manager
#optionsNFS_ROOT# NFS usable as /, requires NFSCL
#optionsMSDOSFS # MSDOS Filesystem
#optionsCD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem 
(requires PSEUDOFS)

options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
#optionsCOMPAT_FREEBSD32# Compatible with i386 binaries
#optionsCOMPAT_FREEBSD4 # Compatible with FreeBSD4
#optionsCOMPAT_FREEBSD5 # Compatible with FreeBSD5
#optionsCOMPAT_FREEBSD6 # Compatible with FreeBSD6
#optionsCOMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
#optionsKTRACE  # ktrace(1) support
#optionsSTACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B 
real-time extensions
options PRINTF_BUFR_SIZE=128# Prevent printf output 
being interspersed.

options KBD_INSTALL_CDEV# install a CDEV entry in /dev
#optionsHWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
#optionsAUDIT   # Security event auditing
#optionsMAC # TrustedBSD MAC Framework
##options   KDTRACE_FRAME   # Ensure frames are compiled in
##options   KDTRACE_HOOKS   # Kernel DTrace hooks
#optionsINCLUDE_CONFIG_FILE # Include this file in kernel

# Debugging for use in -current
#optionsKDB # Enable kernel debugger support.
#optionsDDB # Support DDB.
#optionsGDB # Support remote GDB.
#optionsDEADLKRES   # Enable the deadlock resolver
#optionsINVARIANTS  # Enable calls of extra sanity checking
#optionsINVARIANT_SUPPORT   # Extra sanity checks of 
internal structures, required by IN

VARIANTS
#optionsWITNESS # Enable checks to detect 
deadlocks and cycles
#optionsWITNESS_SKIPSPIN# Don't run witness on 
spinlocks for speed

#optionsMALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones

# Make an SMP-capable kernel by default
options SMP # Symmetric MultiProcessor Kernel

# CPU frequency control
device  cpufreq

# Bus support.
device  acpi
device  pci

# Floppy drives
#device fdc

# ATA controllers
device  ahci# AHCI-compatible SATA controllers
device  ata # Legacy ATA/SATA controllers
options ATA_CAM # Handle legacy controllers with CAM
options ATA_STATIC_ID   # Static device numbering
#device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA
#device siis# SiliconImage SiI3124/SiI3132/SiI3531 SATA

# SCSI Controllers
#device ahc # AHA2940 and onboard AIC7xxx devices
#optionsAHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.

error building kernel: nfs_clvfsops.o: In function `nfs_mount':, nfs_clvfsops.c:(.text+0x1638): undefined reference to `nfs_diskless_valid'

2011-04-26 Thread O. Hartmann
Since today's source (FreeBSD 9.0-CURRENT/amd64 (source is: Revision: 
221060)  update I get the follwoing error while building the kernel 
(options NFSD/options NFSCL instead of options NFSSERVER/options NFSCLIENT):


cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=native 
-std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-W issing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys 
-I/usr/src/s s/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --par m large-function-growth=1000 
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-ss 3  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror 
 vers.c

linking kernel
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1638): undefined reference to `nfs_diskless_valid'
nfs_clvfsops.c:(.text+0x1652): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1658): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1689): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x16d1): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1712): undefined reference to `nfsv3_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x171b): more undefined references 
to `nfsv3_diskless' follow

nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1e19): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e2a): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e31): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e3d): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e44): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e4a): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e50): undefined reference to `nfs_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1e57): more undefined references 
to `nfs_diskless' follow

nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1e65): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e6b): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e73): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e79): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e80): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e87): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e8e): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e94): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e9a): undefined reference to `nfs_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ea0): more undefined references 
to `nfs_diskless' follow

nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1eb3): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ebd): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ec4): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ecb): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ed2): undefined reference to `nfsv3_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ed9): more undefined references 
to `nfsv3_diskless' follow

nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1f18): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f1e): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f33): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f3a): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f4b): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f52): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f5e): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f6a): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f71): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f78): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f83): undefined reference to `nfs_diskless_valid'
nfs_clvfsops.c:(.text+0x1fcc): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1fd3): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1fd9): undefined reference to `nfsv3_diskless'
nfs_clvfsops.c:(.text+0x20ae): undefined reference to `nfsv3_diskless'
nfs_clvfsops.o:(.data+0x1f8): undefined reference to `nfsv3_diskless'
nfs_clvfsops.o:(.data+0x258): undefined reference to `nfsv3_diskless'
nfs_clvfsops.o:(.data+0x2b8): undefined reference to `nfs_diskless_valid'
*** Error code 1


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: error building kernel: nfs_clvfsops.o: In function `nfs_mount':, nfs_clvfsops.c:(.text+0x1638): undefined reference to `nfs_diskless_valid'

2011-04-26 Thread Rick Macklem
 Since today's source (FreeBSD 9.0-CURRENT/amd64 (source is: Revision:
 221060) update I get the follwoing error while building the kernel
 (options NFSD/options NFSCL instead of options NFSSERVER/options
 NFSCLIENT):
 
 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=native
 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -W issing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
 -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
 -I/usr/src/s s/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
 -include opt_global.h -fno-common -finline-limit=8000 --param
 inline-unit-growth=100 --par m large-function-growth=1000
 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-ss 3 -msoft-float
 -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
 -Werror
 vers.c
 linking kernel
 nfs_clvfsops.o: In function `nfs_mount':
 nfs_clvfsops.c:(.text+0x1638): undefined reference to
 `nfs_diskless_valid'
 nfs_clvfsops.c:(.text+0x1652): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1658): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1689): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x16d1): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1712): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x171b): more undefined
 references
 to `nfsv3_diskless' follow
 nfs_clvfsops.o: In function `nfs_mount':
 nfs_clvfsops.c:(.text+0x1e19): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e2a): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1e31): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e3d): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e44): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e4a): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e50): undefined reference to `nfs_diskless'
 nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1e57): more undefined
 references
 to `nfs_diskless' follow
 nfs_clvfsops.o: In function `nfs_mount':
 nfs_clvfsops.c:(.text+0x1e65): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1e6b): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1e73): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1e79): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1e80): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e87): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e8e): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e94): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1e9a): undefined reference to `nfs_diskless'
 nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ea0): more undefined
 references
 to `nfs_diskless' follow
 nfs_clvfsops.o: In function `nfs_mount':
 nfs_clvfsops.c:(.text+0x1eb3): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1ebd): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1ec4): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1ecb): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1ed2): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ed9): more undefined
 references
 to `nfsv3_diskless' follow
 nfs_clvfsops.o: In function `nfs_mount':
 nfs_clvfsops.c:(.text+0x1f18): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1f1e): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1f33): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1f3a): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1f4b): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1f52): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1f5e): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1f6a): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1f71): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1f78): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1f83): undefined reference to
 `nfs_diskless_valid'
 nfs_clvfsops.c:(.text+0x1fcc): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x1fd3): undefined reference to `nfs_diskless'
 nfs_clvfsops.c:(.text+0x1fd9): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.c:(.text+0x20ae): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.o:(.data+0x1f8): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.o:(.data+0x258): undefined reference to `nfsv3_diskless'
 nfs_clvfsops.o:(.data+0x2b8): undefined reference to
 `nfs_diskless_valid'
 *** Error code 1
 
Oops, you'll have to add options NFS_ROOT to your kernel config until
I commit a fix.

Thanks for spotting it, rick
ps: And a fresh config KERNEL followed by a build. I suspect you already
did that.

Heads up: was Re: error building kernel: nfs_clvfsops.o: In function `nfs_mount':, nfs_clvfsops.c:(.text+0x1638): undefined reference to `nfs_diskless_valid'

2011-04-26 Thread Rick Macklem
  Since today's source (FreeBSD 9.0-CURRENT/amd64 (source is:
  Revision:
  221060) update I get the follwoing error while building the kernel
  (options NFSD/options NFSCL instead of options NFSSERVER/options
  NFSCLIENT):
 
  cc -c -O2 -frename-registers -pipe -fno-strict-aliasing
  -march=native
  -std=c99 -Wall -Wredundant-decls -Wnested-externs
  -Wstrict-prototypes
  -W issing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
  -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
  -I/usr/src/s s/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
  -include opt_global.h -fno-common -finline-limit=8000 --param
  inline-unit-growth=100 --par m large-function-growth=1000
  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-ss 3 -msoft-float
  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
  -Werror
  vers.c
  linking kernel
  nfs_clvfsops.o: In function `nfs_mount':
  nfs_clvfsops.c:(.text+0x1638): undefined reference to
  `nfs_diskless_valid'
  nfs_clvfsops.c:(.text+0x1652): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1658): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1689): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x16d1): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1712): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x171b): more undefined
  references
  to `nfsv3_diskless' follow
  nfs_clvfsops.o: In function `nfs_mount':
  nfs_clvfsops.c:(.text+0x1e19): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e2a): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1e31): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e3d): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e44): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e4a): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e50): undefined reference to `nfs_diskless'
  nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1e57): more undefined
  references
  to `nfs_diskless' follow
  nfs_clvfsops.o: In function `nfs_mount':
  nfs_clvfsops.c:(.text+0x1e65): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1e6b): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1e73): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1e79): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1e80): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e87): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e8e): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e94): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1e9a): undefined reference to `nfs_diskless'
  nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ea0): more undefined
  references
  to `nfs_diskless' follow
  nfs_clvfsops.o: In function `nfs_mount':
  nfs_clvfsops.c:(.text+0x1eb3): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1ebd): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1ec4): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1ecb): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1ed2): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ed9): more undefined
  references
  to `nfsv3_diskless' follow
  nfs_clvfsops.o: In function `nfs_mount':
  nfs_clvfsops.c:(.text+0x1f18): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1f1e): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1f33): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1f3a): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1f4b): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1f52): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1f5e): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1f6a): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1f71): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1f78): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1f83): undefined reference to
  `nfs_diskless_valid'
  nfs_clvfsops.c:(.text+0x1fcc): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x1fd3): undefined reference to `nfs_diskless'
  nfs_clvfsops.c:(.text+0x1fd9): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.c:(.text+0x20ae): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.o:(.data+0x1f8): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.o:(.data+0x258): undefined reference to
  `nfsv3_diskless'
  nfs_clvfsops.o:(.data+0x2b8): undefined reference to
  `nfs_diskless_valid'
  *** Error code 1
 
 Oops, you'll have to add options NFS_ROOT to your kernel config
 until
 I commit a fix.
 

Re: Heads up: was Re: error building kernel: nfs_clvfsops.o: In function `nfs_mount':, nfs_clvfsops.c:(.text+0x1638): undefined reference to `nfs_diskless_valid'

2011-04-26 Thread O. Hartmann

On 04/26/11 15:54, Rick Macklem wrote:

Since today's source (FreeBSD 9.0-CURRENT/amd64 (source is:
Revision:
221060) update I get the follwoing error while building the kernel
(options NFSD/options NFSCL instead of options NFSSERVER/options
NFSCLIENT):

cc -c -O2 -frename-registers -pipe -fno-strict-aliasing
-march=native
-std=c99 -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes
-W issing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys
-I/usr/src/s s/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --par m large-function-growth=1000
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-ss 3 -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-Werror
vers.c
linking kernel
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1638): undefined reference to
`nfs_diskless_valid'
nfs_clvfsops.c:(.text+0x1652): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1658): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1689): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x16d1): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1712): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x171b): more undefined
references
to `nfsv3_diskless' follow
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1e19): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e2a): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e31): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e3d): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e44): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e4a): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e50): undefined reference to `nfs_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1e57): more undefined
references
to `nfs_diskless' follow
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1e65): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e6b): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e73): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e79): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1e80): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e87): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e8e): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e94): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1e9a): undefined reference to `nfs_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ea0): more undefined
references
to `nfs_diskless' follow
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1eb3): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ebd): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ec4): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ecb): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1ed2): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.o:nfs_clvfsops.c:(.text+0x1ed9): more undefined
references
to `nfsv3_diskless' follow
nfs_clvfsops.o: In function `nfs_mount':
nfs_clvfsops.c:(.text+0x1f18): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f1e): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f33): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f3a): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f4b): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f52): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f5e): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f6a): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f71): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1f78): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1f83): undefined reference to
`nfs_diskless_valid'
nfs_clvfsops.c:(.text+0x1fcc): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x1fd3): undefined reference to `nfs_diskless'
nfs_clvfsops.c:(.text+0x1fd9): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.c:(.text+0x20ae): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.o:(.data+0x1f8): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.o:(.data+0x258): undefined reference to
`nfsv3_diskless'
nfs_clvfsops.o:(.data+0x2b8): undefined reference to
`nfs_diskless_valid'
*** Error code 1


Oops, you'll have to add options NFS_ROOT to your kernel config
until
I commit a fix.


This should be fixed by r221066.

You will need to do a fresh config KERNEL etc after upgrading
past r221032. (I should have sent an email w.r.t. this yesterday,
sorry.)

rick


I did 

error building kernel

2001-07-03 Thread Ilya

I just cvsuped sources for current, was able to build world succesfully
but kernel build failes at this point:

linux_sysent.c:21: sizeof applied to an incomplete type
linux_sysent.c:21: warning: built-in function 'exit' used without
declaration
linux_sysent.c:21: warning: cast discards qualifiers from pointer target
type
Error code 1

etc
ive tried to add LINUX_COMPAT to my kernel, but got same error.
there is no linux mentioning in my kernel config. can some one tell me whats
wrong?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



error building kernel

1999-04-19 Thread Kenneth Wayne Culver
I followed the instructions about NEXUS to rebuild my kernel, and it
now it won't compile. It gets all the way through the compile, and then
gives these errors.

generating linker set emulation glue for ELF
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing
-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
-ansi  -no
stdinc -I- -I. -I../.. -I../../../include  -DKERNEL -DVM_STACK -include
opt_glob
al.h -elf  setdef0.c
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing
-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
-ansi  -no
stdinc -I- -I. -I../.. -I../../../include  -DKERNEL -DVM_STACK -include
opt_glob
al.h -elf  vnode_if.c
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing
-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
-ansi  -no
stdinc -I- -I. -I../.. -I../../../include  -DKERNEL -DVM_STACK -include
opt_glob
al.h -elf  ioconf.c
ioconf.c:108: warning: `psm0_count' redefined
ioconf.c:68: warning: this is the location of the previous definition
ioconf.c:102: redefinition of `psm0_resources'
ioconf.c:64: `psm0_resources'
ioconf.c:64: `psm0_resources' previously defined here
ioconf.c:105: warning: excess elements in array initializer after
`psm0_resource
s'
ioconf.c:106: warning: excess elements in array initializer after
`psm0_resource
s'
*** Error code 1

Stop.




To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message



Re: error building kernel

1999-04-19 Thread Peter Wemm
Kenneth Wayne Culver wrote:
 I followed the instructions about NEXUS to rebuild my kernel, and it
 now it won't compile. It gets all the way through the compile, and then
 gives these errors.

I'll bet you've got two 'psm0' lines in the config file..

All that config is doing now is basically compiling a table of what's in
your config file and saving that for the probe code to use.  Yes, It should
probably check for duplicates.. :-)

 al.h -elf  ioconf.c
 ioconf.c:108: warning: `psm0_count' redefined
 ioconf.c:68: warning: this is the location of the previous definition
 ioconf.c:102: redefinition of `psm0_resources'
 ioconf.c:64: `psm0_resources'
 ioconf.c:64: `psm0_resources' previously defined here
 ioconf.c:105: warning: excess elements in array initializer after
 `psm0_resource
 s'
 ioconf.c:106: warning: excess elements in array initializer after
 `psm0_resource
 s'

Cheers,
-Peter



To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message



Re: error building kernel

1999-04-19 Thread Warner Losh
In message 19990419143825.13fe01...@spinner.netplex.com.au Peter Wemm writes:
: I'll bet you've got two 'psm0' lines in the config file..

I got the same error when I had two psm devices in my kernel.

Warner


To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message