Re: [Newbie] Problems getting pluto to run

Rolf Leggewie <[email protected]> Mon, 16 Aug 2004 13:42:23 +0200
Newsgroups gmane.network.freeswan.user
Message-ID <[email protected]>
Erich.titl wrote:

>>  ipsec_setup: test: ==: unknown operand

> You will have to debug this, you could add the -x flag to the 
> /usr/lib/ipsec/setup script (this is for FreeSWan 1.99...)

Hi Erich,

Thank you for your ongoing patience.  I am not so sure what you mean. 
Should I add the flag when calling the script or should I place it 
somewhere in the script itself?  BTW, I do not have 
/usr/lib/ipsec/setup, what I got is /usr/local/sbin/ipsec which I guess 
is what you are referring to.

Apparently there is some issue with the libgmp package that I 
downloaded.  By chance I found out that after trying to start ipsec 
there is a log file called ipsec.log.txt on the root directory of my SD 
card.  I do not know why the program should leave it there but it was a 
great fortune for otherwise I might not have found it.  It has only one 
line saying "/usr/local/libexec/ipsec/pluto: error while loading shared 
libraries: libgmp.so.3: cannot load shared object file: No such file or 
directory".

Thus I tried to make sure that libgmp.so.3 was available but have failed 
so far. 'find / -name *libgmp*" gave the following results.

  /home/root/usr/lib/ipkg/info/libgmp3.list
  /home/root/usr/local/libexec/ipsec/libgmp.so.3
  /home/QtPalmtop/lib/libgmp.so.3
  /home/QtPalmtop/usr/lib/libgmp.so.3.1.1
  /home/QtPalmtop/usr/lib/libgmp.so.3
  /usr/mnt.rom/card/QtPalmtop/usr/lib/libgmp.so.3.1.1

The last one is the original file, the other libgmp.so.3.1.1 is a 
symbolic link to it (AFAICT this has to do with the somewhat weird 
directory structure of the Zaurus, for more details please refer to 
http://docs.zaurus.com/index.php?id=system_layout).  All libgmp.so.3 
files have been created by me as symbolic links in the hope that ipsec 
would pick them up.  The environment variable LD_LIBRARY_PATH is 
/home/QtPalmtop/lib just in case that matters.

Best

Rolf