NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: Re: Error compiling ndis_driver_data.h for Broadcom BCM4315



On Oct 27,  8:07pm, joel%carnat.net@localhost (=?windows-1252?Q?Joel_Carnat?=) 
wrote:
-- Subject: RE: Re: Error compiling ndis_driver_data.h for Broadcom BCM4315

| Hello,
| 
| Using the drivers from broadcom the error has changed:
| #   compile  S10/if_ndis.o
| cc -ffreestanding -fno-zero-initialized-in-bss -O2 -std=3Dgnu99 -fno-strict=
| -aliasing -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -=
| Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwri=
| te-strings -Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign -Wno-a=
| ttributes -Wextra -Wno-unused-parameter -Werror -Di386 -I. -I../../../../..=
| /common/include -I../../../../arch -I../../../.. -nostdinc -DCOMPAT_NDIS -D=
| MAXUSERS=3D64 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../co=
| mmon/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/strin=
| g -I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string -I../=
| ../../../dist/ipf -I../../../../external/isc/atheros_hal/dist -I../../../..=
| /external/isc/atheros_hal/ic -I../../../../external/bsd/drm/dist/bsd-core -=
| I../../../../external/bsd/drm/dist/shared-core -I../../../../../common/incl=
| ude -I../../../../external/intel-public/acpica/dist/include -c ../../../../=
| dev/if_ndis/if_
|  ndis.c
| cc1: warnings being treated as errors
| ../../../../dev/if_ndis/if_ndis.c:103: warning: 'struct lkm_table' declared=
|  inside parameter list
| ../../../../dev/if_ndis/if_ndis.c:103: warning: its scope is only this defi=
| nition or declaration, which is probably not what you want
| ../../../../dev/if_ndis/if_ndis.c: In function 'ndisdrv_modevent':
| ../../../../dev/if_ndis/if_ndis.c:158: error: argument 'mod' doesn't match =
| prototype
| ../../../../dev/if_ndis/if_ndis.c:103: error: prototype declaration
| ../../../../dev/if_ndis/if_ndis.c:165: error: 'LKM_E_LOAD' undeclared (firs=
| t use in this function)
| ../../../../dev/if_ndis/if_ndis.c:165: error: (Each undeclared identifier i=
| s reported only once
| ../../../../dev/if_ndis/if_ndis.c:165: error: for each function it appears =
| in.)
| ../../../../dev/if_ndis/if_ndis.c:176: error: 'LKM_E_UNLOAD' undeclared (fi=
| rst use in this function)
| ../../../../dev/if_ndis/if_ndis.c: In function 'ndis_detach':
| ../../../../dev/if_ndis/if_ndis.c:948: warning: passing argument 1 of 'mute=
| x_destroy' from incompatible pointer type
| *** Error code 1
| 
| Stop.
| make: stopped in /home/cvs/src-HEAD/usr/src/sys/arch/i386/compile/S10
| 
| Any idea to solve this error ?
| 

Are you using revision 1.29?

christos`
| Thanks.
|       Jo
| 
| -----Message initial-----
| De: christos%astron.com@localhost
| Envoy=E9: mar. 20-10-2009 21:06
| =C0: netbsd-users%netbsd.org@localhost;=20
| Sujet: Re: Error compiling ndis_driver_data.h for Broadcom BCM4315
| 
| > In article 
<vmime.4addbb64.f00.786a064178c053c%zarafa.tumfatig.net@localhost>,
| > Joel Carnat  <joel%carnat.net@localhost> wrote:
| > >Hello,
| > >
| > >I'm trying to have the wireless interface from my Lenovo S10 recognised
| > >via NDIS.
| > >I grabbed the Windows XP drivers from Lenovo's website, extracted the
| > >archive (from a Windows instance) and grabbed the BCMWL5.INF and
| > >BCMWL5.SYS files.
| > >Then, I ran "ndiscvt -i BCMWL5.INF -s BCMWL5.SYS -o ndis_driver_data.h",=
| 
| > >ran "config S10" and copied the NDIS file into
| > >src/sys/arch/i386/compile/S10/.
| > >
| > >The "make" command failed saying:
| > >#   compile  S10/if_ndis.o
| > >cc -ffreestanding -fno-zero-initialized-in-bss -O2 -std=3Dgnu99
| > >-fno-strict-aliasing -Werror -Wall -Wno-main -Wno-format-zero-length
| > >-Wpointer-arit
| > >h -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual=
| 
| > >-Wwrite-strings -Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sig=
| 
| > >n -Wno-attributes -Wextra -Wno-unused-parameter -Werror -march=3Di486
| > >-mtune=3Dpentiumpro -Di386 -I. -I../../../../../common/include
| > >-I../../../../ar
| > >ch -I../../../.. -nostdinc -DLKM -DCOMPAT_NDIS -DMAXUSERS=3D64 -D_KERNEL=
| 
| > >-D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad
| > >-I..
| > >/../../../lib/libkern/../../../common/lib/libc/string
| > >-I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string
| > >-I../../../../external/
| > >isc/atheros_hal/dist -I../../../../external/isc/atheros_hal/ic
| > >-I../../../../../common/include
| > >-I../../../../external/bsd/drm/dist/bsd-core -I../
| > >.../../../external/bsd/drm/dist/shared-core -I../../../../dist/ipf -c
| > >../../../../dev/if_ndis/if_ndis.c
| > >In file included from ../../../../dev/if_ndis/if_ndis.c:127:
| > >../ndis_driver_data.h:1178: error: excess elements in char array initial=
| izer
| > >../ndis_driver_data.h:1178: error: (near initialization for
| > >'ndis_regvals[377].nc_val')
| > >cc1: warnings being treated as errors
| > >../ndis_driver_data.h:1179: warning: braces around scalar initializer
| > >../ndis_driver_data.h:1179: warning: (near initialization for
| > >'ndis_regvals[377].nc_val[0]')
| > >../ndis_driver_data.h:1179: warning: initialization makes integer from
| > >pointer without a cast
| > >../ndis_driver_data.h:1179: error: initializer element is not computable=
| 
| > >at load time
| > >../ndis_driver_data.h:1179: error: (near initialization for
| > >'ndis_regvals[377].nc_val[0]')
| > >../ndis_driver_data.h:1179: error: excess elements in struct initializer=
| 
| > >../ndis_driver_data.h:1179: error: (near initialization for
| > >'ndis_regvals[377].nc_val')
| > >../ndis_driver_data.h:1179: error: excess elements in struct initializer=
| 
| > >../ndis_driver_data.h:1179: error: (near initialization for
| > >'ndis_regvals[377].nc_val')
| > >../ndis_driver_data.h:1180: warning: braces around scalar initializer
| > >../ndis_driver_data.h:1180: warning: (near initialization for
| > >'ndis_regvals[377].nc_idx')
| > >../ndis_driver_data.h:1180: warning: initialization makes integer from
| > >pointer without a cast
| > >....
| > >
| > >The card is supposed to be :
| > >Broadcom BCM4315, Vendor ID: 14e4, Product ID: 4315
| > >
| > >The compilation was done from a domU running a netbsd-5 instance:
| > >NetBSD pak.tumfatig.net 5.0_STABLE NetBSD 5.0_STABLE (XEN3PAE_DOMU) #0:
| > >Sun Aug  9 04:08:27 PDT 2009=20
| > >builds@wb40:/home/builds/ab/netbsd-5/i386/200908090002Z-obj/home/builds/=
| ab/netb
| > sd-5/src/sys/arch/i386/compile/XEN3PAE_DOMU i386
| > >
| > >Any idea why it fails and/or how to solve this ?
| >=20
| > I tried on head, and I got a different compilation error that I fixed.
| > I am not sure how badly the driver has rotted though.
| >=20
| > christos
| >=20
| >
-- End of excerpt from =?windows-1252?Q?Joel_Carnat?=




Home | Main Index | Thread Index | Old Index