Modify

Opened 2 years ago

Last modified 2 years ago

#20599 new defect

aircrack-ng fails to build on latest trunk

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

Description

libnl is build allready.

:

./staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl/netlink/genl/genl.h
./staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl-tiny/netlink/genl/genl.h
./build_dir/target-arm_xscale_musl-1.1.11_eabi/libnl-3.2.21/include/netlink/genl/genl.h
./build_dir/target-arm_xscale_musl-1.1.11_eabi/libnl-3.2.21/ipkg-install/usr/include/libnl3/netlink/genl/genl.h
./build_dir/target-arm_xscale_musl-1.1.11_eabi/libnl-tiny-0.1/include/netlink/genl/genl.h
./package/libs/libnl-tiny/src/include/netlink/genl/genl.h

anyway, build process failing with

:

........ RUMPL RUMPL RUMPL .......
make[4]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1'
make -C src all
make[5]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src'
make -C osdep
make[6]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src/osdep'
Building for Linux
make[7]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src/osdep'
arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include/fortify -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include  -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Wno-unused-but-set-variable -Wno-array-bounds -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Wno-unused-but-set-variable -Wno-array-bounds -fPIC -I..  -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Wno-unused-but-set-variable -Wno-array-bounds -fPIC -I..    -c -o linux.o linux.c
linux.c:46:31: fatal error: netlink/genl/genl.h: No such file or directory
 #include <netlink/genl/genl.h>
                               ^
compilation terminated.
make[7]: *** [linux.o] Error 1
make[7]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src/osdep'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src/osdep'
make[5]: *** [osdep/libosdep.a] Error 2
make[5]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1'
make[3]: *** [/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/aircrack-ng-1.2-rc1/.built] Error 2
make[3]: Leaving directory `/hdd/openwrt/trunk/feeds/packages/net/aircrack-ng'
make[2]: *** [package/feeds/packages/aircrack-ng/compile] Error 2
make[2]: Leaving directory `/hdd/openwrt/trunk'
make[1]: *** [/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/hdd/openwrt/trunk'
make: *** [world] Fehler 2

Attachments (0)

Change History (2)

comment:1 follow-up: Changed 2 years ago by anonymous

something wrong with libnl? bmon is failing also!:

make[4]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/src'
arm-openwrt-linux-muslgnueabi-gcc -DHAVE_CONFIG_H -I. -I../include/bmon   -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include/fortify -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include  -I../include -I../include -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -Wall  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99  -MT bmon-in_netlink.o -MD -MP -MF .deps/bmon-in_netlink.Tpo -c -o bmon-in_netlink.o `test -f 'in_netlink.c' || echo './'`in_netlink.c
in_netlink.c:42:29: fatal error: netlink/netlink.h: No such file or directory
 #include <netlink/netlink.h>
                             ^
compilation terminated.
make[4]: *** [bmon-in_netlink.o] Error 1
make[4]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8'
make[2]: *** [/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/.built] Error 2
make[2]: Leaving directory `/hdd/openwrt/trunk/feeds/packages/net/bmon'
make[1]: *** [package/feeds/packages/bmon/compile] Error 2
make[1]: Leaving directory `/hdd/openwrt/trunk'
make: *** [package/bmon/compile] Fehler 2

comment:2 in reply to: ↑ 1 Changed 2 years ago by anonymous

Replying to anonymous:

something wrong with libnl? bmon is failing also!:

make[4]: Entering directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/src'
arm-openwrt-linux-muslgnueabi-gcc -DHAVE_CONFIG_H -I. -I../include/bmon   -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/usr/include -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include/fortify -I/hdd/openwrt/trunk/staging_dir/toolchain-arm_xscale_gcc-4.8-linaro_musl-1.1.11_eabi/include  -I../include -I../include -DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -Wall  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -I/hdd/openwrt/trunk/staging_dir/target-arm_xscale_musl-1.1.11_eabi/usr/include/libnl3  -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99  -MT bmon-in_netlink.o -MD -MP -MF .deps/bmon-in_netlink.Tpo -c -o bmon-in_netlink.o `test -f 'in_netlink.c' || echo './'`in_netlink.c
in_netlink.c:42:29: fatal error: netlink/netlink.h: No such file or directory
 #include <netlink/netlink.h>
                             ^
compilation terminated.
make[4]: *** [bmon-in_netlink.o] Error 1
make[4]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8'
make[2]: *** [/hdd/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.11_eabi/bmon-3.8/.built] Error 2
make[2]: Leaving directory `/hdd/openwrt/trunk/feeds/packages/net/bmon'
make[1]: *** [package/feeds/packages/bmon/compile] Error 2
make[1]: Leaving directory `/hdd/openwrt/trunk'
make: *** [package/bmon/compile] Fehler 2

I was having this same issue- I'm not a C developer so I've largely got no idea what I'm doing but definitely the issue was in_netlink.c being unable to find netlink/netlink.h in bmon's include folder.

So I just did a dodgy and symlinked it from staging_dir/target_xxx/usr/include/libnl.

Probably there is a more correct fix for this.

To give some context to my issue- I wasn't experiencing it with the latest trunk, or the latest anything in fact; I'm trying to build up the Gateworks-specific stuff for my GW2388s.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.