[Openswan Users]

Paul Wouters paul at xelerance.com
Sun Apr 24 16:23:35 CEST 2005


On Sun, 24 Apr 2005, Lukas Kolbe wrote:

> 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.

There are current ready made packages for openswan at:
http://nbd.vd-s.ath.cx/openwrt/packages/

It works with the included gmp.

> 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:

I have had similar problems. Though the proper way of specifying the headers
and linking information is using the variables in Makefile.inc and setting the
environment variables for LD and CC to include -I and -L paramters.

> 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'

I had the same problem. Ken, what did you do in the nightly build to fix this?

Paul


More information about the Users mailing list