<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi Paul,<br><br></div>Thank you for the quick reply.<br><br></div>I installed nss-3.16.1 using below steps<br>1. Downloaded nss-3.16 code from<br><a href="https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_RTM/src/nss-3.16-with-nspr-4.10.4.tar.gz">https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_RTM/src/nss-3.16-with-nspr-4.10.4.tar.gz</a><br></div>2. Downloaded nsprpub source from<br><a href="https://github.com/makotokato/nsprpub">https://github.com/makotokato/nsprpub</a><br></div>3. Complied nsprpub code and installed<br></div>4. Extracted nss-3.16.1 source code<br></div>5. cd nss-3.16.1, gmake clean nss_build_all<br></div>6. It got compiled<br></div>7. cd ../libreswan-3.15 and did &#39;make clean; make programs&#39;<br><br></div>But still got the same error. <br><br>/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c: In function ‘test_aes_ctr’:<br>/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: ‘CKM_AES_CTR’ undeclared (first use in this function)<br>/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: (Each undeclared identifier is reported only once<br>/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: for each function it appears in.)<br>make[3]: *** [ctr_test_vectors.o] Error 1<br><br><br>Please let me know what went wrong? Please help me on this.<br><br></div>Thank You,<br></div>Prasad<code></code></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 9:13 PM, Paul Wouters <span dir="ltr">&lt;<a href="mailto:paul@nohats.ca" target="_blank">paul@nohats.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, 14 Sep 2015, prasad zambare wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am getting compilation error while compiling libreswan-3.15 source code.<br>
<br>
make[3]: Entering directory `/root/libreswan-3.15/OBJ.linux.i386/programs/pluto&#39;<br>
cc   -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-all -fno-strict-aliasing -fPIE -DPIE -DFORCE_PR_ASSERT -DDNSSEC -DFIPS_CHECK<br>
-DFIPSPRODUCTCHECK=\&quot;/etc/system-fips\&quot; -DKLIPS -DLIBCURL -DUSE_LINUX_AUDIT -DUSE_MD5 -DHAVE_NM -DUSE_SHA2 -DUSE_SHA1 -DFIPSPRODUCTCHECK=\&quot;/etc/system-fips\&quot;<br>
-DIPSEC_CONF=\&quot;/etc/ipsec.conf\&quot; -DIPSEC_CONFDDIR=\&quot;/etc/ipsec.d\&quot; -DIPSEC_NSSDIR=\&quot;/etc/ipsec.d\&quot; -DIPSEC_CONFDIR=\&quot;/etc\&quot; -DIPSEC_EXECDIR=\&quot;/usr/local/libexec/ipsec\&quot;<br>
-DIPSEC_SBINDIR=\&quot;/usr/local/sbin\&quot; -DIPSEC_VARDIR=\&quot;/var\&quot; -DPOLICYGROUPSDIR=\&quot;/etc/ipsec.d/policies\&quot; -DSHARED_SECRETS_FILE=\&quot;/etc/ipsec.secrets\&quot; -DGCC_LINT<br>
-DALLOW_MICROSOFT_BAD_PROPOSAL  -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wmissing-declarations -Wredundant-decls -Wnested-externs<br>
-I/root/libreswan-3.15/ports/linux/include -I/root/libreswan-3.15/ports/linux/include -I/root/libreswan-3.15/ports/linux/include -I/root/libreswan-3.15/ports/linux/include <br>
-I/root/libreswan-3.15/programs/pluto/linux26 -I/root/libreswan-3.15/include -I/root/libreswan-3.15/lib/libcrypto -I/root/libreswan-3.15/linux/include   -DUSE_KEYRR   -DNETKEY_SUPPORT<br>
-DKERNEL26_HAS_KAME_DUPLICATES -DPFKEY  -DUSE_TWOFISH -DUSE_SERPENT -DKLIPS -DPFKEY    -DUSE_AES -DUSE_3DES -DUSE_SHA2 -DUSE_SHA1 -DUSE_MD5 -DUSE_CAMELLIA   -DXAUTH_HAVE_PAM -DLIBCURL   <br>
-DFIPS_CHECK -DHAVE_LIBCAP_NG -DHAVE_NM -I/usr/include/nss3 -I/usr/include/nspr4     \<br>
                -MMD -MF ./ctr_test_vectors.d \<br>
                -o ./ctr_test_vectors.o \<br>
                -c /root/libreswan-3.15/programs/pluto/ctr_test_vectors.c<br>
/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c: In function ‘test_aes_ctr’:<br>
/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: ‘CKM_AES_CTR’ undeclared (first use in this function)<br>
/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: (Each undeclared identifier is reported only once<br>
/root/libreswan-3.15/programs/pluto/ctr_test_vectors.c:243: error: for each function it appears in.)<br>
make[3]: *** [ctr_test_vectors.o] Error 1<br>
make[3]: Leaving directory `/root/libreswan-3.15/OBJ.linux.i386/programs/pluto&#39;<br>
make[2]: *** [local-base] Error 2<br>
make[2]: Leaving directory `/root/libreswan-3.15/programs/pluto&#39;<br>
make[1]: *** [all] Error 2<br>
make[1]: Leaving directory `/root/libreswan-3.15/programs&#39;<br>
make: *** [all] Error 2<br>
<br>
Tried searching on internet but did not find the solution. Please provide some pointers so that I can fix this issue.<br>
</blockquote>
<br></div></div>
It seems you have an old version of nss then? AES CTR was introduced in<br>
nss-3.14 (not libreswan-3.14)<br>
<br>
You should be using at least nss-3.16.<span class="HOEnZb"><font color="#888888"><br>
<br>
Paul<br>
</font></span></blockquote></div><br></div>