Modify

Opened 10 years ago

Closed 10 years ago

#3733 closed defect (fixed)

[Packages] hostapd doesn't compile

Reported by: bayard.wenzel@… Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

Checked out kamikaze and packages as follows:

svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze
svn checkout https://svn.openwrt.org/openwrt/packages packages
ln -s packages/*/* kamikaze/package/
cd kamikaze; make menuconfig

Configured as:

  • Target System (Broadcom BCM947xx/953xx [2.6])
  • Target Profile (Broadcom BCM43xx WiFi)
  • Select all packages by default

Built via:

make

Error looked like:

 make[3] -C package/hostapd compile
make -r world: build failed. Please re-run make with V=99 to see what's going on
make: *** [world] Error 1

Building again with:

make V=99

Error looked like:

make[4]: Entering directory `/home/biomorph/build/OpenWRT/kamikaze/build_dir/mipsel/hostapd-0.6.3/hostapd.default/hostapd'
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/madwifi -I/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/mac80211 -I/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/libnl -I/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto -I../src/utils -I../src/common -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WIRED -DCONFIG_DRIVER_MADWIFI -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF -DCONFIG_IPV6   -c -o driver_nl80211.o driver_nl80211.c
In file included from /home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/libnl/linux/if.h:24:1: warning: "IFNAMSIZ" redefined
In file included from driver_nl80211.c:27:
/home/biomorph/build/OpenWRT/kamikaze/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:130:1: warning: this is the location of the previous definition

And then lots more redefinition warnings, and finally a struct redefine error:

/home/biomorph/build/OpenWRT/kamikaze/staging_dir/mipsel/usr/include/libnl/linux/if.h:120: error: redefinition of 'struct ifmap'

Summary:

staging_dir/mipsel/usr/include/libnl/linux/if.h
(included from staging_dir/mipsel/usr/include/mac80211/linux/wireless.h)
interacts poorly with build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/mipsel-linux-uclibc/sys-include/net/if.h

Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by puchu

do a
svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze
make package/symlinks
make

should work.... im on the latest trunk right now

comment:2 Changed 10 years ago by anonymous

svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze

make package/symlinks

make

comment:3 Changed 10 years ago by anonymous

svn checkout https://svn.openwrt.org/openwrt/trunk

cd trunk

make package/symlinks

make

comment:4 Changed 10 years ago by anonymous

Same Problem here Broadcom Kernel 2.6 revision 11753:

oconnor@dell:~/Desktop/trunk$ make package/hostapd-compile V=99
make[1]: Entering directory `/home/oconnor/Desktop/trunk'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/zlib'
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/zlib'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/openssl'
WARNING: skipping openssl-util -- package not selected
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/openssl'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/wireless-tools'
WARNING: skipping libiw -- package not selected
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/wireless-tools'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/madwifi'
WARNING: skipping kmod-madwifi -- package not selected
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/madwifi'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/mac80211'
WARNING: skipping kmod-rt2x00-lib -- package not selected
WARNING: skipping kmod-rt2x00-pci -- package not selected
WARNING: skipping kmod-rt2x00-usb -- package not selected
WARNING: skipping kmod-rt2400-pci -- package not selected
WARNING: skipping kmod-rt2500-pci -- package not selected
WARNING: skipping kmod-rt2500-usb -- package not selected
WARNING: skipping kmod-rt61-pci -- package not selected
WARNING: skipping kmod-rt73-usb -- package not selected
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/mac80211'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/libnl'
WARNING: skipping libnl -- package not selected
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/libnl'
make[2]: Entering directory `/home/oconnor/Desktop/trunk/package/hostapd'
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/madwifi -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211 -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include" make -C /home/oconnor/Desktop/trunk/build_dir/mipsel/hostapd-0.6.3/hostapd.default/hostapd AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size LIBS="-L/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib -L/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/lib -L/home/oconnor/Desktop/trunk/staging_dir/mipsel/lib -L/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/lib -lm /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/lib/libnl.a -lssl -lcrypto" hostapd hostapd_cli
make[3]: Entering directory `/home/oconnor/Desktop/trunk/build_dir/mipsel/hostapd-0.6.3/hostapd.default/hostapd'
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/madwifi -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211 -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto -I../src/utils -I../src/common -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WIRED -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF -DCONFIG_IPV6   -c -o driver_nl80211.o driver_nl80211.c
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:24:1: warning: "IFNAMSIZ" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:130:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:27:1: warning: "IFF_UP" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:46:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:28:1: warning: "IFF_BROADCAST" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:48:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:29:1: warning: "IFF_DEBUG" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:50:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:30:1: warning: "IFF_LOOPBACK" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:52:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:31:1: warning: "IFF_POINTOPOINT" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:54:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:32:1: warning: "IFF_NOTRAILERS" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:56:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:33:1: warning: "IFF_RUNNING" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:58:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:34:1: warning: "IFF_NOARP" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:60:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:35:1: warning: "IFF_PROMISC" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:62:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:36:1: warning: "IFF_ALLMULTI" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:66:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:38:1: warning: "IFF_MASTER" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:69:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:39:1: warning: "IFF_SLAVE" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:71:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:41:1: warning: "IFF_MULTICAST" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:74:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:43:1: warning: "IFF_PORTSEL" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:77:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:44:1: warning: "IFF_AUTOMEDIA" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:79:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:45:1: warning: "IFF_DYNAMIC" redefined
In file included from driver_nl80211.c:27:
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/net/if.h:81:1: warning: this is the location of the previous definition
In file included from /home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/mac80211/linux/wireless.h:74,
                 from driver_nl80211.c:30:
/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include/libnl/linux/if.h:120: error: redefinition of 'struct ifmap'
make[3]: *** [driver_nl80211.o] Error 1
make[3]: Leaving directory `/home/oconnor/Desktop/trunk/build_dir/mipsel/hostapd-0.6.3/hostapd.default/hostapd'
make[2]: *** [/home/oconnor/Desktop/trunk/build_dir/mipsel/hostapd-0.6.3/.built] Error 2
make[2]: Leaving directory `/home/oconnor/Desktop/trunk/package/hostapd'
make[1]: *** [package/hostapd/compile] Error 2
make[1]: Leaving directory `/home/oconnor/Desktop/trunk'
make: *** [package/hostapd-compile] Fehler 2}}}

comment:5 Changed 10 years ago by florian

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

Fixed with [11763]. Thanks !

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.