[Swan] compilation failed

Ahmed Shabana a.shabana at cequens.com
Sun May 11 19:26:49 EEST 2014


I installed all dependencies before 
I try to use precompiled package and it give me 
rpm -ivh libreswan-3.7-1.el6.x86_64.rpm
error: Failed dependencies:
        libunbound.so.2()(64bit) is needed by libreswan-3.7-1.el6.x86_64

although I compiled libunbound from src and did the make install 



-----Original Message-----
From: Paul Wouters [mailto:paul at nohats.ca] 
Sent: Sunday, May 11, 2014 5:26 PM
To: Ahmed Shabana
Cc: Philippe Vouters; swan at lists.libreswan.org
Subject: Re: [Swan] compilation failed

On Sun, 11 May 2014, Ahmed Shabana wrote:

> I did what you suggest below and get the below error ,

You know we offer precompiled packages for RHEL6 at download.libreswan.org ?

You can look at the packaging/rhel6/libreswan.spec to see the
BuildRequires:

yum install pkgconfig net-tools nss-devel nspr-devel pam-devel unbound-devel audit-libs-devel libcap-ng-devel openldap-devel curl-devel

> From: Philippe Vouters [mailto:philippe.vouters at laposte.net]

> This now makes sense. How precision from you  ! Which Linux 
> distribution are you running ? I say this because on Ubuntu the correct path for  prcpucfg.h is /usr/include/nspr/ (brought in by libnspr4-dev Ubuntu package) and /usr/include/nspr4/ on my Fedora 20 (brought in by nspr-devel package).
> 
> For the other include file (pk11pub.h) it is inside  /usr/include/nss/ 
> on Ubuntu (brought by libnss3-dev package) and on Fedora 20 it is inside /usr/include/nss3/ (brought in by nss-devel package).
> 
> Your met errors pledge for automake and ./configure file.

Those dependancies are determined using pkg-config - autotools/automake would not help you there. For example:

$ pkg-config --cflags nss
-I/usr/include/nss3 -I/usr/include/nspr4

So as long as you have the development packages installed, it will find it automatically.

Paul


More information about the Swan mailing list