[Openswan Users]
Building Openswan 2.3.1 for current openwrt-experimental
Lukas Kolbe
lucky at knup.de
Sun Apr 24 14:00:33 CEST 2005
Hello!
I didn't find solutions for this in the archives, so here is my problem:
I'm currently trying to build openswan 2.3.1 for a self-built openwrt
(built using the current experimental buildroot from
http://openwrt.org/downloads/experimental/), using the ipkg-directory from
http://www.linuxops.net/ipkg/experimental/, which I have slightly modified
for 2.3.1.
I had to edit programs/pluto/Makefile to make it aware of my
gmp-installation. It now finds gmp's (4.1.4) headers, and ld doesn't
complain any more about a missing -lgmp, but linking still fails with a
bunch of this messages:
make[3]: Gehe in Verzeichnis »/data/homes/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/programs/pluto«
/home/lukas/work/openwrt/buildroot/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc -o pluto -L/home/lukas/work/openwrt/buildroot/build_mipsel/root/lib/ -L/home/lukas/work/openwrt/buildroot/build_mipsel/gmp-4.1.4/ipkg/usr/lib connections.o pending.o cookie.o crypto.o defs.o dpd.o foodgroups.o log.o state.o plutomain.o plutoalg.o server.o timer.o pluto_constants.o id.o ipsec_doi.o ikev1_quick.o kernel.o kernel_pfkey.o kernel_noklips.o rcv_whack.o demux.o lex.o keys.o dnskey.o pluto_crypt.o crypt_utils.o crypt_ke.o crypt_dh.o rnd.o spdb.o spdb_struct.o sha1.o md5.o vendor.o nat_traversal.o virtual.o ike_alg_aes.o ike_alginit.o ike_alg.o db_ops.o xauth.o ac.o asn1.o oid.o pem.o pgp.o pkcs.o x509.o certs.o md2.o ocsp.o x509keys.o whacklib.o /data/homes/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/lib/libcrypto/libdes/libdes.a /data/homes/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/lib/libcrypto/libaes/libaes.a /data/homes/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/lib/libopenswan/libopenswan.a -lgmp -lresolv
crypto.o(.text+0x30): In function `init_crypto':
/home/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/programs/pluto/crypto.c:99: undefined reference to `__gmpz_init_set_str'
crypto.o(.text+0x68):/home/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/programs/pluto/crypto.c:99: undefined reference to `__gmpz_init_set_str'
crypto.o(.text+0xa0):/home/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/programs/pluto/crypto.c:99: undefined reference to `__gmpz_init_set_str'
crypto.o(.text+0xd8):/home/lukas/work/openwrt/buildroot/build_mipsel/openswan-2.3.1/programs/pluto/crypto.c:99: undefined reference to `__gmpz_init_set_str'
and various other undefined references.
libgmp.so is in
home/lukas/work/openwrt/buildroot/build_mipsel/gmp-4.1.4/ipkg/usr/lib
so I don't understand why it is complaining, although my understanding of
the whole linking process is pretty basic.
Maybe somebody could point me to the right direction, what I'm doing wrong?
--
Lukas Kolbe
More information about the Users
mailing list