[strongSwan] Help with Strongswan crosscompile (Ubuntu - Synology)

Andreas Steffen andreas.steffen at strongswan.org
Tue Nov 19 20:40:52 CET 2013


Hi Luka,

you must provide the gmp.h header file during compilation time.

Regards

Andreas

On 19.11.2013 15:46, Luka wrote:
> I'm getting following error when I try to crosscompile strongswan on
> ubuntu for my Synology NAS server:
> *error: GNU Multi Precision library gmp not found*
> 
> Host:
> hostname = ubuntu
> uname -m = i686
> uname -r = 3.8.0-32-generic
> uname -s = Linux
> 
> Target:
> Synology:
> - model DS213+
> - CPU: Freescale QorIQ P1022
> - Arch: PowerPC
> - Endianness: Big Endian
> - Linux 2.6.32
> - uname -a:   
> Linux LupoDiskStation 2.6.32.12 #3776 SMP Sat Aug 17 02:11:24 CST 2013
> ppc GNU/Linux synology_qoriq_213+
> 
> I'm using official Synology toolchain.
> 
> Here is terminal output after I run configure command:
> x at ubuntu:~/strongswan-5.1.1env
> CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld
> RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib
> CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548
> -mhard-float -mfloat-gprs=double"
> LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib" ./configure
> --host=powerpc-unknown-linux --target=powerpc-unknown-linux
> --build=i686-pc-linux --prefix=/usr/local > configureOut.txt
> configure: WARNING: using cross tools not prefixed with host triplet
> configure: WARNING: linux/fib_rules.h: present but cannot be compiled
> configure: WARNING: linux/fib_rules.h:     check for missing
> prerequisite headers?
> configure: WARNING: linux/fib_rules.h: see the Autoconf documentation
> configure: WARNING: linux/fib_rules.h:     section "Present But Cannot
> Be Compiled"
> configure: WARNING: linux/fib_rules.h: proceeding with the compiler's result
> configure: error: GNU Multi Precision library gmp not found
> 
> Here is full configure output:
> https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/configureOutput.txt
> 
> And here is config.log file:
> https://dl.dropboxusercontent.com/u/2261256/forums/ipsec/crosscompile/config.log
> 
> 
> Any idea what should I do to make crosscompile work ?
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/users
> 

-- 
======================================================================
Andreas Steffen                         andreas.steffen at strongswan.org
strongSwan - the Open Source VPN Solution!          www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
===========================================================[ITA-HSR]==

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4255 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.strongswan.org/pipermail/users/attachments/20131119/72eff062/attachment.bin>


More information about the Users mailing list