[Pki-devel] setting _NSS_INCLUDEDIR

James White james.s.white at gmail.com
Tue Dec 31 16:48:34 UTC 2013

When I try to build dogtag I have the following set:

CFLAGS += -I/usr/include/nss
CXXFLAGS += -I/usr/include/nss

but the file pki/cmake/Modules/FindNSS.cmake has:


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.

[  8%] Building CXX object
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 -I/usr/lib/jvm/java-6-openjdk/include
-I/usr/include/nspr    -o CMakeFiles/symkey_library.dir/EncryptData.cpp.o
fatal error: pk11func.h: No such file or directory
compilation terminated.

build/core/CMakeCache.txt contians


So I'm not really sure why it can't seem to determine where pk11func.c is.

However, if I "mv /usr/include/nss.h /usr/include/NOTHERE_nss.h" before
attempting the build, the packages all build fine.

Is there a "more correct" way to tell it where the path is than to move the
"wrong" nss.h out of the way?

I'm compiling them on Ubuntu Precise amd64.

Thanks in Advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20131231/4e9e9c1b/attachment.htm>

More information about the Pki-devel mailing list