OpenWrt Forum Archive

Topic: Building Kamikaze with additional packages doesn't work.

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I want to build a kamikaze image with some additional software. So I copied the packages from svn into the build environment:

find packages -maxdepth 3 -name Makefile | \
sed "s#\./[^/]*/\([^/]*\)/.*#\0 \1#" | \
while read old new; do
  mv ${old/\/Makefile} /path/to/kamikaze_7.09/package/$new;
done

A little hacky, but it worked. Then I started make menuconfig and selected packages like vpnc or nfs-server

Compiling fails at libgcrypt-1.2.3 while configure with the following output:

...

checking if mipsel-linux-uclibc-g++ supports -c -o file.o... yes
checking whether the mipsel-linux-uclibc-g++ linker (mipsel-linux-uclibc-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether byte ordering is bigendian... (cached) no
checking for unsigned short... yes
checking size of unsigned short... (cached) 2
checking for unsigned int... yes
checking size of unsigned int... (cached) 4
checking for unsigned long... yes
checking size of unsigned long... (cached) 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking which symmetric ciphers to include... arcfour blowfish cast5 des aes twofish serpent rfc2268
checking which public-key ciphers to include... dsa elgamal rsa
checking which message digests to include... crc md4 md5 rmd160 sha1 sha256 sha512 tiger
checking which random module to use... default
checking whether use of /dev/random is requested... yes
checking whether assembler modules are requested... no
checking whether memory guard is requested... no
checking whether use of capabilities is requested... no
checking whether non excutable stack support is requested... no
checking for gpg-error-config... /home/work/kamikaze_7.09/staging_dir_mipsel/usr/bin/gpg-error-config
checking for GPG Error - version >= 0.5... ./configure: line 21823: /home/work/kamikaze_7.09/staging_dir_mipsel/usr/bin/gpg-error-config: No such file or directory
no
configure: error: libgpg-error is needed.
                See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
make[3]: *** [/home/work/kamikaze_7.09/build_mipsel/libgcrypt-1.2.3/.configured] Error 1
make[3]: Leaving directory `/home/work/kamikaze_7.09/package/libgcrypt'
make[2]: *** [libgcrypt-compile] Error 2
make[2]: Leaving directory `/home/work/kamikaze_7.09/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/work/kamikaze_7.09'
make: *** [world] Error 2

...

After coping gpg-error-config by hand to  /home/work/kamikaze_7.09/staging_dir_mipsel/usr/bin/gpg-error-config, it still produces some errors while linking or compiling. After solving this there are some other packages with similar errors. Does someone know about this issue?

imzimz

try

make package/symlinks in the topdir, it should download and then create symlinks to all the additional packages

Same error.

Can somebody reproduce this issue? - I use kamikaze_7.09. I think vpnc should trigger this error.

Try to start from scratch, seems you messed up someting...

cd ~
rm -rf ~/kamikaze_7.09/
svn -q checkout https://svn.openwrt.org/openwrt/tags/kamikaze_7.09/ kamikaze_7.09/
cd ~/kamikaze_7.09/
make defconfig package/symlinks menuconfig
make world

Ok, thanks, It helped!

The discussion might have continued from here.