Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karma Module not installing #249

Open
elangovarun95 opened this issue Nov 8, 2018 · 5 comments
Open

Karma Module not installing #249

elangovarun95 opened this issue Nov 8, 2018 · 5 comments

Comments

@elangovarun95
Copy link

Karma Module not installing and shows the error below :

Installing...
..DONE..
Makefile:780: recipe for target '../src/drivers/driver_nl80211.o' failed
0ae26b335e35ff8da1a40512206a3fbee8efc132
Archive: hostapd-karma.zip
installing Hostapd/Karma...

is only available from another source
This may mean that the package is missing, has been obsoleted, or
Package libnl-dev is not available, but is referred to by another package.
Reading state information...
Building dependency tree...
Reading package lists...
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Use 'sudo apt autoremove' to remove them.
ruby-binding-of-caller ruby-coffee-script-source
libc-ares2 libhttp-parser2.7.1 libjs-coffeescript libjs-uglify nodejs-doc
The following packages were automatically installed and are no longer required:
hostapd is already the newest version (2:2.6-15ubuntu2.1).
Reading state information...
Building dependency tree...
Reading package lists...
Reading state information...
Building dependency tree...
Reading package lists...
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Use 'sudo apt autoremove' to remove them.
ruby-binding-of-caller ruby-coffee-script-source
libc-ares2 libhttp-parser2.7.1 libjs-coffeescript libjs-uglify nodejs-doc
The following packages were automatically installed and are no longer required:
Reading state information...
Building dependency tree...
Reading package lists...
installing Hostapd/Karma Dependencies...

@jmadden173
Copy link

I am having a similar issue with installing the Karma module. I have tried installing the module through the website then tried to manually install through the terminal but I get the following error when compiling the hostapd-karma-master repo.

../src/crypto/tls_openssl.c: In function ‘tls_init’:
../src/crypto/tls_openssl.c:745:2: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]
  ssl = SSL_CTX_new(TLSv1_method());
  ^~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/ssl.h:15,
                 from ../src/crypto/tls_openssl.c:23:
/usr/include/openssl/ssl.h:1877:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
 ^~~~~~~~~~~~~~~~~~
../src/crypto/tls_openssl.c: In function ‘tls_deinit’:
../src/crypto/tls_openssl.c:783:3: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]
   ERR_remove_state(0);
   ^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/ssl.h:15,
                 from ../src/crypto/tls_openssl.c:23:
/usr/include/openssl/err.h:261:1: note: declared here
 DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
 ^~~~~~~~~~~~~~~~~~
../src/crypto/tls_openssl.c: In function ‘tls_load_ca_der’:
../src/crypto/tls_openssl.c:1285:40: error: dereferencing pointer to incomplete type ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
  lookup = X509_STORE_add_lookup(ssl_ctx->cert_store,
                                        ^~
../src/crypto/tls_openssl.c: In function ‘tls_connection_get_keys’:
../src/crypto/tls_openssl.c:2293:24: error: dereferencing pointer to incomplete type ‘SSL’ {aka ‘struct ssl_st’}
  if (ssl == NULL || ssl->s3 == NULL || ssl->session == NULL)
                        ^~
../src/crypto/tls_openssl.c: In function ‘tls_connection_resumed’:
../src/crypto/tls_openssl.c:2545:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/crypto/tls_openssl.c: At top level:
../src/crypto/tls_openssl.c:2976:1: fatal error: opening dependency file ../src/crypto/tls_openssl.d: Permission denied
 }
 ^
compilation terminated.
make: *** [Makefile:780: ../src/crypto/tls_openssl.o] Error 1

@H4xl0r
Copy link

H4xl0r commented Feb 13, 2020

get my version !

@protocol-AMG
Copy link

get my version !

I'd like to try your version. But where are the modules' source code stored in Fruitywifi? Where should I put your code?

@Walvis-Sudo
Copy link

Hi jmadden173,

were you able to fix it? I have exactly same issue using FruityWifi 2.4 and last 2020 Raspberrian OS..

@matiarman
Copy link

get my version !

I tried and I found the same errror:
installing Hostapd/Karma Dependencies...

Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Nota, seleccionando «gcc-4.7-doc» para la expresión regular «gcc-4.7»
Nota, seleccionando «gcc-4.7-base» para la expresión regular «gcc-4.7»
gcc-4.7-doc ya está en su versión más reciente (4.7.4-1).
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
E: No se ha podido localizar el paquete g++-4.7
E: No se pudo encontrar ningún paquete usando «*» con «g++-4.7»
E: No se pudo encontrar ningún paquete con la expresión regular «g++-4.7»
update-alternatives: error: la ruta alternativa /usr/bin/gcc-4.7 no existe
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
hostapd ya está en su versión más reciente (2:2.7+git20190128+0c1e29f-6+deb10u3).
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
libnl-dev ya está en su versión más reciente (1.1-8).
libnl1 ya está en su versión más reciente (1.1-8).
libssl-dev ya está en su versión más reciente (1.1.1d-0+deb10u6+rpt1).
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.

Getting Hostapd/Karma...

Clonando en 'hostapd-karma'...
remote: Enumerating objects: 511, done.
remote: Counting objects: 100% (511/511), done.
remote: Compressing objects: 100% (439/439), done.
remote: Total 511 (delta 66), reused 511 (delta 66), pack-reused 0
Recibiendo objetos: 100% (511/511), 1.50 MiB | 1.58 MiB/s, listo.
Resolviendo deltas: 100% (66/66), listo.

ADDING: CONFIG_LIBNL32=y / SLL TLS patch)

Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
libnl-dev
Se instalarán los siguientes paquetes NUEVOS:
libnl-3-dev libnl-genl-3-dev
0 actualizados, 2 nuevos se instalarán, 1 para eliminar y 0 no actualizados.
Se necesita descargar 0 B/111 kB de archivos.
Se utilizarán 466 kB de espacio de disco adicional después de esta operación.
(Leyendo la base de datos ... 171722 ficheros o directorios instalados actualmente.)
Desinstalando libnl-dev (1.1-8) ...
Seleccionando el paquete libnl-3-dev:armhf previamente no seleccionado.
(Leyendo la base de datos ... 171662 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../libnl-3-dev_3.4.0-1_armhf.deb ...
Desempaquetando libnl-3-dev:armhf (3.4.0-1) ...
Seleccionando el paquete libnl-genl-3-dev:armhf previamente no seleccionado.
Preparando para desempaquetar .../libnl-genl-3-dev_3.4.0-1_armhf.deb ...
Desempaquetando libnl-genl-3-dev:armhf (3.4.0-1) ...
Configurando libnl-3-dev:armhf (3.4.0-1) ...
Configurando libnl-genl-3-dev:armhf (3.4.0-1) ...
[Patching completed]

Building Hostapd/Karma...

CC main.c
CC config_file.c
CC ../src/ap/hostapd.c
CC ../src/ap/wpa_auth_glue.c
CC ../src/ap/drv_callbacks.c
CC ../src/ap/ap_drv_ops.c
CC ../src/ap/utils.c
CC ../src/ap/authsrv.c
CC ../src/ap/ieee802_1x.c
CC ../src/ap/ap_config.c
CC ../src/ap/ieee802_11_auth.c
CC ../src/ap/sta_info.c
CC ../src/ap/wpa_auth.c
CC ../src/ap/tkip_countermeasures.c
CC ../src/ap/ap_mlme.c
CC ../src/ap/wpa_auth_ie.c
CC ../src/ap/preauth_auth.c
CC ../src/ap/pmksa_cache_auth.c
CC ../src/ap/ieee802_11_shared.c
CC ../src/ap/beacon.c
CC ../src/drivers/drivers.c
CC ../src/utils/eloop.c
CC ../src/utils/common.c
CC ../src/utils/wpa_debug.c
CC ../src/utils/wpabuf.c
CC ../src/utils/os_unix.c
CC ../src/utils/ip_addr.c
CC ../src/common/ieee802_11_common.c
CC ../src/common/wpa_common.c
CC ../src/eapol_auth/eapol_auth_sm.c
CC dump_state.c
CC ../src/eapol_auth/eapol_auth_dump.c
CC ../src/radius/radius.c
CC ../src/radius/radius_client.c
CC ../src/ap/accounting.c
CC ../src/ap/vlan_init.c
CC ctrl_iface.c
CC ../src/ap/ctrl_iface_ap.c
CC ../src/crypto/md5.c
CC ../src/ap/iapp.c
CC ../src/ap/peerkey_auth.c
../src/drivers/driver_hostap.c: In function ‘hostap_init’:
../src/drivers/driver_hostap.c:250:57: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
^~
../src/drivers/driver_hostap.c:250:9: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/drivers/driver_hostap.c:363:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~
In file included from ../src/utils/common.h:18,
from ../src/drivers/driver_hostap.c:19:
../src/utils/os.h:469:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
#define os_snprintf snprintf
../src/drivers/driver_hostap.c:363:2: note: in expansion of macro ‘os_snprintf’
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~~~~~~~~~~
../src/drivers/driver_hostap.c: In function ‘hostap_driver_deinit’:
../src/drivers/driver_hostap.c:363:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~
In file included from ../src/utils/common.h:18,
from ../src/drivers/driver_hostap.c:19:
../src/utils/os.h:469:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
#define os_snprintf snprintf
../src/drivers/driver_hostap.c:363:2: note: in expansion of macro ‘os_snprintf’
os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
^~~~~~~~~~~
CC ../src/drivers/driver_hostap.c
In file included from ../src/drivers/driver_nl80211.c:33:
../src/utils/common.h:429: warning: "__bitwise" redefined
#define __bitwise

In file included from /usr/include/linux/netlink.h:7,
from /usr/include/libnl3/netlink/netlink.h:25,
from /usr/include/libnl3/netlink/genl/genl.h:15,
from ../src/drivers/driver_nl80211.c:25:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
#define __bitwise bitwise

../src/drivers/driver_nl80211.c: In function ‘i802_set_wds_sta’:
../src/drivers/driver_nl80211.c:6514:37: warning: ‘.sta’ directive output may be truncated writing 4 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
^~~~
In file included from ../src/utils/common.h:18,
from ../src/drivers/driver_nl80211.c:33:
../src/utils/os.h:469:21: note: ‘snprintf’ output between 6 and 32 bytes into a destination of size 17
#define os_snprintf snprintf
../src/drivers/driver_nl80211.c:6514:2: note: in expansion of macro ‘os_snprintf’
os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
^~~~~~~~~~~
../src/drivers/driver_nl80211.c: In function ‘wpa_driver_nl80211_set_mode’:
../src/drivers/driver_nl80211.c:5150:32: warning: ‘%s’ directive output may be truncated writing up to 16 bytes into a region of size 12 [-Wformat-truncation=]
snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss.ifname);
^~
../src/drivers/driver_nl80211.c:5150:3: note: ‘snprintf’ output between 5 and 21 bytes into a destination of size 16
snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss.ifname);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC ../src/drivers/driver_nl80211.c
CC ../src/utils/radiotap.c
CC ../src/drivers/netlink.c
CC ../src/drivers/linux_ioctl.c
CC ../src/drivers/rfkill.c
CC ../src/l2_packet/l2_packet_linux.c
CC ../src/eap_server/eap_server_md5.c
CC ../src/eap_server/eap_server_tls.c
CC ../src/eap_server/eap_server_peap.c
CC ../src/eap_common/eap_peap_common.c
CC ../src/eap_server/eap_server_ttls.c
CC ../src/eap_server/eap_server_mschapv2.c
CC ../src/eap_server/eap_server_gtc.c
CC eap_register.c
CC ../src/eap_server/eap_server.c
CC ../src/eap_common/eap_common.c
CC ../src/eap_server/eap_server_methods.c
CC ../src/eap_server/eap_server_identity.c
CC ../src/crypto/ms_funcs.c
CC ../src/eap_common/chap.c
CC ../src/eap_server/eap_server_tls_common.c
CC ../src/crypto/tls_none.c
CC ../src/crypto/crypto_none.c
CC ../src/crypto/aes-internal.c
CC ../src/crypto/aes-internal-enc.c
CC ../src/crypto/aes-wrap.c
CC ../src/crypto/sha1.c
CC ../src/crypto/sha1-internal.c
CC ../src/crypto/sha1-pbkdf2.c
CC ../src/crypto/sha1-tlsprf.c
CC ../src/crypto/md5-internal.c
CC ../src/crypto/rc4.c
CC ../src/crypto/random.c
CC ../src/ap/wmm.c
CC ../src/ap/ap_list.c
CC ../src/ap/ieee802_11.c
CC ../src/ap/hw_features.c
CC ../src/drivers/driver_common.c
LD hostapd
CC hostapd_cli.c
CC ../src/common/wpa_ctrl.c
CC ../src/utils/edit_simple.c
LD hostapd_cli

Copying Hostapd/Karma...

Cleaning Up...

./install.sh: línea 54: cd..: orden no encontrada
./install.sh: línea 55: cd..: orden no encontrada
rm: no se puede borrar 'hostapd-karma': No existe el fichero o el directorio
..DONE..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants