Temat: Problem z OpenWrt SDK
Po skompilowaniu SDK (wydaje mi się, że tą część zabawy dzięki menuconfig jest niemożliwa do skopania) próbuję skompilować dowolny pakiet - na próbę. Niestety nie udaje mi się. Pobrałem Makefile pogramu axel z https://dev.openwrt.org/browser/packages/net/axel/
w folderze z sdk, w podfolderze packages, stworzyłem kolejny podfolder dla axela i umieściłem w nim makefile.
Wykonuję "make", w menu wybieram axel do skompilowania. Oto jaki otrzymuję błąd:
tmp/.config-package.in:12:warning: 'select' used by config symbol 'PACKAGE_axel' refer to undefined symbol 'PACKAGE_libpthread'
tmp/.config-package.in:13:warning: 'select' used by config symbol 'PACKAGE_axel' refer to undefined symbol 'PACKAGE_libpthread'
tmp/.config-package.in:14:warning: 'select' used by config symbol 'PACKAGE_axel' refer to undefined symbol 'PACKAGE_libc'
tmp/.config-package.in:15:warning: 'select' used by config symbol 'PACKAGE_axel' refer to undefined symbol 'PACKAGE_librt'
#
# using defaults found in .config
#
Your configuration changes were NOT saved.
make[1]: Entering directory `/home/openwrt/opt/sdk'
make[2]: Entering directory `/home/openwrt/opt/sdk'
make[3]: Entering directory `/home/openwrt/opt/sdk/package/axel'
mkdir -p /home/openwrt/opt/sdk/dl
/home/openwrt/opt/sdk/scripts/download.pl "/home/openwrt/opt/sdk/dl" "axel-2.4.tar.gz" "a2a762fce0c96781965c8f9786a3d09d" "http://alioth.debian.org/frs/download.php/3015"
--2014-07-25 11:15:31-- http://alioth.debian.org/frs/download.php/3015/axel-2.4.tar.gz
Resolving alioth.debian.org (alioth.debian.org)... 5.153.231.21
Connecting to alioth.debian.org (alioth.debian.org)|5.153.231.21|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://alioth.debian.org/frs/download.php/3015/axel-2.4.tar.gz [following]
--2014-07-25 11:15:31-- https://alioth.debian.org/frs/download.php/3015/axel-2.4.tar.gz
Connecting to alioth.debian.org (alioth.debian.org)|5.153.231.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: 'STDOUT'
[ <=> ] 0 --.-K/s in 0s
2014-07-25 11:15:31 (0.00 B/s) - written to stdout [0/0]
MD5 sum of the downloaded file does not match (file: d41d8cd98f00b204e9800998ecf8427e, requested: a2a762fce0c96781965c8f9786a3d09d) - deleting download.
--2014-07-25 11:15:31-- http://mirror2.openwrt.org/sources/axel-2.4.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50704 (50K) [application/x-gzip]
Saving to: 'STDOUT'
100%[======================================>] 50,704 --.-K/s in 0.1s
2014-07-25 11:15:31 (396 KB/s) - written to stdout [50704/50704]
. /home/openwrt/opt/sdk/include/shell.sh; gzip -dc /home/openwrt/opt/sdk/dl/axel-2.4.tar.gz | /bin/tar -C /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/.. -xf -
touch /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/.prepared_6d6c0ba3599e6c74a9d8d9f8b16a4bc4
(cd /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/./; if [ -x ./configure ]; then /home/openwrt/opt/sdk/staging_dir/host/bin/find /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ -name config.guess | xargs -r chmod u+w; /home/openwrt/opt/sdk/staging_dir/host/bin/find /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ -name config.guess | xargs -r -n1 cp /home/openwrt/opt/sdk/scripts/config.guess; /home/openwrt/opt/sdk/staging_dir/host/bin/find /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ -name config.sub | xargs -r chmod u+w; /home/openwrt/opt/sdk/staging_dir/host/bin/find /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ -name config.sub | xargs -r -n1 cp /home/openwrt/opt/sdk/scripts/config.sub; AR=-openwrt-linux-ar AS="-openwrt-linux-gcc -c -fhonour-copts -Wno-error=unused-but-set-variable" LD=-openwrt-linux-ld NM=-openwrt-linux-nm CC="-openwrt-linux-gcc" GCC="-openwrt-linux-gcc" CXX="no" RANLIB=-openwrt-linux-ranlib STRIP=-openwrt-linux-strip OBJCOPY=-openwrt-linux-objcopy OBJDUMP=-openwrt-linux-objdump SIZE=-openwrt-linux-size CFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable " CXXFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable " CPPFLAGS="-I/home/openwrt/opt/sdk/staging_dir/target-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/target-_-/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/include " LDFLAGS="-L/home/openwrt/opt/sdk/staging_dir/target-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/target-_-/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/lib " ./configure --prefix=/usr --etcdir=/etc --debug=0 --i18n=0 --strip=0 ; fi; )
Configuration done:
Internationalization disabled.
Debugging disabled.
Binary stripping disabled.
rm -f /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/.configured_*
touch /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/.configured_
CFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable -I/home/openwrt/opt/sdk/staging_dir/target-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/target-_-/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/include " CXXFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable -I/home/openwrt/opt/sdk/staging_dir/target-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/target-_-/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/include " LDFLAGS="-L/home/openwrt/opt/sdk/staging_dir/target-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/target-_-/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/lib " make -j1 -C /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/. AR=-openwrt-linux-ar AS="-openwrt-linux-gcc -c -fhonour-copts -Wno-error=unused-but-set-variable" LD=-openwrt-linux-ld NM=-openwrt-linux-nm CC="-openwrt-linux-gcc" GCC="-openwrt-linux-gcc" CXX="no" RANLIB=-openwrt-linux-ranlib STRIP=-openwrt-linux-strip OBJCOPY=-openwrt-linux-objcopy OBJDUMP=-openwrt-linux-objdump SIZE=-openwrt-linux-size CROSS="-openwrt-linux-" ARCH="" ;
make[4]: Entering directory `/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4'
openwrt-linux-gcc -c axel.c -o axel.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [axel.o] Error 127 (ignored)
openwrt-linux-gcc -c conf.c -o conf.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [conf.o] Error 127 (ignored)
openwrt-linux-gcc -c conn.c -o conn.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [conn.o] Error 127 (ignored)
openwrt-linux-gcc -c ftp.c -o ftp.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [ftp.o] Error 127 (ignored)
openwrt-linux-gcc -c http.c -o http.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [http.o] Error 127 (ignored)
openwrt-linux-gcc -c search.c -o search.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [search.o] Error 127 (ignored)
openwrt-linux-gcc -c tcp.c -o tcp.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [tcp.o] Error 127 (ignored)
openwrt-linux-gcc -c text.c -o text.o -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -fhonour-copts -Wno-error=unused-but-set-variable
make[4]: openwrt-linux-gcc: Command not found
make[4]: [text.o] Error 127 (ignored)
openwrt-linux-gcc *.o -o axel -lpthread
/bin/sh: 1: openwrt-linux-gcc: not found
make[4]: [axel] Error 127 (ignored)
openwrt-linux-strip axel
make[4]: openwrt-linux-strip: Command not found
make[4]: [axel] Error 127 (ignored)
make[4]: Leaving directory `/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4'
CFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable -I/home/openwrt/opt/sdk/staging_dir/target-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/target-_-/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/include " CXXFLAGS=" -fhonour-copts -Wno-error=unused-but-set-variable -I/home/openwrt/opt/sdk/staging_dir/target-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/target-_-/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/include -I/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/include " LDFLAGS="-L/home/openwrt/opt/sdk/staging_dir/target-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/target-_-/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/usr/lib -L/home/openwrt/opt/sdk/staging_dir/toolchain-_gcc-_-/lib " make -C /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/. AR=-openwrt-linux-ar AS="-openwrt-linux-gcc -c -fhonour-copts -Wno-error=unused-but-set-variable" LD=-openwrt-linux-ld NM=-openwrt-linux-nm CC="-openwrt-linux-gcc" GCC="-openwrt-linux-gcc" CXX="no" RANLIB=-openwrt-linux-ranlib STRIP=-openwrt-linux-strip OBJCOPY=-openwrt-linux-objcopy OBJDUMP=-openwrt-linux-objdump SIZE=-openwrt-linux-size CROSS="-openwrt-linux-" ARCH="" DESTDIR="/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ipkg-install" install;
make[4]: Entering directory `/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4'
mkdir -p /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ipkg-install/usr/bin/
cp axel /home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/ipkg-install/usr/bin/axel
cp: cannot stat 'axel': No such file or directory
make[4]: *** [install-bin] Error 1
make[4]: Leaving directory `/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4'
make[3]: *** [/home/openwrt/opt/sdk/build_dir/target-_-/axel-2.4/.built] Error 2
make[3]: Leaving directory `/home/openwrt/opt/sdk/package/axel'
make[2]: *** [package/axel/compile] Error 2
make[2]: Leaving directory `/home/openwrt/opt/sdk'
make[1]: *** [/home/openwrt/opt/sdk/staging_dir/target-_-/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt/opt/sdk'
make: *** [world] Błąd 2Co robię źle???