sensepost / hostapd-mana

SensePost's modified hostapd for wifi attacks.
https://w1f1.net/
Other
544 stars 128 forks source link

ld returned 1 exit status #51

Open gdesimone97 opened 4 years ago

gdesimone97 commented 4 years ago

Hi, someone can help me? I'm usig Kali linux with VirtualBox and get this error:

make: ingresso nella directory «/home/peppo/temp/hostapd-mana/hostapd»
fatal: Nessun tag annotato può descrivere '99aeb3027672af59c463efe0374fcee7553f264e'.
Ciò nonostante, c'erano dei tag non annotati: prova con --tags.
  CC  main.c
config_file.c: In function ‘hostapd_config_fill.part.0’:
config_file.c:2231:3: warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
 2231 |   strcpy(tmp,pos);
      |   ^~~~~~~~~~~~~~~
config_file.c:2230:15: note: at offset 0 to an object allocated by ‘malloc’ here
 2230 |   char *tmp = malloc(strlen(pos));
      |               ^~~~~~~~~~~~~~~~~~~
config_file.c:2202:3: warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
 2202 |   strcpy(tmp2,pos);
      |   ^~~~~~~~~~~~~~~~
config_file.c:2201:16: note: at offset 0 to an object allocated by ‘malloc’ here
 2201 |   char *tmp2 = malloc(strlen(pos));
      |                ^~~~~~~~~~~~~~~~~~~
config_file.c:2191:3: warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
 2191 |   strcpy(tmp2,pos);
      |   ^~~~~~~~~~~~~~~~
config_file.c:2190:16: note: at offset 0 to an object allocated by ‘malloc’ here
 2190 |   char *tmp2 = malloc(strlen(pos));
      |                ^~~~~~~~~~~~~~~~~~~
config_file.c:2174:3: warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
 2174 |   strcpy(tmp1,pos);
      |   ^~~~~~~~~~~~~~~~
config_file.c:2173:16: note: at offset 0 to an object allocated by ‘malloc’ here
 2173 |   char *tmp1 = malloc(strlen(pos));
      |                ^~~~~~~~~~~~~~~~~~~
config_file.c:2163:3: warning: ‘strcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=]
 2163 |   strcpy(tmp,pos);
      |   ^~~~~~~~~~~~~~~
config_file.c:2162:15: note: at offset 0 to an object allocated by ‘malloc’ here
 2162 |   char *tmp = malloc(strlen(pos));
      |               ^~~~~~~~~~~~~~~~~~~
  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/eap_user_db.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/ap/bss_load.c
  CC  ../src/ap/neighbor_db.c
  CC  ../src/ap/rrm.c
  CC  ../src/common/mana.c
  CC  ../src/drivers/drivers.c
  CC  ../src/ap/taxonomy.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/common/hw_features_common.c
  CC  ../src/eapol_auth/eapol_auth_sm.c
  CC  ../src/eapol_auth/eapol_auth_dump.c
  CC  ../src/radius/radius.c
  CC  ../src/radius/radius_client.c
  CC  ../src/radius/radius_das.c
  CC  ../src/ap/accounting.c
../src/ap/vlan_init.c: In function ‘vlan_init’:
../src/ap/vlan_init.c:149:54: warning: ‘.#’ directive output may be truncated writing 2 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
  149 |   os_snprintf(vlan->ifname, sizeof(vlan->ifname), "%s.#",
      |                                                      ^~
In file included from /home/peppo/temp/hostapd-mana/src/utils/common.h:12,
                 from ../src/ap/vlan_init.c:13:
/home/peppo/temp/hostapd-mana/src/utils/os.h:552:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 17
  552 | #define os_snprintf snprintf
../src/ap/vlan_init.c:149:3: note: in expansion of macro ‘os_snprintf’
  149 |   os_snprintf(vlan->ifname, sizeof(vlan->ifname), "%s.#",
      |   ^~~~~~~~~~~
../src/ap/vlan_init.c: In function ‘vlan_add_dynamic’:
../src/ap/vlan_init.c:201:51: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
  201 |  os_snprintf(n->ifname, sizeof(n->ifname), "%s%d%s", ifname, vlan_id,
      |                                                   ^
In file included from /home/peppo/temp/hostapd-mana/src/utils/common.h:12,
                 from ../src/ap/vlan_init.c:13:
/home/peppo/temp/hostapd-mana/src/utils/os.h:552:21: note: ‘snprintf’ output 2 or more bytes (assuming 18) into a destination of size 17
  552 | #define os_snprintf snprintf
../src/ap/vlan_init.c:201:2: note: in expansion of macro ‘os_snprintf’
  201 |  os_snprintf(n->ifname, sizeof(n->ifname), "%s%d%s", ifname, vlan_id,
      |  ^~~~~~~~~~~
  CC  ../src/ap/vlan_init.c
  CC  ../src/ap/vlan_ifconfig.c
  CC  ../src/ap/vlan.c
  CC  ../src/common/ctrl_iface_common.c
  CC  ctrl_iface.c
  CC  ../src/ap/ctrl_iface_ap.c
  CC  ../src/ap/iapp.c
  CC  ../src/ap/peerkey_auth.c
  CC  ../src/ap/wpa_auth_ft.c
../src/drivers/driver_hostap.c: In function ‘hostap_init’:
../src/drivers/driver_hostap.c:234:57: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
  234 |        snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
      |                                                        ^~

../src/drivers/driver_hostap.c:234:9: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
  234 |         snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/drivers/driver_hostap.c:351:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
  351 |  os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
      |                                   ^~
In file included from /home/peppo/temp/hostapd-mana/src/utils/common.h:12,
                 from ../src/drivers/driver_hostap.c:13:
/home/peppo/temp/hostapd-mana/src/utils/os.h:552:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
  552 | #define os_snprintf snprintf
../src/drivers/driver_hostap.c:351:2: note: in expansion of macro ‘os_snprintf’
  351 |  os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
      |  ^~~~~~~~~~~
../src/drivers/driver_hostap.c: In function ‘hostap_driver_deinit’:
../src/drivers/driver_hostap.c:351:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
  351 |  os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
      |                                   ^~
In file included from /home/peppo/temp/hostapd-mana/src/utils/common.h:12,
                 from ../src/drivers/driver_hostap.c:13:
/home/peppo/temp/hostapd-mana/src/utils/os.h:552:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
  552 | #define os_snprintf snprintf
../src/drivers/driver_hostap.c:351:2: note: in expansion of macro ‘os_snprintf’
  351 |  os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface);
      |  ^~~~~~~~~~~
  CC  ../src/drivers/driver_hostap.c
  CC  ../src/drivers/driver_wired.c
In file included from ../src/drivers/driver_nl80211.c:26:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/sysinfo.h:5,
                 from /usr/include/linux/kernel.h:5,
                 from /usr/include/linux/netlink.h:5,
                 from /usr/include/libnl3/netlink/netlink.h:25,
                 from /usr/include/libnl3/netlink/genl/genl.h:15,
                 from ../src/drivers/driver_nl80211.c:17:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
../src/drivers/driver_nl80211.c: In function ‘i802_set_wds_sta’:
../src/drivers/driver_nl80211.c:5946:37: warning: ‘.sta’ directive output may be truncated writing 4 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
 5946 |  os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
      |                                     ^~~~
In file included from /home/peppo/temp/hostapd-mana/src/utils/common.h:12,
                 from ../src/drivers/driver_nl80211.c:26:
/home/peppo/temp/hostapd-mana/src/utils/os.h:552:21: note: ‘snprintf’ output between 6 and 32 bytes into a destination of size 17
  552 | #define os_snprintf snprintf
../src/drivers/driver_nl80211.c:5946:2: note: in expansion of macro ‘os_snprintf’
 5946 |  os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
      |  ^~~~~~~~~~~
  CC  ../src/drivers/driver_nl80211.c
In file included from ../src/drivers/driver_nl80211_capa.c:14:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/sysinfo.h:5,
                 from /usr/include/linux/kernel.h:5,
                 from /usr/include/linux/netlink.h:5,
                 from /usr/include/libnl3/netlink/netlink.h:25,
                 from /usr/include/libnl3/netlink/genl/genl.h:15,
                 from ../src/drivers/driver_nl80211_capa.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
  CC  ../src/drivers/driver_nl80211_capa.c
In file included from ../src/drivers/driver_nl80211_event.c:14:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/sysinfo.h:5,
                 from /usr/include/linux/kernel.h:5,
                 from /usr/include/linux/netlink.h:5,
                 from /usr/include/libnl3/netlink/netlink.h:25,
                 from /usr/include/libnl3/netlink/genl/genl.h:15,
                 from ../src/drivers/driver_nl80211_event.c:12:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
  CC  ../src/drivers/driver_nl80211_event.c
In file included from ../src/drivers/driver_nl80211_monitor.c:17:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/filter.h:10,
                 from ../src/drivers/driver_nl80211_monitor.c:15:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
../src/drivers/driver_nl80211_monitor.c: In function ‘nl80211_create_monitor_interface’:
../src/drivers/driver_nl80211_monitor.c:365:32: warning: ‘%s’ directive output may be truncated writing up to 16 bytes into a region of size 12 [-Wformat-truncation=]
  365 |   snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss->ifname);
      |                                ^~
../src/drivers/driver_nl80211_monitor.c:365:3: note: ‘snprintf’ output between 5 and 21 bytes into a destination of size 16
  365 |   snprintf(buf, IFNAMSIZ, "mon.%s", drv->first_bss->ifname);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC  ../src/drivers/driver_nl80211_monitor.c
In file included from ../src/drivers/driver_nl80211_scan.c:15:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/sysinfo.h:5,
                 from /usr/include/linux/kernel.h:5,
                 from /usr/include/linux/netlink.h:5,
                 from /usr/include/libnl3/netlink/netlink.h:25,
                 from /usr/include/libnl3/netlink/genl/genl.h:15,
                 from ../src/drivers/driver_nl80211_scan.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
  CC  ../src/drivers/driver_nl80211_scan.c
  CC  ../src/drivers/driver_none.c
  CC  ../src/drivers/netlink.c
  CC  ../src/drivers/linux_ioctl.c
  CC  ../src/drivers/rfkill.c
  CC  ../src/utils/radiotap.c
In file included from ../src/l2_packet/l2_packet_linux.c:15:
/home/peppo/temp/hostapd-mana/src/utils/common.h:426: warning: "__bitwise" redefined
  426 | #define __bitwise
      | 
In file included from /usr/include/linux/filter.h:10,
                 from ../src/l2_packet/l2_packet_linux.c:13:
/usr/include/linux/types.h:22: note: this is the location of the previous definition
   22 | #define __bitwise __bitwise__
      | 
  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  ../src/eap_server/eap_server_sim.c
  CC  ../src/eap_server/eap_server_aka.c
  CC  ../src/eap_common/eap_sim_common.c
  CC  ../src/eap_server/eap_sim_db.c
  CC  ../src/eap_server/eap_server_pax.c
  CC  ../src/eap_common/eap_pax_common.c
  CC  ../src/eap_server/eap_server_psk.c
  CC  ../src/eap_common/eap_psk_common.c
  CC  ../src/eap_server/eap_server_sake.c
  CC  ../src/eap_common/eap_sake_common.c
  CC  ../src/eap_server/eap_server_gpsk.c
  CC  ../src/eap_common/eap_gpsk_common.c
  CC  ../src/eap_server/eap_server_pwd.c
  CC  ../src/eap_common/eap_pwd_common.c
  CC  ../src/eap_server/eap_server_eke.c
  CC  ../src/eap_common/eap_eke_common.c
  CC  ../src/eap_server/eap_server_fast.c
  CC  ../src/eap_common/eap_fast_common.c
  CC  ../src/eap_server/eap_server_ikev2.c
  CC  ../src/eap_server/ikev2.c
  CC  ../src/eap_common/eap_ikev2_common.c
  CC  ../src/eap_common/ikev2_common.c
  CC  ../src/eap_server/eap_server_tnc.c
  CC  ../src/eap_server/tncs.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_openssl.c
  CC  ../src/crypto/tls_openssl_ocsp.c
  CC  ../src/crypto/crypto_openssl.c
  CC  ../src/crypto/fips_prf_openssl.c
  CC  ../src/crypto/aes-eax.c
  CC  ../src/crypto/aes-ctr.c
  CC  ../src/crypto/aes-encblock.c
  CC  ../src/crypto/aes-omac1.c
  CC  ../src/crypto/sha1-prf.c
  CC  ../src/crypto/sha1-tprf.c
  CC  ../src/crypto/sha1-tlsprf.c
  CC  ../src/crypto/sha256-prf.c
  CC  ../src/crypto/sha256-tlsprf.c
  CC  ../src/crypto/sha256-kdf.c
  CC  ../src/crypto/dh_groups.c
  CC  ../src/crypto/random.c
  CC  ../src/radius/radius_server.c
  CC  ../src/utils/base64.c
  CC  ../src/ap/wmm.c
  CC  ../src/ap/ap_list.c
../src/ap/ieee802_11.c: In function ‘handle_assoc’:
../src/ap/ieee802_11.c:2153:63: warning: ‘?:’ using integer constants in boolean context [-Wint-in-bool-context]
 2153 |      sta->last_subtype == reassoc ? WLAN_FC_STYPE_REASSOC_REQ :
  CC  ../src/ap/ieee802_11.c
  CC  ../src/ap/hw_features.c
  CC  ../src/ap/dfs.c
  CC  ../src/ap/ieee802_11_ht.c
  CC  ../src/ap/ieee802_11_vht.c
  CC  ../src/ap/hs20.c
  CC  ../src/common/gas.c
  CC  ../src/ap/gas_serv.c
  CC  ../src/ap/x_snoop.c
  CC  ../src/ap/dhcp_snoop.c
  CC  ../src/ap/ndisc_snoop.c
  CC  ../src/drivers/driver_common.c
/usr/bin/ld: ../src/ap/drv_callbacks.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/drv_callbacks.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/sta_info.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/sta_info.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/beacon.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/beacon.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/bss_load.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/bss_load.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ctrl_iface.o:/home/peppo/temp/hostapd-mana/src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ctrl_iface.o:/home/peppo/temp/hostapd-mana/src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/ap_list.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/ap_list.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/ieee802_11.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/ieee802_11.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/hw_features.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/hw_features.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/ieee802_11_ht.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/ieee802_11_ht.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
/usr/bin/ld: ../src/ap/ieee802_11_vht.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: multiple definition of `mana_ssidhash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:54: first defined here
/usr/bin/ld: ../src/ap/ieee802_11_vht.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: multiple definition of `mana_machash'; ../src/ap/hostapd.o:/home/peppo/temp/hostapd-mana/hostapd/../src/ap/beacon.h:53: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:1064: hostapd] Errore 1
cablethief commented 4 years ago

I think I may have recently encountered this with newer linux, I havent had a chance to check it out yet however. I will try get back to you. I think it depends on the C compiler version, but thats a guess.

siloed commented 3 years ago

i am having the same error.

tired the pre-compiled binary instead, but it complains about missing libssl.so.1.0.0

fransla commented 3 years ago

This pull request fixes it https://github.com/sensepost/hostapd-mana/pull/52