[CUWiN-Dev] nightly build errors

Bill Comisky bcomisky at pobox.com
Mon Jul 11 00:41:25 CDT 2005


I've had a couple build errors with CUWiN rev 3351.  I got this error 
while building an ISO image with the netbsd-current dated 06-15-2005 with 
the in_getifa-patch applied.. the warnings look the same as what you 
described as the new 'type-cast discards the "const-ness" of an 
expression' behavior:

#   compile  cuw_pc/if_txp.o
/home/bcomisky/cuwin/netbsd/build/T/bin/i386--netbsdelf-gcc -ffreestanding -Os -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/arch -I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys -nostdinc -DMALLOC_NOINLINE -DALTQ_CQB -DPCI_BUS_FIXUP -DPCI_INTR_FIXUP -DATW_DEBUG -DDIAGNOSTIC -DRTW_DEBUG -DWI_DEBUG -DWI_RING_DEBUG -DIEEE80211_DEBUG_REFCNT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dist/ipf -c /home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_download_fw':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:460: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:475: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_download_fw_section':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:549: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_rx_reclaim':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:699: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_rxbuf_reclaim':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:840: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_alloc_rings':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:1121: warning: cast discards qualifiers from pointer target type
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c: In function `txp_start':
/home/bcomisky/cuwin/netbsd/current.06-15-2005/src/sys/dev/pci/if_txp.c:1470: error: structure has no member named `sc_ethercom'

*** Failed target:  if_txp.o

So I tried a clean rebuild after 'cvs up -dP' on the same source.  Then I 
got this error when building an upgrade tarball:

#   compile  cuw_45x1/rtw.o
/home/bcomisky/cuwin/netbsd/build/T/bin/i386--netbsdelf-gcc -ffreestanding -g -Os -mcpu=i486 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/arch -I/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys -nostdinc -DTIMER_FREQ=1189200 -DMALLOC_NOINLINE -DLKM -DDEBUG -DATW_DEBUG -DDIAGNOSTIC -DRTW_DEBUG -DWI_DEBUG -DWI_RING_DEBUG -DIEEE80211_DEBUG_REFCNT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dist/ipf -c /home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dev/ic/rtw.c
/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dev/ic/rtw.c: In function `rtw_attach':
/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dev/ic/rtw.c:4079: error: `ic' undeclared (first use in this function)
/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dev/ic/rtw.c:4079: error: (Each undeclared identifier is reported only once
/home/bcomisky/cuwin/netbsd/current.07-10-2005/src/sys/dev/ic/rtw.c:4079: error: for each function it appears in.)

*** Failed target:  rtw.o

I tried a quick fix (see attached patch to rtw.c) and the upgrade tarball 
built.. I'll check in the morning and see if the nightly ISO and flash 
images build OK.

bill

--
Bill Comisky
bcomisky at pobox.com
-------------- next part --------------
Index: rtw.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/rtw.c,v
retrieving revision 1.52
diff -r1.52 rtw.c
4079c4079
< 	ieee80211_announce(ic);
---
> 	ieee80211_announce(&sc->sc_ic);


More information about the CU-Wireless-Dev mailing list