Re: Why is xe building while commented out?

2002-02-27 Thread David O'Brien

On Wed, Feb 27, 2002 at 03:44:03PM +0100, Christopher Sharp wrote:
 * Stephen L. Palmer ([EMAIL PROTECTED]) wrote:
  /usr/src/sys/dev/isp/isp.c: In function `isp_reset':
  /usr/src/sys/dev/isp/isp.c:633: warning: cast discards qualifiers from
  pointer target type
  *** Error code 1
 A small workaround is to change:
 
 -const u_int16_t   *dv_ispfw;  /* ptr to f/w */
 +u_int16_t   *dv_ispfw;  /* ptr to f/w */
 
 in src/sys/dev/isp/ispvar.h:76
 
 I don't know if this is ok but I does at least make the kernel build
 and should not hurt as long as you don't use the isp device

Fixes to make it compile are not desired.  Fixes that are are *FIXES*
are.  If you are unable to understand why dv_ispfw is `const'; just
follow the advice of adding:

makeoptions NO_WERROR=true

to your kernel configuration.

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



Re: Why is xe building while commented out?

2002-02-27 Thread Stephen L. Palmer

On Wed, 27 Feb 2002, David O'Brien wrote:

 Fixes to make it compile are not desired.  Fixes that are are *FIXES*
 are.  If you are unable to understand why dv_ispfw is `const'; just
 follow the advice of adding:

 makeoptions NO_WERROR=true

 to your kernel configuration.


Did that last night.  Ended up with a kernel that blew up on boot, but
from reading, that's what others were getting on UP systems as well.  It
was not urgent for me to rebuild, just trying to get a working kernel with
sound installed.  It can wait a day or three as needed for a stable build,
I've got a good kernel from Feb 08 to run on until then.

FWIW, I agree with your Fixes should fix something ideal.  I'm slowly
getting to the point where I can understand some of the code, but I'm no
kernel hacker yet.  One of these days I'll start testing the waters with
patch submissions, but not until I feel I understand the system a bit
better.

Thanks!

Stephen L. Palmer
[EMAIL PROTECTED]




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



Why is xe building while commented out?

2002-02-26 Thread Stephen L. Palmer

Kernel build on a fresh (26 Feb 2002 - ~15:00 CDT) -current is failing
with an *** Error code 2 in the xe module.  This module is commented out of my
config.  Why would 'make -j4 buildkernel KERNCONF=MIDEARTH' try to build a
driver for a pccard I've commented out of the config?  I don't have any of
the pccard/pcmcia stuff active as this is a desktop system.

Non-SMP if it matters.

Config file, and cut-n-paste of error are attached.


---
Stephen L. Palmer
[EMAIL PROTECTED]

Receipt of this  email does not  entitle you to collect,
use, or sell my personal information for any commercial,
or  non-commercial purposes.   Non-solicited  commercial
emails  sent  to my address will be  billed $500.00  per
offense  for use of  storage space on my  mail  servers,
bandwidth  fees, and personal  administrative  overhead.
You have been warned.


=== netgraph/sync_sr
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/sync_sr/../../../dev/sr/if_sr.c
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/sync_sr/../../../dev/sr/if_sr_isa.c
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/sync_sr/../../../dev/sr/if_sr_pci.c
ld  -d -warn-common -r -d -o ng_sync_sr.kld if_sr.o if_sr_isa.o if_sr_pci.o
ld -Bshareable  -d -warn-common -o ng_sync_sr.ko ng_sync_sr.kld
=== netgraph/tee
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/tee/../../../netgraph/ng_tee.c
ld  -d -warn-common -r -d -o ng_tee.kld ng_tee.o
ld -Bshareable  -d -warn-common -o ng_tee.ko ng_tee.kld
=== netgraph/tty
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/tty/../../../netgraph/ng_tty.c
ld  -d -warn-common -r -d -o ng_tty.kld ng_tty.o
ld -Bshareable  -d -warn-common -o ng_tty.ko ng_tty.kld
=== netgraph/UI
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/UI/../../../netgraph/ng_UI.c
ld  -d -warn-common -r -d -o ng_UI.kld ng_UI.o
ld -Bshareable  -d -warn-common -o ng_UI.ko ng_UI.kld
=== netgraph/vjc
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -DKLD_MODULE -nostdinc -I-   -I. -I@ -I@/dev -I@/../include 
-fno-common  -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -ansi -c 
/usr/src/sys/modules/netgraph/vjc/../../../netgraph/ng_vjc.c
cc -O -pipe  -Wall  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  

Re: Why is xe building while commented out?

2002-02-26 Thread Chris Faulhaber

On Tue, Feb 26, 2002 at 03:28:19PM -0600, Stephen L. Palmer wrote:
 Kernel build on a fresh (26 Feb 2002 - ~15:00 CDT) -current is failing
 with an *** Error code 2 in the xe module.  This module is commented out of my
 config.  Why would 'make -j4 buildkernel KERNCONF=MIDEARTH' try to build a
 driver for a pccard I've commented out of the config?  I don't have any of
 the pccard/pcmcia stuff active as this is a desktop system.
 
 Non-SMP if it matters.
 

All modules are built by default, not just those listed in the
kernel config (which is for the kernel only).  To only build
specific modules, use the MODULES_OVERRIDE option (see NOTES).
And since you are using the -j flag to make, it is quite
possible that the parallel compiles are obscuring the actual
error and that xe is not (necessarily) the problem.

-- 
Chris D. Faulhaber - [EMAIL PROTECTED] - [EMAIL PROTECTED]

FreeBSD: The Power To Serve   -   http://www.FreeBSD.org



msg35345/pgp0.pgp
Description: PGP signature


Re: Why is xe building while commented out?

2002-02-26 Thread Stephen L. Palmer

You know, I've been building -currents off and on since 3.0-current, and
never realized that.  I guess since I usualy start a build and either
background it, or walk away...  I'll play with the MODULES_OVERRIDE
option, and thanks for the pointer.

I gave it another run with out the -j4 option, and it did seem to clarify
what was failing.

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I. -I/usr/src/sys
-I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/../include  -D_KERNEL
-ffreestanding -include opt_global.h -fno-common -elf
-mpreferred-stack-boundary=2 -Werror  /usr/src/sys/dev/isp/isp.c
cc1: warnings being treated as errors
/usr/src/sys/dev/isp/isp.c: In function `isp_reset':
/usr/src/sys/dev/isp/isp.c:633: warning: cast discards qualifiers from
pointer target type
*** Error code 1

Stop in /usr2/obj/usr/src/sys/MIDEARTH.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
root on adam12:/usr/src %

---
Stephen L. Palmer
[EMAIL PROTECTED]


On Tue, 26 Feb 2002, Chris Faulhaber wrote:

 On Tue, Feb 26, 2002 at 03:28:19PM -0600, Stephen L. Palmer wrote:
  Kernel build on a fresh (26 Feb 2002 - ~15:00 CDT) -current is failing
  with an *** Error code 2 in the xe module.  This module is commented out of my
  config.  Why would 'make -j4 buildkernel KERNCONF=MIDEARTH' try to build a
  driver for a pccard I've commented out of the config?  I don't have any of
  the pccard/pcmcia stuff active as this is a desktop system.
 
  Non-SMP if it matters.
 

 All modules are built by default, not just those listed in the
 kernel config (which is for the kernel only).  To only build
 specific modules, use the MODULES_OVERRIDE option (see NOTES).
 And since you are using the -j flag to make, it is quite
 possible that the parallel compiles are obscuring the actual
 error and that xe is not (necessarily) the problem.

 --
 Chris D. Faulhaber - [EMAIL PROTECTED] - [EMAIL PROTECTED]
 
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org



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