<div dir="ltr"><div><div>When I try to build dogtag I have the following set: <br><br>CFLAGS += -I/usr/include/nss<br>CXXFLAGS += -I/usr/include/nss<br><br></div>but the file pki/cmake/Modules/FindNSS.cmake has:<br><br>  find_path(NSS_INCLUDE_DIR<br>
    NAMES<br>      nss.h<br>    PATHS<br>      ${_NSS_INCLUDEDIR}<br>      /usr/include<br>      /usr/local/include<br>      /opt/local/include<br>      /sw/include<br>    PATH_SUFFIXES<br>      nss3<br>  )<br><br></div>which finds /usr/include/nss.h instead of the proper /usr/include/nss/nss.h so I get an error because it can't seem to determine the directory that the nss files are in.<br>
<div><div><br>[  8%] Building CXX object base/symkey/src/com/netscape/symkey/CMakeFiles/symkey_library.dir/EncryptData.cpp.o<br>cd /var/cache/git/pki/build/core/base/symkey/src/com/netscape/symkey && /usr/bin/c++   -Dsymkey_library_EXPORTS -DHAVE_CONFIG_H -fPIC -I/var/cache/git/pki/build/core/base/symkey/src/com/netscape/symkey -I/var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey -I/var/cache/git/pki/build/core -I/usr/lib/jvm/java-6-openjdk/include -I/usr/include/nspr    -o CMakeFiles/symkey_library.dir/EncryptData.cpp.o -c /var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey/EncryptData.cpp<br>
/var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey/EncryptData.cpp:23:22: fatal error: pk11func.h: No such file or directory<br>compilation terminated.<br><br>build/core/CMakeCache.txt contians<br><br>_NSS_INCLUDEDIR:INTERNAL=/usr/include/nss<br>
<br></div><div>So I'm not really sure why it can't seem to determine where pk11func.c is.<br><br></div><div>However, if I "mv /usr/include/nss.h /usr/include/NOTHERE_nss.h" before attempting the build, the packages all build fine.<br>
<br></div><div>Is there a "more correct" way to tell it where the path is than to move the "wrong" nss.h out of the way?<br></div><div><br></div><div>I'm compiling them on Ubuntu Precise amd64.<br>
<br></div><div>Thanks in Advance.<br></div></div></div>