Modify

Opened 3 years ago

Closed 3 years ago

#17765 closed defect (fixed)

Hostapd-full fails to compile on trunk

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Hostapd-full fails to compile on many rfkill redefinition errors:

make[4]: Entering directory `/home/openwrt/build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/hostapd-full/hostapd-2014-06-03/hostapd'
  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/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/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  ../src/ap/ubus.c
  CC  ../src/radius/radius.c
  CC  ../src/radius/radius_client.c
  CC  ../src/radius/radius_das.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
  CC  ../src/ap/wpa_auth_ft.c
  CC  ../src/drivers/driver_nl80211.c
  CC  ../src/drivers/driver_wired.c
  CC  ../src/drivers/linux_ioctl.c
  CC  ../src/drivers/netlink.c
../src/drivers/rfkill.c:100:22: error: redefinition of 'rfkill_init'
 struct rfkill_data * rfkill_init(struct rfkill_config *cfg)
                      ^
In file included from ../src/drivers/rfkill.c:14:0:
../src/drivers/rfkill.h:26:36: note: previous definition of 'rfkill_init' was here
 static inline struct rfkill_data * rfkill_init(struct rfkill_config *cfg)
                                    ^
../src/drivers/rfkill.c:167:6: error: redefinition of 'rfkill_deinit'
 void rfkill_deinit(struct rfkill_data *rfkill)
      ^
In file included from ../src/drivers/rfkill.c:14:0:
../src/drivers/rfkill.h:31:20: note: previous definition of 'rfkill_deinit' was here
 static inline void rfkill_deinit(struct rfkill_data *rfkill)
                    ^
../src/drivers/rfkill.c:182:5: error: redefinition of 'rfkill_is_blocked'
 int rfkill_is_blocked(struct rfkill_data *rfkill)
     ^
In file included from ../src/drivers/rfkill.c:14:0:
../src/drivers/rfkill.h:35:19: note: previous definition of 'rfkill_is_blocked' was here
 static inline int rfkill_is_blocked(struct rfkill_data *rfkill)
                   ^
make[4]: *** [../src/drivers/rfkill.o] Error 1
make[4]: Leaving directory `/home/openwrt/build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/hostapd-full/hostapd-2014-06-03/hostapd'
make[3]: *** [/home/openwrt/build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/hostapd-full/hostapd-2014-06-03/.built] Error 2
make[3]: Leaving directory `/home/openwrt/package/network/services/hostapd'
make[2]: *** [package/network/services/hostapd/compile] Error 2
make[2]: Leaving directory `/home/openwrt'

Attachments (1)

999-rfkill-redefinition.diff (348 bytes) - added by anonymous 3 years ago.
999-rfkill-redefinition.diff

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by anonymous

I make patch for fix this problem

Changed 3 years ago by anonymous

999-rfkill-redefinition.diff

comment:2 Changed 3 years ago by chrism+openwrt@…

Can I propose this as a patch to be applied please? Also ran into this issue and now fixed with this patch.

comment:3 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

the patch is wrong, real fix is in r43345

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.