HERMES Driver Compile Error
ieee ship
ieeeship
Sun Jul 24 09:52:08 PDT 2005
Goal:
use WPA with ndiswrapper
Issue:
Comipling wpa_suplicant Errors out when compiling the
Hermes Driver "driver_hermes.c". I've included the
pertainent info below.
If someone could review and knows a woraround or fix,
I would appreceiate the assistance.
Regards,
ieeeship at yahoo.com
===============================================
--> Attempting to compile either version:
wpa_supplicant-0.4.3 or wpa_supplicant-0.3.9
--> Hermes Driver and Headers from:
wl_lkm_722_abg.tar.gz
--> compile session Error:
# make CC=gcc
gcc -MMD -O2 -Wall -g -I../driver/modules -I../utils
-I../hostapd -I/usr/local/openssl/include
-I../wlaa/hcf -I../../include -I../../include/hcf
-I../wlaa/include/hcf -I../wlaa/include/wireless
-DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WEXT
-DCONFIG_DRIVER_HERMES -DCONFIG_DRIVER_ATMEL
-DCONFIG_DRIVER_NDISWRAPPER -DCONFIG_DRIVER_BROADCOM
-DCONFIG_DRIVER_WIRED -DEAP_TLS -DEAP_PEAP -DEAP_TTLS
-DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP
-DEAP_LEAP -DEAP_TLV -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS
-DPKCS12_FUNCS -DCONFIG_SMARTCARD
-DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE -c
-o driver_hermes.o driver_hermes.c
\driver_hermes.c: In function
???wpa_driver_hermes_associate???:
driver_hermes.c:454: warning: passing argument 1 of
???wpa_driver_wext_set_freq??? discards qualifiers
from pointer target type
driver_hermes.c:456: warning: passing argument 1 of
???wpa_driver_wext_set_ssid??? discards qualifiers
from pointer target type
driver_hermes.c:456: warning: pointer targets in
passing argument 2 of ???wpa_driver_wext_set_ssid???
differ in signedness
driver_hermes.c:458: warning: passing argument 1 of
???wpa_driver_wext_set_bssid??? discards qualifiers
from pointer target type
driver_hermes.c:458: warning: pointer targets in
passing argument 2 of ???wpa_driver_wext_set_bssid???
differ in signedness
driver_hermes.c: In function
???wpa_driver_hermes_scan???:
driver_hermes.c:475: warning: passing argument 1 of
???wpa_driver_wext_scan??? discards qualifiers from
pointer target type
driver_hermes.c:475: warning: passing argument 3 of
???wpa_driver_wext_scan??? makes integer from pointer
without a cast
driver_hermes.c:475: error: too many arguments to
function ???wpa_driver_wext_scan???
driver_hermes.c: At top level:
driver_hermes.c:485: warning: initialization from
incompatible pointer type
driver_hermes.c:486: warning: initialization from
incompatible pointer type
driver_hermes.c:487: error: unknown field
???events_init??? specified in initializer
driver_hermes.c:487: error:
???wpa_driver_wext_events_init??? undeclared here (not
in a function)
driver_hermes.c:488: error: unknown field
???events_deinit??? specified in initializer
driver_hermes.c:488: error:
???wpa_driver_wext_events_deinit??? undeclared here
(not in a function)
driver_hermes.c:489: warning: initialization from
incompatible pointer type
driver_hermes.c:490: warning: initialization from
incompatible pointer type
driver_hermes.c:491: warning: initialization from
incompatible pointer type
driver_hermes.c:493: warning: initialization from
incompatible pointer type
driver_hermes.c:494: warning: initialization from
incompatible pointer type
driver_hermes.c:495: warning: initialization from
incompatible pointer type
make: *** [driver_hermes.o] Error 1
--> .config file (modified defconfig):
# Example wpa_supplicant build time configuration
#
# This file lists the configuration options that are
used when building the
# hostapd binary. All lines starting with # are
ignored. Configuration option
# lines must be commented out complete, if they are
not to be included, i.e.,
# just setting VARIABLE=n is not disabling that
variable.
#
# This file is included in Makefile, so variables like
CFLAGS and LIBS can also
# be modified from here. In most cass, these lines
should use += in order not
# to override previous values of the variables.
# Uncomment following two lines and fix the paths if
you have installed openssl
# in non-default location
CFLAGS += -I/usr/local/openssl/include
LIBS += -L/usr/local/openssl/lib
# Example configuration for various cross-compilation
platforms
#### sveasoft (e.g., for Linksys WRT54G)
######################################
#CC=mipsel-uclibc-gcc
#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
#CFLAGS += -Os
#CPPFLAGS += -I../src/include
-I../../src/router/openssl/include
#LIBS += -L/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib
-lssl
###############################################################################
#### openwrt (e.g., for Linksys WRT54G)
#######################################
#CC=mipsel-uclibc-gcc
#CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
#CFLAGS += -Os
#CPPFLAGS=-I../src/include -I../openssl-0.9.7d/include
\
# -I../WRT54GS/release/src/include
#LIBS = -lssl
###############################################################################
# Driver interface for Host AP driver
CONFIG_DRIVER_HOSTAP=y
# Driver interface for Agere driver
CONFIG_DRIVER_HERMES=y
# Change include directories to match with the local
setup
CFLAGS += -I../wlaa/hcf -I../../include
-I../../include/hcf
CFLAGS += -I../wlaa/include/hcf
CFLAGS += -I../wlaa/include/wireless
# Driver interface for madwifi driver
#CONFIG_DRIVER_MADWIFI=y
# Change include directories to match with the local
setup
#CFLAGS += -I../madwifi/wpa
# Driver interface for Prism54 driver
# (Note: Prism54 is not yet supported, i.e., this will
not work as-is and is
# for developers only)
#CONFIG_DRIVER_PRISM54=y
# Driver interface for ndiswrapper
CONFIG_DRIVER_NDISWRAPPER=y
CONFIG_CTRL_IFACE=y
# Driver interface for Atmel driver
CONFIG_DRIVER_ATMEL=y
# Driver interface for Broadcom driver
CONFIG_DRIVER_BROADCOM=y
# Example path for wlioctl.h; change to match your
configuration
#CFLAGS += -I/opt/WRT54GS/release/src/include
# Driver interface for Intel ipw2100/2200 driver
#CONFIG_DRIVER_IPW=y
# Driver interface for generic Linux wireless
extensions
CONFIG_DRIVER_WEXT=y
# Driver interface for FreeBSD net80211 layer (e.g.,
Atheros driver)
#CONFIG_DRIVER_BSD=y
#CFLAGS += -I/usr/local/include
#LIBS += -L/usr/local/lib
# Driver interface for Windows NDIS
#CONFIG_DRIVER_NDIS=y
#CFLAGS += -I/usr/include/w32api/ddk
#LIBS += -L/usr/local/lib
# For native build using mingw
#CONFIG_NATIVE_WINDOWS=y
# Additional directories for cross-compilation on
Linux host for mingw target
#CFLAGS += -I/opt/mingw/mingw32/include/ddk
#LIBS += -L/opt/mingw/mingw32/lib
#CC=mingw32-gcc
# Driver interface for development testing
#CONFIG_DRIVER_TEST=y
# Driver interface for wired Ethernet drivers
CONFIG_DRIVER_WIRED=y
# Enable IEEE 802.1X Supplicant (automatically
included if any EAP method is
# included)
CONFIG_IEEE8021X_EAPOL=y
# EAP-MD5 (automatically included if EAP-TTLS is
enabled)
CONFIG_EAP_MD5=y
# EAP-MSCHAPv2 (automatically included if EAP-PEAP is
enabled)
CONFIG_EAP_MSCHAPV2=y
# EAP-TLS
CONFIG_EAP_TLS=y
# EAL-PEAP
CONFIG_EAP_PEAP=y
# EAP-TTLS
CONFIG_EAP_TTLS=y
# EAP-GTC
CONFIG_EAP_GTC=y
# EAP-OTP
CONFIG_EAP_OTP=y
# EAP-SIM (enable CONFIG_PCSC, if EAP-SIM is used)
#CONFIG_EAP_SIM=y
# EAP-PSK (experimental; this is _not_ needed for
WPA-PSK)
#CONFIG_EAP_PSK=y
# EAP-PAX
#CONFIG_EAP_PAX=y
# LEAP
CONFIG_EAP_LEAP=y
# EAP-AKA (enable CONFIG_PCSC, if EAP-AKA is used)
#CONFIG_EAP_AKA=y
# PKCS#12 (PFX) support (used to read private key and
certificate file from
# a file that usually has extension .p12 or .pfx)
CONFIG_PKCS12=y
# Smartcard support (i.e., private key on a
smartcard), e.g., with openssl
# engine.
CONFIG_SMARTCARD=y
# PC/SC interface for smartcards (USIM, GSM SIM)
# Enable this if EAP-SIM or EAP-AKA is included
#CONFIG_PCSC=y
# Development testing
#CONFIG_EAPOL_TEST=y
# Replace native Linux implementation of packet
sockets with libdnet/libpcap.
# This will be automatically set for non-Linux OS.
#CONFIG_DNET_PCAP=y
# Include control interface for external programs,
e.g, wpa_cli
CONFIG_CTRL_IFACE=y
# Include support for GNU Readline and History
Libraries in wpa_cli.
# When building a wpa_cli binary for distribution,
please note that these
# libraries are licensed under GPL and as such, BSD
license may not apply for
# the resulting binary.
#CONFIG_READLINE=y
# Remove debugging code that is printing out debug
message to stdout.
# This can be used to reduce the size of the
wpa_supplicant considerably
# if debugging code is not needed. The size reduction
can be around 35%
# (e.g., 90 kB).
#CONFIG_NO_STDOUT_DEBUG=y
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Hostap
mailing list