NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
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=gnu99
>-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=i486
>-mtune=pentiumpro -Di386 -I. -I../../../../../common/include
>-I../../../../ar
>ch -I../../../.. -nostdinc -DLKM -DCOMPAT_NDIS -DMAXUSERS=64 -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 initializer
>../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
>builds@wb40:/home/builds/ab/netbsd-5/i386/200908090002Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/XEN3PAE_DOMU
> i386
>
>Any idea why it fails and/or how to solve this ?
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.
christos
Home |
Main Index |
Thread Index |
Old Index