[Openswan Users] Openswan for PowerPC

Sandeep Kumar ksandeep at cdot.in
Tue Feb 13 02:02:04 EST 2018


 after running following

/etc/init.d/ipsec  start 

i am getting this error 
                                      
failed to start openswan IKE daemon - the following error occured:               
/usr/sbin/ipsec: line 143: /usr/lib/ipsec/addconn: No such file or directory 

please advise what can be the root cause? addconn file is there


On Fri, 9 Feb 2018 14:58:47 +0530, Sandeep Kumar wrote
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

_______________________________________________
Users at lists.openswan.org
https://lists.openswan.org/mailman/listinfo/users
Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
Building and Integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


Regards

Sandeep Kumar



More information about the Users mailing list