[Openswan Users] Openswan for PowerPC

Sandeep Kumar ksandeep at cdot.in
Fri Feb 9 04:28:47 EST 2018


Hello
      I have cross compiled openswan for powerpc. i have used the following 
CROSSCOMPILE.sh

export PREFIX=/usr
export DESTDIR=/home/sandy/openswan.ppc

export ARCH=powerpc
export CC=$PREFIX/bin/powerpc-linux-gnu-gcc-4.8
export GCC=$PREFIX/bin/powerpc-linux-gnu-gcc-4.8
export LD=$PREFIX/bin/powerpc-linux-gnu-ld
export RANLIB=$PREFIX/bin/powerpc-linux-gnu-ranlib
export AR=$PREFIX/bin/powerpc-linux-gnu-ar
export AS=$PREFIX/bin/powerpc-linux-gnu-as
export STRIP=$PREFIX/bin/powerpc-linux-gnu-strip
export LD_LIBRARY_PATH=$PREFIX/powerpc-linux-gnu/lib
export PATH=$PATH:$PREFIX/bin

export USERCOMPILE="-Wl,-elf2flt -mpowerpc64 -DCOMPILER_HAS_NO_PRINTF_LIKE -O3 -g 
${PORTDEFINE} -L$PREFIX/lib/gcc-lib -DGCC_LINT -DLEAK_DETECTIVE -Dlinux -D__linux__"


after porting the /etc ,  /usr  and  /var onto powerpc card

i try to run

/etc/rc.d/init.d/ipsec start

 and i get this error

/usr/local/sbin/ipsec: line 148: /usr/local/libexec/ipsec/addconn: No such file or 
directory

actually its not able to detect addconn file and other files in 
/usr/local/libexec/ipsec/

but when i  run 

/etc/rc.d/init.d/ipsec stop

i get

ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: stop ordered, but IPsec appears to be already stopped!
ipsec_setup: doing cleanup anyway...


So i am not sure whether it is cross compilation issue or something else.Any help would 
be appriciated.

Thanks






Regards

Sandeep Kumar



More information about the Users mailing list