I have revision 39762 of the openwrt trunk checked out.  I'm trying to build with eglibc 2.15.  I am getting the following error.

/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/staging_dir/toolchain-arm_cortex-a9+neon_gcc-4.6-linaro_eglibc-2.15_eabi/lib/gcc/arm-openwrt-linux-gnueabi/4.6.4/../../../../arm-openwrt-linux-gnueabi/bin/ld: warning: .init_array section has zero size
  LD  hostapd
  CC  hostapd_cli.c
  CC  ../src/common/wpa_ctrl.c
  CC  ../src/utils/edit_simple.c
../src/utils/os_unix.o: In function `os_get_reltime':
os_unix.c:(.text.os_get_reltime+0x1c): undefined reference to `clock_gettime'
/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/staging_dir/toolchain-arm_cortex-a9+neon_gcc-4.6-linaro_eglibc-2.15_eabi/lib/gcc/arm-openwrt-linux-gnueabi/4.6.4/../../../../arm-openwrt-linux-gnueabi/bin/ld: warning: .init_array section has zero size
collect2: ld returned 1 exit status
make[5]: *** [hostapd_cli] Error 1
make[5]: Leaving directory `/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/build_dir/target-arm_cortex-a9+neon_eglibc-2.15_eabi/hostapd-full/hostapd-20131120/hostapd'
make[4]: *** [/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/build_dir/target-arm_cortex-a9+neon_eglibc-2.15_eabi/hostapd-full/hostapd-20131120/.built] Error 2
make[4]: Leaving directory `/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/package/network/services/hostapd'
make[3]: *** [package/network/services/hostapd/compile] Error 2
make[3]: Leaving directory `/home/ids21/fpu/gateworks-openwrt-eglibc/trunk'
make[2]: *** [/home/ids21/fpu/gateworks-openwrt-eglibc/trunk/staging_dir/target-arm_cortex-a9+neon_eglibc-2.15_eabi/stamp/.package_compile] Error 2
make[2]: Leaving directory `/home/ids21/fpu/gateworks-openwrt-eglibc/trunk'
make[1]: *** [world] Error 2
make[1]: Leaving directory `/home/ids21/fpu/gateworks-openwrt-eglibc/trunk'

This appears like "-lrt" is missing from the link step.  I'm not sure what file to modify to make this work.  It seems like the file package/network/services/hostapd/Makefile has what I need.

ifdef CONFIG_USE_EGLIBC
  TARGET_LDFLAGS += -lrt
endif

FYI, this build did complete before I added target options "-mfpu=neon -mfloat-abi=hard" to switch to hard floating point.

Can someone point me in the correct direction?

(Last edited by jpallotta on 5 Mar 2014, 22:36)